configurable branch

This commit is contained in:
Gwenhael Le Moine 2018-04-22 11:34:28 +02:00
parent 25851cd119
commit cf3b15507f
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -34,6 +34,7 @@ VERSION=${VERSION:-$(date +"%Y.%m.%d_%H.%M")}
ARCH=${ARCH:-$(uname -m)} ARCH=${ARCH:-$(uname -m)}
NUMJOBS=${NUMJOBS:-" -j3 "} NUMJOBS=${NUMJOBS:-" -j3 "}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
BRANCH=${BRANCH:-"emacs-26"}
TAG=cyco TAG=cyco
OUTPUT=/tmp OUTPUT=/tmp
@ -53,10 +54,12 @@ rm -rf $PRGNAM
[ ! -e $REPOSITORY ] && git clone git://git.savannah.gnu.org/emacs.git $REPOSITORY [ ! -e $REPOSITORY ] && git clone git://git.savannah.gnu.org/emacs.git $REPOSITORY
( cd $REPOSITORY ( cd $REPOSITORY
git checkout $BRANCH
git pull git pull
[ -e Makefile ] && make distclean [ -e Makefile ] && make distclean
) )
VERSION="$( cd $REPOSITORY && git log -1 --format=%h_%ad --date=format:%Y.%m.%d )" VERSION="$( cd $REPOSITORY && git log -1 --format=%h_%ad --date=format:%Y.%m.%d )"
cd $TMP cd $TMP
mkdir -p $TMP/$PRGNAM mkdir -p $TMP/$PRGNAM
SRCDIR=$REPOSITORY SRCDIR=$REPOSITORY