mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-23 14:08:45 +01:00
Normalize options to buildshorewall
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@7757 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
ca00c004c6
commit
a92c4ee31e
@ -23,13 +23,17 @@
|
|||||||
#
|
#
|
||||||
# Usage:
|
# Usage:
|
||||||
#
|
#
|
||||||
# makeshorewall [ -trhxl ] <version> [ <previous version> ]
|
# makeshorewall [ -trhxclpsS ] <version> [ <previous version> ]
|
||||||
#
|
#
|
||||||
# -t Build tarball
|
# -t Build tarball
|
||||||
# -r Build RPM
|
# -r Build RPM
|
||||||
|
# -c Build Common
|
||||||
|
# -l Build Lite
|
||||||
|
# -p Build Perl
|
||||||
|
# -s Build Shell
|
||||||
# -h Build HTML documentation
|
# -h Build HTML documentation
|
||||||
# -x Build XML documentation
|
# -x Build XML documentation
|
||||||
# -s Sign with GPG
|
# -S Sign with GPG
|
||||||
#
|
#
|
||||||
# If no options are given, all options are assumed.
|
# If no options are given, all options are assumed.
|
||||||
#
|
#
|
||||||
@ -168,7 +172,7 @@ do_rpmbuild() {
|
|||||||
|
|
||||||
usage()
|
usage()
|
||||||
{
|
{
|
||||||
echo "usage: $(basename $0) [ -trhxl] <version> [ <old-version> ]"
|
echo "usage: $(basename $0) [ -trhxlcpsS] <version> [ <old-version> ]"
|
||||||
exit 2
|
exit 2
|
||||||
}
|
}
|
||||||
################################################################################
|
################################################################################
|
||||||
@ -230,26 +234,26 @@ while [ -z "$done" ]; do
|
|||||||
BUILDXML=Yes
|
BUILDXML=Yes
|
||||||
option=${option#x}
|
option=${option#x}
|
||||||
;;
|
;;
|
||||||
C*)
|
c*)
|
||||||
BUILDCOMMON=Yes
|
BUILDCOMMON=Yes
|
||||||
option=${option#C}
|
option=${option#c}
|
||||||
;;
|
;;
|
||||||
P*)
|
p*)
|
||||||
BUILDPERL=Yes
|
BUILDPERL=Yes
|
||||||
option=${option#P}
|
option=${option#p}
|
||||||
;;
|
|
||||||
S*)
|
|
||||||
BUILDSHELL=Yes
|
|
||||||
option=${option#S}
|
|
||||||
;;
|
|
||||||
L*)
|
|
||||||
BUILDLITE=Yes
|
|
||||||
option=${option#L}
|
|
||||||
;;
|
;;
|
||||||
s*)
|
s*)
|
||||||
SIGN=Yes
|
BUILDSHELL=Yes
|
||||||
option=${option#s}
|
option=${option#s}
|
||||||
;;
|
;;
|
||||||
|
l*)
|
||||||
|
BUILDLITE=Yes
|
||||||
|
option=${option#l}
|
||||||
|
;;
|
||||||
|
S*)
|
||||||
|
SIGN=Yes
|
||||||
|
option=${option#S}
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
usage
|
usage
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user