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