* [gentoo-commits] gentoolkit r821 - in trunk/gentoolkit-dev: . src/ebump
@ 2010-10-25 17:00 Christian Ruppert (idl0r)
0 siblings, 0 replies; only message in thread
From: Christian Ruppert (idl0r) @ 2010-10-25 17:00 UTC (permalink / raw
To: gentoo-commits
Author: idl0r
Date: 2010-10-25 17:00:36 +0000 (Mon, 25 Oct 2010)
New Revision: 821
Modified:
trunk/gentoolkit-dev/ChangeLog
trunk/gentoolkit-dev/src/ebump/ebump
Log:
Fix options. Add descriptions for -a|--no-auxfiles and -c|--no-changelog.
Modified: trunk/gentoolkit-dev/ChangeLog
===================================================================
--- trunk/gentoolkit-dev/ChangeLog 2010-10-25 16:38:26 UTC (rev 820)
+++ trunk/gentoolkit-dev/ChangeLog 2010-10-25 17:00:36 UTC (rev 821)
@@ -1,6 +1,8 @@
2010-10-25: Christian Ruppert <idl0r@gentoo.org>
* ebump: Whitespace fixes.
+ Fix options. Add descriptions for -a|--no-auxfiles and -c|--no-changelog.
+
2010-10-23: Christian Ruppert <idl0r@gentoo.org>
* echangelog: Fix version bump detection for hg/mercurial, bug 335636,
thanks to Mike Gilbert <floppymaster@gmail.com>.
Modified: trunk/gentoolkit-dev/src/ebump/ebump
===================================================================
--- trunk/gentoolkit-dev/src/ebump/ebump 2010-10-25 16:38:26 UTC (rev 820)
+++ trunk/gentoolkit-dev/src/ebump/ebump 2010-10-25 17:00:36 UTC (rev 821)
@@ -19,7 +19,7 @@
}
einfo() {
- if [ ${opt_verbosity} -gt 1 ] ; then
+ if [ ${opt_verbosity} -eq 1 ] ; then
echo $*
fi
}
@@ -37,6 +37,8 @@
echo " -V|--version show version info"
echo " -v|--verbose increase verbosity"
echo " -q|--quiet turn off output"
+ echo " -a|--no-auxfiles don't bump auxfiles (files/*)"
+ echo " -c|--no-changelog do not update ChangeLog (via echangelog)"
echo " -C|--no-vcs do not add to VCS"
echo " -m|--message append message to ChangeLog"
echo " -d|--delete-old delete previous revision from VCS (DANGEROUS!)"
@@ -322,8 +324,7 @@
#
# Global options
#
-opt_verbosity=1
-opt_warn_on_delete=y
+opt_verbosity=0
opt_add_changelog=y
opt_add_vcs=y
opt_bump_auxfiles=y
@@ -332,43 +333,53 @@
load_options
-skip=0
while [ ${#} -gt 0 ] ; do
arg=${1}
shift
- if [ ${skip} -gt 0 ] ; then
- skip=$[skip-1]
- else
+
case ${arg} in
- -h|--help)
- print_usage
- exit 0
+ -h|--help)
+ print_usage
+ exit 0
;;
- -m|--message)
- opt_commitmessage="${1}"
- skip=1
+ -m|--message)
+ opt_commitmessage="${1}"
+ shift
+ continue
;;
- -C|--no-vcs)
- opt_add_vcs=n
+ -a|--no-auxfiles)
+ opt_bump_auxfiles=n
+ continue
;;
- -V|--version)
- print_version
- exit
+ -c|--no-changelog)
+ opt_add_changelog=n
+ continue
;;
- -v|--verbose)
- opt_verbosity=$[opt_verbosity + 1]
+ -C|--no-vcs)
+ opt_add_vcs=n
+ continue
;;
- -q|--quiet)
- opt_verbosity=0
+ -V|--version)
+ print_version
+ exit
;;
- -d|--delete-old)
- opt_delete_old=y
+ -v|--verbose)
+ opt_verbosity=1
+ continue
;;
- *)
- ebuild_arg=${arg}
+ -q|--quiet)
+ opt_verbosity=0
+ continue
;;
+ -d|--delete-old)
+ opt_delete_old=y
+ continue
+ ;;
+ *)
+ ebuild_arg=${arg}
+ continue
+ ;;
esac
- fi
done
_vcs=$(get_vcs)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-10-25 17:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-25 17:00 [gentoo-commits] gentoolkit r821 - in trunk/gentoolkit-dev: . src/ebump Christian Ruppert (idl0r)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox