summaryrefslogtreecommitdiff
path: root/admin/nt/dist-build/build-zips.sh
diff options
context:
space:
mode:
authorPhillip Lord <phillip.lord@russet.org.uk>2017-11-29 21:28:44 +0000
committerPhillip Lord <phillip.lord@russet.org.uk>2017-11-30 22:59:39 +0000
commitef183144add2b92359a9ade2ec0b28681b26956b (patch)
tree7b154cbf32bbf5c7264ab20818011271f58dde78 /admin/nt/dist-build/build-zips.sh
parent3f3d98ee5851840228786390ee7dbf851d144eb8 (diff)
downloademacs-ef183144add2b92359a9ade2ec0b28681b26956b.tar.gz
Add date to dependency and source zips for snapshots
* admin/nt/dist-build/build-zips.sh, admin/nt/dist-build/build-dep-zips.py: Support snapshot naming
Diffstat (limited to 'admin/nt/dist-build/build-zips.sh')
-rwxr-xr-xadmin/nt/dist-build/build-zips.sh37
1 files changed, 27 insertions, 10 deletions
diff --git a/admin/nt/dist-build/build-zips.sh b/admin/nt/dist-build/build-zips.sh
index 2c7b56866ff..5822d821a1c 100755
--- a/admin/nt/dist-build/build-zips.sh
+++ b/admin/nt/dist-build/build-zips.sh
@@ -19,7 +19,7 @@
function git_up {
- echo Making git worktree for Emacs $VERSION
+ echo [build] Making git worktree for Emacs $VERSION
cd $HOME/emacs-build/git/emacs-$MAJOR_VERSION
git pull
git worktree add ../$BRANCH $BRANCH
@@ -34,7 +34,7 @@ function build_zip {
PKG=$2
HOST=$3
- echo Building Emacs-$VERSION for $ARCH
+ echo [build] Building Emacs-$VERSION for $ARCH
if [ $ARCH == "i686" ]
then
PATH=/mingw32/bin:$PATH
@@ -52,11 +52,12 @@ function build_zip {
## time that is not always needed
if (($CONFIG))
then
- ../../../git/$BRANCH/configure \
- --without-dbus \
- --host=$HOST --without-compress-install \
- $CACHE \
- CFLAGS="-O2 -static -g3"
+ echo [build] Configuring Emacs $ARCH
+ ../../../git/$BRANCH/configure \
+ --without-dbus \
+ --host=$HOST --without-compress-install \
+ $CACHE \
+ CFLAGS="-O2 -static -g3"
fi
make -j 16 install \
@@ -66,7 +67,18 @@ function build_zip {
zip -r -9 emacs-$OF_VERSION-$ARCH-no-deps.zip *
mv emacs-$OF_VERSION-$ARCH-no-deps.zip $HOME/emacs-upload
rm bin/libXpm-noX4.dll
- unzip $HOME/emacs-build/deps/emacs-$MAJOR_VERSION-$ARCH-deps.zip
+
+ if [ -z $SNAPSHOT ];
+ then
+ DEPS_FILE=$HOME/emacs-build/deps/emacs-$MAJOR_VERSION-$ARCH-deps.zip
+ else
+ ## Pick the most recent snapshot whatever that is
+ DEPS_FILE=`ls $HOME/emacs-build/deps/emacs-$MAJOR_VERSION-*-$ARCH-deps.zip | tail -n 1`
+ fi
+
+ echo [build] Using $DEPS_FILE
+ unzip $DEPS_FILE
+
zip -r -9 emacs-$OF_VERSION-$ARCH.zip *
mv emacs-$OF_VERSION-$ARCH.zip ~/emacs-upload
}
@@ -74,7 +86,7 @@ function build_zip {
function build_installer {
ARCH=$1
cd $HOME/emacs-build/install/emacs-$VERSION
- echo Calling makensis in `pwd`
+ echo [build] Calling makensis in `pwd`
cp ../../git/$BRANCH/admin/nt/dist-build/emacs.nsi .
makensis -v4 \
@@ -148,14 +160,19 @@ fi
if [ -z $VERSION ];
then
- echo Cannot determine Emacs version
+ echo [build] Cannot determine Emacs version
exit 1
fi
MAJOR_VERSION="$(echo $VERSION | cut -d'.' -f1)"
+## ACTUAL VERSION is the version declared by emacs
ACTUAL_VERSION=$VERSION
+
+## VERSION includes the word snapshot if necessary
VERSION=$VERSION$SNAPSHOT
+
+## OF version includes the date if we have a snapshot
OF_VERSION=$VERSION
if [ -z $SNAPSHOT ];