diff options
authorBrian Dolbec <dolsen@gentoo.org>2017-03-22 04:56:59 -0700
committerBrian Dolbec <dolsen@gentoo.org>2017-03-22 05:00:07 -0700
commit12fa38a1fa44ed435631968f1a82bd24fc0e5dbc (patch)
parentekeyword: Remove ekeyword symlink (diff)
ebump: Add to setup.py, minor update to man page
Update script to use VERSION like the other scripts
3 files changed, 27 insertions, 24 deletions
diff --git a/bin/ebump b/bin/ebump
index b129f85..a0d4d56 100755
--- a/bin/ebump
+++ b/bin/ebump
@@ -3,7 +3,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
__author__="Karl Trygve Kalleberg"
__description__="Ebuild version bumping tool"
@@ -13,6 +12,8 @@ __description__="Ebuild version bumping tool"
# a given ebuild and auxiliary files in the Portage tree. It is only
# useful for Gentoo developers with CVS commit access.
die() {
echo $1 >&2
exit -1
@@ -25,7 +26,7 @@ einfo() {
print_version() {
- echo "${__description__}, v${__version__}"
+ echo "${__description__}, v${VERSION}"
echo "Copyright (c) 2004 ${__author__} ${__email__}"
echo "Copyright 1999-2010 Gentoo Foundation"
echo "Distributed under the terms of the GNU General Public License v2"
@@ -33,7 +34,7 @@ print_version() {
print_usage() {
echo "Usage: ebump <options> foo<.ebuild>"
- echo "Ebuild version bumping tool, v${__version__}"
+ echo "Ebuild version bumping tool, v${VERSION}"
echo " -V|--version show version info"
echo " -v|--verbose increase verbosity"
echo " -q|--quiet turn off output"
diff --git a/man/ebump.1 b/man/ebump.1
index b1e473d..1754cf9 100644
--- a/man/ebump.1
+++ b/man/ebump.1
@@ -1,12 +1,12 @@
-.TH "ebump" "1" "0.1.1" "Gentoolkit" "Gentoo Administration"
+.TH "EBUMP" "1" "March 2017" "GENTOOLKIT" "Gentoo Administration"
ebump \- Gentoo: Ebuild revision bumper
ebump [\fIoption\fP] <\fIpackage-name[-version]\fP>
\fIebump\fR bumps the revision of a particular ebuild, and all auxiliary
@@ -15,36 +15,36 @@ files in the files/ directory that have a matching version suffix.
By default, the all new revision files will be added to the VCS.
You must stand in the directory of the ebuild to be bumped.
Do not add new files to VCS.
Display version information and exit.
Increase verbosity level. May be used more than once.
Do not output any non-essential information.
@@ -61,19 +61,19 @@ don't bump auxfiles (files/*)
do not update ChangeLog (via echangelog)
\fB\-m\fR <\fIChangeLog text\fR>
\fB\--message\fR <\fIChangeLog text\fR>
Specifies the message to add to the ChangeLog, instead of the standard
Delete old revision and old auxiliary files from VCS. This is
\fIdangerous\fR and should only be used if you know exactly what you are
doing, because
@@ -111,16 +111,16 @@ From these files, \fIebump\fR will load the settings
-From this file, \fIebump\fR will load the env vars \fBAUTHORNAME\fR and
+From this file, \fIebump\fR will load the env vars \fBAUTHORNAME\fR and
\fBAUTHOREMAIL\fR, which are used to generate proper ChangeLog entries.
The rest of the utilities in \fIapp-portage/gentoolkit-dev\fR, such as
\fIechangelog(1)\fR and \fIekeyword(1)\fR.
Karl Trygve Kalleberg <karltk@gentoo.org>
Christian Ruppert <idl0r@gentoo.org>
diff --git a/setup.py b/setup.py
index 024b612..d16a56b 100755
--- a/setup.py
+++ b/setup.py
@@ -30,6 +30,7 @@ except ImportError:
# Bash files that need `VERSION=""` subbed, relative to this dir:
bash_scripts = [(os.path.join(cwd, path), 'VERSION=') for path in (
+ 'bin/ebump',
@@ -49,6 +50,7 @@ python_scripts = [(os.path.join(cwd, path), '__version__ = ') for path in (
manpages = [(os.path.join(cwd, path[0]), path[1]) for path in (
+ ('man/ebump.1', 'EBUMP'),
('man/eclean.1', 'ECLEAN'),
('man/enalyze.1', 'ENALYZE'),
('man/epkginfo.1', 'EPKGINFO'),