test-z"$VERBOSE"||echo"Build package with release $TXTRELEASE"
ADDDEF="%defattr(-, root, root)"
...
...
@@ -283,16 +285,18 @@ phelp()
{
echog "$Descr"
echog "$Usage"
echo"Use rpmbph -$CURRENTBRANCHNAME for backport to ALT $CURRENTBRANCHNAME and so on"
echo"Usage: rpmbph -$CURRENTBRANCHNAME for backport to ALT $CURRENTBRANCHNAME and so on"
echo
echog "Options:"
echog " -u - sign and upload after build"# will pass to rpmbs/rpmbsh
echog " -n - do not build in hasher"
echog " -i - install built packages in test hasher"# will pass to rpmbs/rpmbsh
echog " -b REPONAME - binary repository name (4.1, 5.0, 5.1 and so on)"
echog " -u sign and upload after build"# will pass to rpmbs/rpmbsh
echog " -n do not build in hasher"
echog " -i install built packages in test hasher"# will pass to rpmbs/rpmbsh
echog " -b REPONAME binary repository name (4.1, 5.0, 5.1 and so on)"
echo
echog "Ext. options:"
echog " -r - remote build"# will pass to rpmbs/rpmbsh
echog " -v - more verbose"
echog " -q - quiet"
echog " -r remote build"# will pass to rpmbs/rpmbsh
echog " -v more verbose"
echog " -q quiet"
# echog " -m - send result via e-mail"
}
...
...
@@ -376,14 +380,14 @@ if [ "$VENDOR" = "alt" ] && is_gear $SPECDIR ; then
# Create branch if not exist yet
if! is_exist_branch $USEBRANCH;then
git branch $USEBRANCH
docmd git branch $USEBRANCH
fi
cp-f$LISTNAMES$BPSPEC
altspec_to_local $BPSPEC
git checkout $USEBRANCH|| fatal "Can't checkout branch $USEBRANCH. Use $BPSPEC manually or remove it."
git merge $CURBRANCH
docmd git checkout $USEBRANCH|| fatal "Can't checkout branch $USEBRANCH. Use $BPSPEC manually or remove it."
docmd git merge $CURBRANCH
mv-f$BPSPEC$SPEC
# FIXME: Ctrl-\ and q will cancelled less with return error code
if[-z"$QUIET"]&&tty-s&&!(echo"etersoft-build-utils INFO: Please check diff for backported spec:";echo"# etersoft-build-utils NOTE: You can press Ctrl-\ before quit for cancel process.";echo; git diff $USEBRANCH) | less;then
...
...
@@ -391,15 +395,15 @@ if [ "$VENDOR" = "alt" ] && is_gear $SPECDIR ; then
#git checkout $CURBRANCH
fatal "User cancelled. You are still in $USEBRANCH branch with modified spec"
fi
git add $SPEC
docmd git add $SPEC
if! git_commit_ignore_nothing -a-m"backported to $USEBRANCH as $(get_version $SPEC)-$(get_release $SPEC) (with rpmbph script)";then
#git checkout $CURBRANCH
fatal "Commit error. You are still in $MDISTR branch with modified and uncommitted spec"
@@ -207,15 +207,15 @@ if [ -n "$UPLOADNOW" ] && is_gear $SPECDIR ; then
pkg_release_check
TAG=$VERSION-$RELEASE
check_gear_and_tag "$TAG"# || fatal "Can't make tag"
$ETERBUILDBIN/gpush $GIRARHOST$FORCE"$TAG"|| fatal "gpush failed. Possibly you need to run ginit for create remote repo. Try \$ gpush $GIRARHOST$TAG command separately"
docmd $ETERBUILDBIN/gpush $GIRARHOST$FORCE"$TAG"|| fatal "gpush failed. Possibly you need to run ginit for create remote repo. Try \$ gpush $GIRARHOST$TAG command separately"