..
This commit is contained in:
13
sumsel.sh
13
sumsel.sh
@@ -1,5 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
VERSION="0.2"
|
||||
|
||||
LOCK_DIR=/var/lock
|
||||
|
||||
SIM_EXAMPLE_FILE=./res/test.wav
|
||||
@@ -26,17 +28,26 @@ UPL_SUFFIX=sumsi
|
||||
usage() {
|
||||
echo "Usage: $0 [-h] (-s|-r|-t) [-C <configfile>]" 1>&2;
|
||||
echo -e '\t-h Usage' 1>&2;
|
||||
echo -e '\t-v Version' 1>&2;
|
||||
echo -e '' 1>&2;
|
||||
echo -e '\t-s Simulation' 1>&2;
|
||||
echo -e '\t-r Aufnahme' 1>&2;
|
||||
echo -e '\t-c Konvertierung' 1>&2;
|
||||
echo -e '' 1>&2;
|
||||
echo -e '\t-C <configfile> Konfiguration laden' 1>&2;
|
||||
echo "" 1>&2;
|
||||
echo "Doku: https://git.hs42.de/hs/sumsel" 1>&2;
|
||||
exit 1;
|
||||
}
|
||||
|
||||
mode=''
|
||||
while getopts ":hsrcC:" options;
|
||||
while getopts ":hsrcC:v" options;
|
||||
do
|
||||
case "${options}" in
|
||||
v)
|
||||
echo "$0 version ${VERSION}" 1>&2;
|
||||
exit 1
|
||||
;;
|
||||
h)
|
||||
usage
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user