Allow multiple options
This commit is contained in:
10
showtags
10
showtags
@@ -1,7 +1,8 @@
|
||||
#! /bin/bash
|
||||
#
|
||||
asciiMonth=0
|
||||
case "$1" in
|
||||
while [ $# != 0 ]; do
|
||||
case "$1" in
|
||||
-h | -\? | --help)
|
||||
echo "usage: showtags [-a] [-s]"
|
||||
echo " Find CVS tags in this directory and subdirectories."
|
||||
@@ -13,7 +14,7 @@ case "$1" in
|
||||
-v | --version)
|
||||
echo 'Original Author: Dirk Zimoch'
|
||||
echo 'Last Change by $Author: maden $'
|
||||
echo '$Revision: 1.9 $ $Date: 2006/11/21 13:00:20 $'
|
||||
echo '$Revision: 1.10 $ $Date: 2006/12/08 07:37:31 $'
|
||||
echo '$Source: /cvs/G/EPICS/App/scripts/showtags,v $'
|
||||
exit 0
|
||||
;;
|
||||
@@ -30,8 +31,9 @@ case "$1" in
|
||||
echo "Unknown option $1. Try: -h, --help, -v, --version, -a"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
esac
|
||||
shift
|
||||
done
|
||||
trap "stty echo" EXIT SIGTERM SIGKILL
|
||||
|
||||
TAGS=$(cvs status -v 2>/dev/null | awk '
|
||||
|
||||
Reference in New Issue
Block a user