Commit abe71857 authored by Vitaly Lipatov's avatar Vitaly Lipatov

user gear via vars, do not require it

parent f9c85a95
......@@ -155,8 +155,9 @@ if [ -n "$SIGN" ]; then
release_check $LISTBUILT
# create tag according to package release
if is_git $SPECDIR ; then
# needed corrent user.name/user.email for get GPG id
gear-create-tag --force
local GEARCTAG=gear-create-tag
# needed corrent user.name/user.email for get GPG id
$GEARCTAG --force
# git push ?
fi
echog "Will try to sign follow packages with GPG: \$LISTBUILT"
......
......@@ -16,6 +16,8 @@ uni_rpmbuild()
shift
local SPECNAME=$1
local SPECDIR=`dirname $SPECNAME`
local GEAR=gear
local GEARBUILDREQ=gear-buildreq
if [ -n "$USE_LEGACY_COMPRESSION" ] ; then
# FIXME: do not override -v
ONEPARAM="--define=_source_payload w9.gzdio"
......@@ -23,7 +25,7 @@ uni_rpmbuild()
# TODO: add support for git
if [ "$COMMAND" = "buildreq" ] ; then
if is_git $SPECDIR ; then
$NICE gear-buildreq --commit -- $@
$NICE $GEARBUILDREQ --commit -- $@
else
$NICE $COMMAND $@
fi
......@@ -34,11 +36,11 @@ uni_rpmbuild()
shift # skip spec name
[ -n "$SPECDIR" ] && [ "$SPECDIR" != "." ] && warning "Spec is not in git dir"
if [ "$MENV" = "SS" ] ; then
$NICE gear --commit --rpmbuild -- $COMMAND "$ONEPARAM" $@
$NICE $GEAR --commit --rpmbuild -- $COMMAND "$ONEPARAM" $@
else
# build src.rpm via hasher (on ALT)
# $NICE gear-hsh --build-args="-bs" --rpmbuild -- $COMMAND "$ONEPARAM" $@
$NICE gear --hasher -- myhsh --build-prog=$ETERBUILDDIR/functions/rebuild $@
$NICE $GEAR --hasher -- myhsh --build-prog=$ETERBUILDDIR/functions/rebuild $@
fi
else
$NICE $COMMAND "$ONEPARAM" $@
......
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