aboutsummaryrefslogtreecommitdiffstats
path: root/admin/nt
diff options
context:
space:
mode:
authorPhillip Lord2017-11-17 23:07:38 +0000
committerPhillip Lord2017-11-20 19:55:31 +0000
commit046cde2d66ed044eb7eb71cd9e69206ee59e12fe (patch)
tree6fb066081d6dc7b2d102cb254710dcc5681217c3 /admin/nt
parent5b5f441ff8986800aa5f175bb5db2dd90e642a3a (diff)
downloademacs-046cde2d66ed044eb7eb71cd9e69206ee59e12fe.tar.gz
emacs-046cde2d66ed044eb7eb71cd9e69206ee59e12fe.zip
Add date to snapshot file
* admin/nt/dist-build/build-zips.sh: Add date to all out files. * admin/nt/dist-build/emacs.nsi: Lower case and date installer.
Diffstat (limited to 'admin/nt')
-rwxr-xr-xadmin/nt/dist-build/build-zips.sh33
-rw-r--r--admin/nt/dist-build/emacs.nsi3
2 files changed, 25 insertions, 11 deletions
diff --git a/admin/nt/dist-build/build-zips.sh b/admin/nt/dist-build/build-zips.sh
index ce4a11dc1e7..d41f6d9cbd7 100755
--- a/admin/nt/dist-build/build-zips.sh
+++ b/admin/nt/dist-build/build-zips.sh
@@ -47,21 +47,28 @@ function build_zip {
47 cd $HOME/emacs-build/build/emacs-$VERSION/$ARCH 47 cd $HOME/emacs-build/build/emacs-$VERSION/$ARCH
48 48
49 export PKG_CONFIG_PATH=$PKG 49 export PKG_CONFIG_PATH=$PKG
50
51 ## Running configure forces a rebuild of the C core which takes
52 ## time that is not always needed
53 if (($CONFIG))
54 then
50 ../../../git/$BRANCH/configure \ 55 ../../../git/$BRANCH/configure \
51 --without-dbus \ 56 --without-dbus \
52 --host=$HOST --without-compress-install \ 57 --host=$HOST --without-compress-install \
53 $CACHE \ 58 $CACHE \
54 CFLAGS="-O2 -static -g3" 59 CFLAGS="-O2 -static -g3"
60 fi
61
55 make -j 16 install \ 62 make -j 16 install \
56 prefix=$HOME/emacs-build/install/emacs-$VERSION/$ARCH 63 prefix=$HOME/emacs-build/install/emacs-$VERSION/$ARCH
57 cd $HOME/emacs-build/install/emacs-$VERSION/$ARCH 64 cd $HOME/emacs-build/install/emacs-$VERSION/$ARCH
58 cp $HOME/emacs-build/deps/libXpm/$ARCH/libXpm-noX4.dll bin 65 cp $HOME/emacs-build/deps/libXpm/$ARCH/libXpm-noX4.dll bin
59 zip -r -9 emacs-$VERSION-$ARCH-no-deps.zip * 66 zip -r -9 emacs-$OF_VERSION-$ARCH-no-deps.zip *
60 mv emacs-$VERSION-$ARCH-no-deps.zip $HOME/emacs-upload 67 mv emacs-$OF_VERSION-$ARCH-no-deps.zip $HOME/emacs-upload
61 rm bin/libXpm-noX4.dll 68 rm bin/libXpm-noX4.dll
62 unzip $HOME/emacs-build/deps/emacs-26-$ARCH-deps.zip 69 unzip $HOME/emacs-build/deps/emacs-26-$ARCH-deps.zip
63 zip -r -9 emacs-$VERSION-$ARCH.zip * 70 zip -r -9 emacs-$OF_VERSION-$ARCH.zip *
64 mv emacs-$VERSION-$ARCH.zip ~/emacs-upload 71 mv emacs-$OF_VERSION-$ARCH.zip ~/emacs-upload
65} 72}
66 73
67function build_installer { 74function build_installer {
@@ -72,9 +79,9 @@ function build_installer {
72 79
73 makensis -v4 \ 80 makensis -v4 \
74 -DARCH=$ARCH -DEMACS_VERSION=$ACTUAL_VERSION \ 81 -DARCH=$ARCH -DEMACS_VERSION=$ACTUAL_VERSION \
75 -DOUT_VERSION=$VERSION emacs.nsi 82 -DOUT_VERSION=$OF_VERSION emacs.nsi
76 rm emacs.nsi 83 rm emacs.nsi
77 mv Emacs-$ARCH-$VERSION-installer.exe ~/emacs-upload 84 mv Emacs-$OF_VERSION-$ARCH-installer.exe ~/emacs-upload
78} 85}
79 86
80set -o errexit 87set -o errexit
@@ -86,8 +93,9 @@ BUILD=1
86BUILD_32=1 93BUILD_32=1
87BUILD_64=1 94BUILD_64=1
88GIT_UP=0 95GIT_UP=0
96CONFIG=1
89 97
90while getopts "36ghsiV:" opt; do 98while getopts "36ghnsiV:" opt; do
91 case $opt in 99 case $opt in
92 3) 100 3)
93 BUILD_32=1 101 BUILD_32=1
@@ -105,6 +113,9 @@ while getopts "36ghsiV:" opt; do
105 BUILD_64=0 113 BUILD_64=0
106 GIT_UP=1 114 GIT_UP=1
107 ;; 115 ;;
116 n)
117 CONFIG=0
118 ;;
108 i) 119 i)
109 BUILD=0 120 BUILD=0
110 ;; 121 ;;
@@ -143,16 +154,20 @@ fi
143 154
144MAJOR_VERSION="$(echo $VERSION | cut -d'.' -f1)" 155MAJOR_VERSION="$(echo $VERSION | cut -d'.' -f1)"
145 156
157ACTUAL_VERSION=$VERSION
158VERSION=$VERSION$SNAPSHOT
159OF_VERSION=$VERSION
160
146if [ -z $SNAPSHOT ]; 161if [ -z $SNAPSHOT ];
147then 162then
148 BRANCH=emacs-$VERSION 163 BRANCH=emacs-$VERSION
149else 164else
150 BRANCH=master 165 BRANCH=master
151 CACHE=-C 166 CACHE=-C
167 OF_VERSION="$VERSION-`date +%Y-%m-%d`"
152fi 168fi
153 169
154ACTUAL_VERSION=$VERSION 170
155VERSION=$VERSION$SNAPSHOT
156 171
157if (($GIT_UP)) 172if (($GIT_UP))
158then 173then
diff --git a/admin/nt/dist-build/emacs.nsi b/admin/nt/dist-build/emacs.nsi
index 81382723776..dce8f3db4a3 100644
--- a/admin/nt/dist-build/emacs.nsi
+++ b/admin/nt/dist-build/emacs.nsi
@@ -2,7 +2,7 @@
2!include LogicLib.nsh 2!include LogicLib.nsh
3!include x64.nsh 3!include x64.nsh
4 4
5Outfile "Emacs-${ARCH}-${OUT_VERSION}-installer.exe" 5Outfile "emacs-${OUT_VERSION}-${ARCH}-installer.exe"
6 6
7 7
8SetCompressor /solid lzma 8SetCompressor /solid lzma
@@ -49,7 +49,6 @@ function .onInit
49 StrCpy $INSTDIR "$PROGRAMFILES\Emacs" 49 StrCpy $INSTDIR "$PROGRAMFILES\Emacs"
50 ${Endif} 50 ${Endif}
51 ${EndIf} 51 ${EndIf}
52
53functionend 52functionend
54 53
55 54