git
This commit is contained in:
parent
76dc6e9b8a
commit
e3d4708b5f
1 changed files with 28 additions and 32 deletions
|
@ -62,18 +62,15 @@ rm -rf $PRGNAM-$VERSION
|
||||||
|
|
||||||
if [ ! -e $CWD/$PRGNAM-$VERSION.tar.?z* ] ; then
|
if [ ! -e $CWD/$PRGNAM-$VERSION.tar.?z* ] ; then
|
||||||
if [ ! -e $REPOSITORIES/$PRGNAM/$BRANCH ] ; then
|
if [ ! -e $REPOSITORIES/$PRGNAM/$BRANCH ] ; then
|
||||||
mkdir -p $REPOSITORIES/$PRGNAM
|
git clone git://git.sv.gnu.org/emacs.git $REPOSITORIES/$PRGNAM
|
||||||
( cd $REPOSITORIES/$PRGNAM
|
else
|
||||||
bzr branch --stacked http://bzr.savannah.gnu.org/r/emacs/$BRANCH $BRANCH
|
|
||||||
)
|
|
||||||
fi
|
|
||||||
|
|
||||||
( cd $REPOSITORIES/$PRGNAM/$BRANCH
|
( cd $REPOSITORIES/$PRGNAM/$BRANCH
|
||||||
bzr pull
|
git pull
|
||||||
[ -e Makefile ] && make distclean
|
[ -e Makefile ] && make distclean
|
||||||
)
|
)
|
||||||
|
fi
|
||||||
mkdir -p $TMP/$PRGNAM-$VERSION
|
mkdir -p $TMP/$PRGNAM-$VERSION
|
||||||
SRCDIR=$REPOSITORIES/$PRGNAM/$BRANCH
|
SRCDIR=$REPOSITORIES/$PRGNAM
|
||||||
else
|
else
|
||||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.?z* || exit 1
|
tar xvf $CWD/$PRGNAM-$VERSION.tar.?z* || exit 1
|
||||||
SRCDIR=.
|
SRCDIR=.
|
||||||
|
@ -232,4 +229,3 @@ EOF
|
||||||
|
|
||||||
cd $PKG
|
cd $PKG
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue