Skip to content
Snippets Groups Projects
Commit 8e60ad76 authored by Simon Oosthoek's avatar Simon Oosthoek
Browse files

bij gelaagde options moet je alle opties overal bekend maken

bij de common options moet je toch iets opgeven

bij de common options moet je toch iets opgeven

niks beloven voor het werkt

debug code

alle opties overal?
parent c0087613
No related branches found
No related tags found
Loading
......@@ -8,10 +8,8 @@ PROG=$(basename $0)
## before anything check upstream repo:
#
echo "make sure we have the latest stuff; git pull --rebase"
if git pull --rebase
if ! git pull --rebase
then
echo "Generating new page..."
else
echo "Please fix git problem before continuing..."
exit 1
fi
......@@ -109,7 +107,7 @@ askauthor() {
}
export frontpage="false"
GETOPTSTR="t:T:fh"
GETOPTSTR="t:T:a:A:s:S:fh"
while getopts "$GETOPTSTR" option
do
case $option in
......@@ -124,7 +122,7 @@ do
a|A|s|e) # opties kennen we wel afhankelijk van welke naam, maar nu even niks mee doen
;;
*)
echo unknown option "$option"
echo unknown global option "$option"
echo
usage 1
;;
......@@ -140,7 +138,7 @@ OPTIND=1
case $PROG in
new_cpk)
GETOPTSTR="s:e:a:A:"
GETOPTSTR="s:e:a:A:t:T:hf"
while getopts "$GETOPTSTR" option
do
case $option in
......@@ -164,8 +162,16 @@ case $PROG in
;;
A) export affected_nl="$OPTARG"
;;
t) export title_en="$OPTARG"
;;
T) export title_nl="$OPTARG"
;;
f) export frontpage="true"
;;
h) usage 0
;;
*)
echo unknown option "$option"
echo unknown new_cpk option "$option"
echo
usage 1
;;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment