Add -s option

This commit is contained in:
maden
2006-11-17 15:51:43 +00:00
parent 394e35995d
commit 84f79517c8
+8 -2
View File
@@ -3,16 +3,17 @@
asciiMonth=0
case "$1" in
-h | -\? | --help)
echo "usage: showtags [-a]"
echo "usage: showtags [-a] [-s]"
echo " Find CVS tags in this directory and subdirectories."
echo " If there is a connection to psip0 (Oracle 9) you get date and time info too."
echo " Specify -a to get months displayed as abbreviated text string."
echo " Specify -s to get the tagged status of files in the directory."
exit 0
;;
-v | --version)
echo 'Original Author: Dirk Zimoch'
echo 'Last Change by $Author: maden $'
echo '$Revision: 1.7 $ $Date: 2006/11/16 12:57:05 $'
echo '$Revision: 1.8 $ $Date: 2006/11/17 15:51:43 $'
echo '$Source: /cvs/G/EPICS/App/scripts/showtags,v $'
exit 0
;;
@@ -20,6 +21,11 @@ case "$1" in
# Display months as abbreviated month strings, not as numbers.
asciiMonth=1
;;
-s)
# Show the tagged status of the directory.
tagStatus
exit $?
;;
-*)
echo "Unknown option $1. Try: -h, --help, -v, --version, -a"
exit 1