diff options
| author | Phillip Lord | 2017-11-17 23:07:38 +0000 |
|---|---|---|
| committer | Phillip Lord | 2017-11-20 19:55:31 +0000 |
| commit | 046cde2d66ed044eb7eb71cd9e69206ee59e12fe (patch) | |
| tree | 6fb066081d6dc7b2d102cb254710dcc5681217c3 /admin/nt | |
| parent | 5b5f441ff8986800aa5f175bb5db2dd90e642a3a (diff) | |
| download | emacs-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-x | admin/nt/dist-build/build-zips.sh | 33 | ||||
| -rw-r--r-- | admin/nt/dist-build/emacs.nsi | 3 |
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 | ||
| 67 | function build_installer { | 74 | function 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 | ||
| 80 | set -o errexit | 87 | set -o errexit |
| @@ -86,8 +93,9 @@ BUILD=1 | |||
| 86 | BUILD_32=1 | 93 | BUILD_32=1 |
| 87 | BUILD_64=1 | 94 | BUILD_64=1 |
| 88 | GIT_UP=0 | 95 | GIT_UP=0 |
| 96 | CONFIG=1 | ||
| 89 | 97 | ||
| 90 | while getopts "36ghsiV:" opt; do | 98 | while 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 | ||
| 144 | MAJOR_VERSION="$(echo $VERSION | cut -d'.' -f1)" | 155 | MAJOR_VERSION="$(echo $VERSION | cut -d'.' -f1)" |
| 145 | 156 | ||
| 157 | ACTUAL_VERSION=$VERSION | ||
| 158 | VERSION=$VERSION$SNAPSHOT | ||
| 159 | OF_VERSION=$VERSION | ||
| 160 | |||
| 146 | if [ -z $SNAPSHOT ]; | 161 | if [ -z $SNAPSHOT ]; |
| 147 | then | 162 | then |
| 148 | BRANCH=emacs-$VERSION | 163 | BRANCH=emacs-$VERSION |
| 149 | else | 164 | else |
| 150 | BRANCH=master | 165 | BRANCH=master |
| 151 | CACHE=-C | 166 | CACHE=-C |
| 167 | OF_VERSION="$VERSION-`date +%Y-%m-%d`" | ||
| 152 | fi | 168 | fi |
| 153 | 169 | ||
| 154 | ACTUAL_VERSION=$VERSION | 170 | |
| 155 | VERSION=$VERSION$SNAPSHOT | ||
| 156 | 171 | ||
| 157 | if (($GIT_UP)) | 172 | if (($GIT_UP)) |
| 158 | then | 173 | then |
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 | ||
| 5 | Outfile "Emacs-${ARCH}-${OUT_VERSION}-installer.exe" | 5 | Outfile "emacs-${OUT_VERSION}-${ARCH}-installer.exe" |
| 6 | 6 | ||
| 7 | 7 | ||
| 8 | SetCompressor /solid lzma | 8 | SetCompressor /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 | |||
| 53 | functionend | 52 | functionend |
| 54 | 53 | ||
| 55 | 54 | ||