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