10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-09-27 03:51:01 +02:00

configure -help

This commit is contained in:
Anthony Scemama 2019-01-09 01:04:07 +01:00
parent 76144c90d4
commit c5f03c9097
2 changed files with 9 additions and 2 deletions

2
configure vendored
View File

@ -48,7 +48,7 @@ while : ; do
-i|--install)
PACKAGES="${PACKAGE} $2"
shift;;
-h|--help)
-h|-help|--help)
help;;
*)
echo "unknown option $1, try --help"

View File

@ -2,6 +2,7 @@
# This script loads the Quantum Package environment. It should be invoked as
# source quantum_package.rc
QP_ROOT="/NOT/FOUND"
case "$(ps -p $$ -ocomm=)" in
zsh)
@ -11,9 +12,13 @@ case "$(ps -p $$ -ocomm=)" in
QP_ROOT=$(dirname ${BASH_SOURCE}[0])
;;
esac
export QP_ROOT="$( cd $QP_ROOT ; pwd -P )"
WD=$PWD
cd $QP_ROOT/etc
for SCRIPT in *.rc
do
@ -21,10 +26,12 @@ do
done
cd $WD
if [[ -z ${QP_ROOT} ]]
then
echo The QP_ROOT environment variable is not set. Run
./configure -help
./configure --help
fi