configurable branch
This commit is contained in:
parent
25851cd119
commit
cf3b15507f
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue