if [ -z ${CONDA_BUILD+x} ]; then
    source /Users/distiller/project/miniconda/conda-bld/entrez-direct_1631618273628/work/build_env_setup.sh
fi
#!/bin/bash

# Keep track of the process
set -uex

mkdir -p $PREFIX/bin
mv * $PREFIX/bin
mkdir -p "$PREFIX/home"
export HOME="$PREFIX/home"

# Needs to run in the install folder
cd ${PREFIX}/bin

sh install.sh

# clean up
rm -rf eutils cmd help   
rm -rf *.log *.go *.yaml setup.sh install.sh *.gz *.txt *.pdf 
rm -rf idx-* index-*  pm-*  custom* xy-* CA.pm cacert.pem
