run-medley should not quote patterns in 'case' command, either useless or broken (#977)
This commit is contained in:
52
run-medley
52
run-medley
@@ -58,86 +58,84 @@ export LDEKBDTYPE=x
|
||||
|
||||
while [ "$#" -ne 0 ]; do
|
||||
case "$1" in
|
||||
"-loadup")
|
||||
-loadup)
|
||||
# Keep (GREET) from finding a different init file
|
||||
mkdir -p $MEDLEYDIR/tmp/logindir
|
||||
export LOGINDIR=$MEDLEYDIR/tmp/logindir
|
||||
|
||||
export MEDLEYLOADUP="$2"
|
||||
export LDEINIT="$2"
|
||||
shift
|
||||
;;
|
||||
"-nogreet" | "--nogreet")
|
||||
-nogreet | --nogreet)
|
||||
# Keep (GREET) from finding an init file
|
||||
mkdir -p $MEDLEYDIR/tmp/logindir
|
||||
export LOGINDIR=$MEDLEYDIR/tmp/logindir
|
||||
|
||||
export LDEINIT="$MEDLEYDIR/greetfiles/NOGREET"
|
||||
;;
|
||||
"-greet" | "--greet")
|
||||
-greet | --greet)
|
||||
export LDEINIT="$2"
|
||||
shift
|
||||
;;
|
||||
"-noscroll")
|
||||
-noscroll)
|
||||
scroll=0
|
||||
noscroll="-noscroll"
|
||||
;;
|
||||
"--dimensions" | "-dimensions")
|
||||
--dimensions | -dimensions)
|
||||
sw=`expr "$2" : "\([0-9]*\)x[0-9]*$"`
|
||||
sh=`expr "$2" : "[0-9]*x\([0-9]*\)$"`
|
||||
if [ -n "$sw" -a -n "$sh" ] ; then
|
||||
sw=$(( (31+$sw)/32*32 ))
|
||||
gw=$(( $scroll+$sw ))
|
||||
gh=$(( $scroll+$sh ))
|
||||
geometry="-g ${gw}x${gh}"
|
||||
screensize="-sc ${sw}x${sh}"
|
||||
sw=$(( (31+$sw)/32*32 ))
|
||||
gw=$(( $scroll+$sw ))
|
||||
gh=$(( $scroll+$sh ))
|
||||
geometry="-g ${gw}x${gh}"
|
||||
screensize="-sc ${sw}x${sh}"
|
||||
fi
|
||||
shift
|
||||
;;
|
||||
"--geometry" | "-geometry" | "-g")
|
||||
--geometry | -geometry | -g)
|
||||
geometry="-g $2"
|
||||
shift
|
||||
;;
|
||||
"--screensize" | "-screensize" | "-sc")
|
||||
--screensize | -screensize | -sc)
|
||||
screensize="-sc $2"
|
||||
shift
|
||||
;;
|
||||
"--display" | "-d")
|
||||
--display | -d)
|
||||
export DISPLAY="$2"
|
||||
shift
|
||||
;;
|
||||
"-prog" )
|
||||
-prog)
|
||||
prog="$2"
|
||||
shift
|
||||
;;
|
||||
"-m" | "-mem" )
|
||||
-m | -mem)
|
||||
mem="-m $2 "
|
||||
shift
|
||||
;;
|
||||
"-vmem" | "--vmem" | "-vmfile" )
|
||||
-vmem | --vmem | -vmfile)
|
||||
export LDEDESTSYSOUT="$2"
|
||||
shift
|
||||
;;
|
||||
"-full")
|
||||
-full)
|
||||
export LDESRCESYSOUT="$MEDLEYDIR/loadups/full.sysout"
|
||||
;;
|
||||
"-lisp")
|
||||
-lisp)
|
||||
export LDESRCESYSOUT="$MEDLEYDIR/loadups/lisp.sysout"
|
||||
;;
|
||||
"-n" | "-new" | "-newfull" )
|
||||
-n | -new | -newfull)
|
||||
export LDESRCESYSOUT="$MEDLEYDIR/tmp/full.sysout"
|
||||
;;
|
||||
"-nl" | "-newlisp" )
|
||||
-nl | -newlisp)
|
||||
export LDESRCESYSOUT="$MEDLEYDIR/tmp/lisp.sysout"
|
||||
;;
|
||||
"-NF")
|
||||
-nf)
|
||||
pass="$pass $1"
|
||||
;;
|
||||
"-*")
|
||||
-*)
|
||||
pass="$pass $1 $2"
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
echo sysout "$1"
|
||||
export LDESRCESYSOUT="$1"
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user