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
|
( cd $REPOSITORIES/$PRGNAM/$BRANCH
|
||||||
)
|
git pull
|
||||||
|
[ -e Makefile ] && make distclean
|
||||||
|
)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
( cd $REPOSITORIES/$PRGNAM/$BRANCH
|
|
||||||
bzr pull
|
|
||||||
[ -e Makefile ] && make distclean
|
|
||||||
)
|
|
||||||
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=.
|
||||||
|
@ -90,7 +87,7 @@ find . \
|
||||||
( cd $SRCDIR
|
( cd $SRCDIR
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
)
|
)
|
||||||
|
|
||||||
CFLAGS="$SLKCFLAGS" \
|
CFLAGS="$SLKCFLAGS" \
|
||||||
CXXFLAGS="$SLKCFLAGS" \
|
CXXFLAGS="$SLKCFLAGS" \
|
||||||
$SRCDIR/configure \
|
$SRCDIR/configure \
|
||||||
|
@ -130,37 +127,37 @@ if [ ! "x$ONLY_X11" == "xYES" ] ; then
|
||||||
cd $TMP
|
cd $TMP
|
||||||
rm -rf $PRGNAM-$VERSION
|
rm -rf $PRGNAM-$VERSION
|
||||||
if [ ! -e $CWD/$PRGNAM-$VERSION.tar.?z* ] ; then
|
if [ ! -e $CWD/$PRGNAM-$VERSION.tar.?z* ] ; then
|
||||||
[ -e $TMP/$PRGNAM-$VERSION ] && rm -fr $TMP/$PRGNAM-$VERSION
|
[ -e $TMP/$PRGNAM-$VERSION ] && rm -fr $TMP/$PRGNAM-$VERSION
|
||||||
mkdir -p $TMP/$PRGNAM-$VERSION
|
mkdir -p $TMP/$PRGNAM-$VERSION
|
||||||
SRCDIR=$REPOSITORIES/$PRGNAM/$BRANCH
|
SRCDIR=$REPOSITORIES/$PRGNAM/$BRANCH
|
||||||
else
|
else
|
||||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.?z* || exit 1
|
tar xvf $CWD/$PRGNAM-$VERSION.tar.?z* || exit 1
|
||||||
SRCDIR=.
|
SRCDIR=.
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd $PRGNAM-$VERSION || exit 1
|
cd $PRGNAM-$VERSION || exit 1
|
||||||
chown -R root:root .
|
chown -R root:root .
|
||||||
find . \
|
find . \
|
||||||
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||||
-exec chmod 755 {} \; -o \
|
-exec chmod 755 {} \; -o \
|
||||||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||||
-exec chmod 644 {} \;
|
-exec chmod 644 {} \;
|
||||||
|
|
||||||
CFLAGS="$SLKCFLAGS" \
|
CFLAGS="$SLKCFLAGS" \
|
||||||
CXXFLAGS="$SLKCFLAGS" \
|
CXXFLAGS="$SLKCFLAGS" \
|
||||||
$SRCDIR/configure \
|
$SRCDIR/configure \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--sysconfdir=/etc \
|
--sysconfdir=/etc \
|
||||||
--localstatedir=/var \
|
--localstatedir=/var \
|
||||||
--program-prefix="" \
|
--program-prefix="" \
|
||||||
--program-suffix="" \
|
--program-suffix="" \
|
||||||
--mandir=/usr/man \
|
--mandir=/usr/man \
|
||||||
--infodir=/usr/info \
|
--infodir=/usr/info \
|
||||||
--with-x=no \
|
--with-x=no \
|
||||||
--without-gconf \
|
--without-gconf \
|
||||||
--with-compress-install \
|
--with-compress-install \
|
||||||
--build=${ARCH}-slackware-linux
|
--build=${ARCH}-slackware-linux
|
||||||
|
|
||||||
make $NUMJOBS || make || exit 1
|
make $NUMJOBS || make || exit 1
|
||||||
|
|
||||||
# Install the non-x version:
|
# Install the non-x version:
|
||||||
|
@ -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