Changed files:
relup.sh -> 1.14
echo "$out"
}
+usage="Usage:
+${0##*/} [-i] [-t] [-m <MESSAGE>] <SPECLIST>
+
+Options:
+-i
+ Try to increment package release
+-t
+ Test mode. do not commit
+-m
+ Specify commit message
+
+"
+
get_release() {
local specfile="$1"
rel=$(awk '/^%define[ ]*_rel[ ]/{print $NF}' $specfile)
exit 1
fi
-t=$(getopt -o 'm:it' -n $(dirname "$0") -- "$@") || exit $?
+t=$(getopt -o 'm:ith' -n "${0##*/}" -- "$@") || exit $?
# Note the quotes around `$t': they are essential!
eval set -- "$t"
shift
message="${1#- }"
;;
+ -h)
+ echo "$usage"
+ exit 0
+ ;;
--)
shift
break