Commit b2b4848a authored by Vitaly Lipatov's avatar Vitaly Lipatov

introduce grpmbs - send a group of packages to girar build

introduce grpmbsh - build a group of packages in hasher
parent f9636add
#!/bin/sh
# load common functions, compatible with local and installed script
. `dirname $0`/../share/eterbuild/functions/common
load_mod git
set_girar_host $1 && shift
if [ "$1" = "-h" ] || [ "$1" = "--help" ] ; then
echo "grpmbs - multi repo rpmbs analogue (build packages via girar)"
echo "Run in dir contains subdirs"
echo "Use: grpmbs [GIRAR] [-a|-u] [-f] package1... package2..."
echo "Options:"
echo " -a - build all packages in one task"
echo " -u - build packages separately (one package per task)"
echo " -f - force set tags (see rpmbs)"
exit 1
fi
TASKADD=
if [ "$1" = "-a" ] ; then
TASKADD="-a"
shift
fi
SINGLETASK=
if [ "$1" = "-u" ] ; then
SINGLETASK="-u"
shift
fi
if [ -z "$TASKADD$SINGLETASK" ] ; then
fatal "Missing arguments. Run with --help for help."
fi
FORCE=
if [ "$1" = "-f" ] ; then
FORCE="-f"
shift
fi
fatal()
{
echo $@
exit 1
}
if [ -n "TASKADD" ] ; then
TASK=$(ssh $GIRARHOST task new | head -n1)
[ -n "$TASK" ] || fatal
RUNCOMMAND="rpmbs $GIRARHOST -a $TASK"
else
RUNCOMMAND="rpmbs $GIRARHOST -u"
fi
for i in "$@" ; do
cd $i || fatal "Run in dir contains '$i' dir"
echo
echo "== Run $RUNCOMMAND in $(pwd)"
$RUNCOMMAND $FORCE || fatal
cd -
done
if [ -n "TASKADD" ] ; then
ssh $GIRARHOST task run "$TASK"
fi
#!/bin/sh
# load common functions, compatible with local and installed script
. `dirname $0`/../share/eterbuild/functions/common
load_mod git
set_girar_host $1 && shift
if [ "$1" = "-h" ] || [ "$1" = "--help" ] ; then
echo "grpmbsh - multi repo rpmbsh analogue (build packages in hasher)"
echo "Use: grpmbs [GIRAR] package1... package2..."
# FIXME: concatenate grpmbsh and grpmbs
#echo "Options:"
#echo " -a - build all packages in one task"
#echo " -u - build packages separately (one package per task)"
#echo " -f - force set tags (see rpmbs)"
exit 1
fi
for i in "$@" ; do
cd $i || fatal "Run in dir, contains '$i' directory."
rpmbsh $GIRARHOST || fatal
cd -
done
#!/bin/sh
. /etc/rpm/etersoft-build-functions
FILES=
for i in $@ ; do
# FILES="$FILES $i/$i.spec"
#done
#rpmbsh -u $FILES
cd $i || exit 1
rpmbs -u || exit 1
cd -
done
#!/bin/sh
. /etc/rpm/etersoft-build-functions
FILES=
for i in $@ ; do
# FILES="$FILES $i/$i.spec"
#done
#rpmbsh -u $FILES
cd $i || exit 1
rpmbsh || exit 1
cd -
done
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