Commit 769ea598 authored by KatolaZ's avatar KatolaZ

Added command bu[mr]p and updated the manpage

parent bd73faab
......@@ -354,6 +354,27 @@ handle_current(){
fi
}
## update the changelog and set a new version number with 'gpb dch'
## function
handle_burp(){
check_git "$0"
check_pending_commits
PKG_VERSION=$1
if [ -z "${PKG_VERSION}" ]; then
echo "$0: you must specify a version number"
exit ${ERR_PARAM}
fi
gbp dch -a -R -N "${PKG_VERSION}"
[ "$?" != "0" ] && echo "$0: Error in gbp dch " && exit ${ERR_PROCESS}
}
## function
show_usage(){
......@@ -451,6 +472,9 @@ case "$1" in
current)
handle_current
;;
bump | burp)
handle_burp
;;
*)
echo "Unknown command: $1"
exit ${ERR_PARAM};
......
.\" The following requests are required for all man pages.
.Dd April 10, 2017
.Dt D1H 1 "Devuan Helpers"
.Dt D1H 1 URM
.Os Devuan Utilities
.Sh NAME
.Nm d1h
......@@ -8,7 +8,7 @@
.Sh SYNOPSIS
.Nm d1h
{cache | search | import | link | prepare | switch | dismiss |
testbuild | stage}
testbuild | stage | suites | current | bump }
.Op Ar command_options
.Sh DESCRIPTION
.Pp
......@@ -132,6 +132,16 @@ performs a git checkout of the corresponding branch.
Destroy an existing suite environment by removing the correponding
branch.
.It Ic suites
list the set of available suites.
.It Ic current
shows the current suite.
.It Ic bump Ar version
Update the changelog and set a new version for the current suite.
.It Ic testbuild
Try to build the package in the current suite environment, and create
the corresponing .deb packages in the parent directory. This command
......@@ -186,3 +196,9 @@ http://anonscn.debian.org.cgit, parses the HTML file and puts the
results into ~/.d1h/cache. However, not all Debian packages use git as
a VCS. It should be possible to integrate other VCS in the workflow.
.Pp
The command
.Sy burp
is an alias for
.Sy bump
:-P
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment