mirror of
https://github.com/LCPQ/quantum_package
synced 2024-10-19 22:41:48 +02:00
configure -help
This commit is contained in:
parent
76144c90d4
commit
c5f03c9097
2
configure
vendored
2
configure
vendored
@ -48,7 +48,7 @@ while : ; do
|
||||
-i|--install)
|
||||
PACKAGES="${PACKAGE} $2"
|
||||
shift;;
|
||||
-h|--help)
|
||||
-h|-help|--help)
|
||||
help;;
|
||||
*)
|
||||
echo "unknown option $1, try --help"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user