Commit dc817e16 authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmbph: improve description

parent 5aed78e1
...@@ -287,7 +287,7 @@ phelp() ...@@ -287,7 +287,7 @@ phelp()
{ {
echog "$Descr" echog "$Descr"
echog "$Usage" echog "$Usage"
echo "Usage: rpmbph -$CURRENTBRANCHNAME for backport to ALT $CURRENTBRANCHNAME and so on" echo "Usage: rpmbph -b $EXAMPLEALTDISTRVERSION for backport to ALT Linux $EXAMPLEALTDISTRVERSION and so on"
echo echo
echog "Options:" echog "Options:"
echog " -u sign and upload after build" # will pass to rpmbs/rpmbsh echog " -u sign and upload after build" # will pass to rpmbs/rpmbsh
...@@ -336,8 +336,8 @@ test -z "$LISTNAMES" && fatal "file not found in '$@'" ...@@ -336,8 +336,8 @@ test -z "$LISTNAMES" && fatal "file not found in '$@'"
if [ "$VENDOR" = "alt" ] ; then if [ "$VENDOR" = "alt" ] ; then
MDISTR=$MENV MDISTR=$MENV
[ -n "$BINARYREPONAME" ] && MDISTR=$(get_altdistr_mod $BINARYREPONAME) [ -n "$BINARYREPONAME" ] && MDISTR=$(get_altdistr_mod $BINARYREPONAME)
test -z "$MDISTR" && fatal "Missed backport version (f.i. run with -M24 param for Master 2.4)" [ "$MDISTR" = "SS" ] && fatal "It is senseless to backport to Sisyphus (You can try with -b $EXAMPLEALTDISTRVERSION)."
[ "$MDISTR" = "SS" ] && fatal "It is senseless to backport to Sisyphus. Run with -$CURRENTBRANCHNAME for example." # override by defined target version
DISTRVERSION=$(get_altdistr_version $MDISTR) DISTRVERSION=$(get_altdistr_version $MDISTR)
else else
MDISTR=LOCAL MDISTR=LOCAL
......
...@@ -43,8 +43,10 @@ HASHERBASEDIR="$HOME/hasher" ...@@ -43,8 +43,10 @@ HASHERBASEDIR="$HOME/hasher"
HASHER_NOCHECK=nvr,gpg,packager,buildtime HASHER_NOCHECK=nvr,gpg,packager,buildtime
HASHERARG="" HASHERARG=""
# TODO: do not use this notation at all
# for use in help as example branch/distro name # for use in help as example branch/distro name
CURRENTBRANCHNAME="M51" EXAMPLEALTDISTRVERSION="p6"
CURRENTBRANCHNAME="M60"
# Build for Sisyphus by default # Build for Sisyphus by default
MENV=SS MENV=SS
......
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