X-Git-Url: http://git.plutz.net/?p=stereofy;a=blobdiff_plain;f=stereofy.sh;h=d3f4763ec058df59fa2f075dd5b56b728c890fda;hp=919c2a8ae183353037ab4e7d4453c50d5cc4b503;hb=d756f57d5612c2fa4b6fff7db9af57ffbaef59cc;hpb=4d44ba8fdad35505412082d2a066e77b953c8bd8 diff --git a/stereofy.sh b/stereofy.sh index 919c2a8..d3f4763 100755 --- a/stereofy.sh +++ b/stereofy.sh @@ -1,7 +1,7 @@ #!/bin/sh algo="d" #algorythm, Dubois by default -model="gm" #color model, green-magenta by default +model="rc" #color model, green-magenta by default param="" #leave blank, will be -$algo$model left='' right='' @@ -9,22 +9,15 @@ stereo='' while [ -n "$1" ]; do case "$1" in - -d|--dubois]) algo="d" - ;; - -f|--full|--full-color]) algo="f" - ;; - -h|--half|--half-color]) algo="d" - ;; - -rc|--rc|--red-cyan) model="rc" - ;; - -mc|--mc|--magenta-cyan) model="mc" - ;; - -gm|--gm|--green-magenta) model="gm" - ;; - -ab|--ab|--amber-blue|yellow-blue) model="ab" - ;; - -[dfh]rc|-[dfh]gm|-[fd]mc|-dab) param="$1" - ;; + -d|--dubois) algo="d";; + -f|--full|--full-color) algo="f";; + -h|--half|--half-color) algo="d";; + -rc|--rc|--red-cyan) model="rc";; + -mc|--mc|--magenta-cyan) model="mc";; + -gm|--gm|--green-magenta) model="gm";; + -ab|--ab|--amber-blue|yellow-blue) model="ab";; + -[dfh]rc|-[dfh]gm|-[fe]mc|-dab) param="$1";; + -*) echo "no such color model" >/dev/stderr; exit 1;; *) if [ -z "$left" ]; then left="$1" elif [ -z "$right" ]; then