mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-06-29 16:20:46 +00:00
install script with options of install directory and command prefix
This commit is contained in:
@ -60,7 +60,14 @@ if [[ ! "$WORK_DIR" || ! -d "$WORK_DIR" ]]; then
|
||||
fi
|
||||
|
||||
mkdir -p "${INSTALL_DIR}/bin" \
|
||||
|| sudo mkdir -p "${INSTALL_DIR}/bin"
|
||||
|| (echo "Please enter your password for installing obitools in ${INSTALL_DIR}"
|
||||
sudo mkdir -p "${INSTALL_DIR}/bin")
|
||||
|
||||
if [[ ! "${INSTALL_DIR}/bin" || ! -d "${INSTALL_DIR}/bin" ]]; then
|
||||
echo "Could not create ${INSTALL_DIR}/bin directory for installing obitools"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
INSTALL_DIR="$(cd $INSTALL_DIR && pwd)"
|
||||
|
||||
echo WORK_DIR=$WORK_DIR
|
||||
@ -103,14 +110,6 @@ else
|
||||
make OBITOOLS_PREFIX="${OBITOOLS_PREFIX}"
|
||||
fi
|
||||
|
||||
echo "Please enter your password for installing obitools"
|
||||
|
||||
sudo mkdir -p "${INSTALL_DIR}/bin"
|
||||
if [[ ! "${INSTALL_DIR}/bin" || ! -d "${INSTALL_DIR}/bin" ]]; then
|
||||
echo "Could not create ${INSTALL_DIR}/bin directory for installing obitools"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cp build/* "${INSTALL_DIR}/bin" \
|
||||
|| sudo cp build/* "${INSTALL_DIR}/bin"
|
||||
|
||||
|
Reference in New Issue
Block a user