Permalink
Browse files

Better args for releaseprep

  • Loading branch information...
vanosg committed Dec 31, 2018
1 parent 6f910be commit 96d4d3b484d464f231c6acc7f1c408d74315bb71
Showing with 13 additions and 10 deletions.
  1. +13 −10 misc/releaseprep
@@ -26,8 +26,9 @@
show_usage() {
echo "Usage: `basename $0` [-h|-r <#>]"
echo ""
echo " -h, --help - Print this help and exit."
echo " -r, --rc - Prepare to release Release Candidate '#'."
echo " -h, --help - Print this help and exit."
echo " -r, --rc - Prepare to release Release Candidate '#'."
echo " -s --stable - Prepare to release stable release."
exit 1
}

@@ -129,24 +130,26 @@ all:
_EOF
}

if [ $# -eq 0 ]; then
echo "No args specified, use -h to view help"
exit 1
fi

do_rc=0
if test "x${1}" = "x-h" || test "x${1}" = "x--help"; then
show_usage
fi

do_rc=0
if test "x${1}" = "x-r" || test "x${1}" = "x--rc"; then
elif test "x${1}" = "x-r" || test "x${1}" = "x--rc"; then
do_rc=1
if test "x${2}" = "x"; then
show_usage
fi
rc_number=$2

elif test "x${1}" = "x-s" || test "x${1}" = "x--stable"; then
echo "About damn time"

else
echo "No args specified, use -h to view help"
exit 1
fi


if test ! -f src/main.c; then
echo "You are not in the Eggdrop root directory."
exit 1

0 comments on commit 96d4d3b

Please sign in to comment.