Commit 1f8f2841 authored by Vitaly Lipatov's avatar Vitaly Lipatov

introduce GITREPODIR (. by default) and use it in rpmgp

parent f72b1391
......@@ -241,15 +241,14 @@ if [ -n "$MIGRATEGEAR" ] ; then
echo "Can't get basename for $PKGNAME, skipping"
continue
fi
echo "Create gear repo $BASENAME from $PKGNAME"
GITALT=~/Projects/git-alt
GEARDIR=$GITALT/$BASENAME
echo "Create gear repo $BASENAME from $PKGNAME in $GITREPODIR"
GEARDIR=$GITREPODIR/$BASENAME
test -d "$GEARDIR" && fatal "repo $GEARDIR already exits"
mkdir -p "$GEARDIR" || fatal "can't create dir $GEARDIR"
cd $GEARDIR || fatal "can't cd to $GEARDIR"
git init-db || fatal "can't init db"
gear-srpmimport $PKGNAME || fatal "can't import srpm $PKGNAME"
# remove src.rpm only if it was generated
# remove src.rpm only if it was generated from spec
[ -z ${INFILE/*rpm/} ] || rm -vf $PKGNAME
done
exit 0
......
......@@ -87,3 +87,6 @@
# Skip error if there are unpackaged files in the build
#NOSTRICT_UNPACKAGED=1
# Path to default dir with git repos (used in rpmgp -m).
#GITREPODIR=.
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