Add -n option for normal project type

For consistency, I added this option, so any project type can be
explicitly specified. Of course, this option is the default, so it can
be left out to yield the existing behaviour.
This commit is contained in:
Bob Polis 2024-12-31 14:32:05 +01:00
parent 9a754c83fa
commit 63dd34e926

View File

@ -10,7 +10,7 @@ simple=0
usegitroot=0 usegitroot=0
usage() { usage() {
echo "usage: $progname [-f|-l|-s] [[-d] -g <gitroot>|-G] [-t <tplroot>] PROJECTNAME" >&2 echo "usage: $progname [-f|-l|-n|-s] [[-d] -g <gitroot>|-G] [-t <tplroot>] PROJECTNAME" >&2
exit 1 exit 1
} }
@ -30,7 +30,7 @@ check_gitroot() {
progname=${0##*/} progname=${0##*/}
# option processing, using silent mode # option processing, using silent mode
while getopts :dfGg:lst:v opt while getopts :dfGg:lnst:v opt
do do
case $opt in case $opt in
d) d)
@ -49,6 +49,11 @@ do
l) l)
library=1 library=1
;; ;;
n)
mainfile=main.cpp
library=0
simple=0
;;
s) s)
simple=1 simple=1
;; ;;