X-Git-Url: http://git.plutz.net/?p=stereofy;a=blobdiff_plain;f=stereofy.sh;h=a97e5b9af09fc74855680a4620d4e45d3bb1e987;hp=919c2a8ae183353037ab4e7d4453c50d5cc4b503;hb=53fedd7fc9e7a2c1eb31bf03b231241950ebb516;hpb=749ec4ad5ec7d49addeaffec4241cabc3c6f2833 diff --git a/stereofy.sh b/stereofy.sh index 919c2a8..a97e5b9 100755 --- a/stereofy.sh +++ b/stereofy.sh @@ -1,7 +1,22 @@ #!/bin/sh +# Copyright 2011 Paul Hänsch +# This file is part of Stereofy +# +# Stereofy is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# Stereofy is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Stereofy. If not, see . algo="d" #algorythm, Dubois by default -model="gm" #color model, green-magenta by default +model="rc" #color model, red-cyan by default param="" #leave blank, will be -$algo$model left='' right='' @@ -9,22 +24,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