Commit 02044f84 authored by Vitaly Lipatov's avatar Vitaly Lipatov

introduce CURRENTBRANCHNAME and use it in helps

parent 8d7e39fd
......@@ -18,7 +18,7 @@ SAVEOPT=$@
#############################
Usage="Usage: $name [-t -i -h -r] bin.rpm..."
Usage="Usage: $name [-t -i -h -r] [-$CURRENTBRANCHNAME] bin.rpm..."
function mygetopts()
{
name=${0##*/}
......@@ -33,6 +33,7 @@ phelp()
echog " -c - cleanup hasher"
echog " -t - use test hasher dir"
echog " -r - remote login to hasher"
echog " -M?? - branch name"
}
while getopts :chitr opt; do
......
......@@ -8,8 +8,6 @@
# rpm-
# :
# - -
# TODO -M?
# TODO: -c
# load common functions, compatible with local and installed script
. `dirname $0`/../share/eterbuild/functions/common
......
......@@ -247,7 +247,7 @@ $BUILDCOMMAND $LISTRPMARGS $REMOTEBUILD $DISTRARG $SPECNAME || fatal "Can't buil
#############################
Usage="Usage: $name [-r -u -U -n -i -m -v] [-M??] spec..."
Usage="Usage: $name [-r -u -U -n -i -m -v] [-$CURRENTBRANCHNAME] spec..."
function mygetopts()
{
name=${0##*/}
......@@ -257,7 +257,7 @@ phelp()
{
echog "$Descr"
echog "$Usage"
echo "Use rpmbph -M40 for backport to ALT 4.0 and so on"
echo "Use rpmbph -$CURRENTBRANCHNAME for backport to ALT $CURRENTBRANCHNAME and so on"
echog "Options:"
echog " -r - remote build"
# echog " -m - send result via e-mail"
......
......@@ -40,6 +40,8 @@ REMOTERPMDIR=
HASHERDIR="$HOME/hasher"
HASHER_NOCHECK=nvr,gpg,packager,buildtime
HASHERARG="--eager-cleanup"
# for use in help as example branch/distro name
CURRENTBRANCHNAME="M51"
[ -n "$DEBUG" ] && HASHERARG="-v $HASHERARG"
RSYNCSISYPHUS=rsync.altlinux.org::ALTLinux/Sisyphus
......
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