mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-29 10:49:41 +02:00
configure
- more verbose usage - bugfix in parsing options
This commit is contained in:
@@ -4,7 +4,15 @@ declare prefix='/opt/psi'
|
||||
declare distfiles='/afs/psi.ch/software/Pmodules/distfiles'
|
||||
|
||||
print_usage() {
|
||||
echo "${0##*/} [OPTS]" 1>&2
|
||||
echo "${0##*/} [OPTS]
|
||||
|
||||
OPTS
|
||||
--prefix=PREFIX
|
||||
Installation prefix
|
||||
|
||||
--distfiles=DISTFILES
|
||||
Directory with sources
|
||||
" 1>&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
@@ -14,7 +22,7 @@ while (( $# > 0 )); do
|
||||
prefix=${1#*=}
|
||||
;;
|
||||
--distfiles=* )
|
||||
distfile=${1#*=}
|
||||
distfiles=${1#*=}
|
||||
;;
|
||||
--help | -h | -\? )
|
||||
print_usage
|
||||
|
||||
Reference in New Issue
Block a user