]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix windows build errors
authorPhillip Lord <phillip.lord@russet.org.uk>
Wed, 25 Oct 2017 08:17:16 +0000 (09:17 +0100)
committerPhillip Lord <phillip.lord@russet.org.uk>
Wed, 25 Oct 2017 08:18:04 +0000 (09:18 +0100)
* admin/nt/dist-build/build-zips.sh: Correct name of zip file, build
  64 bit first

admin/nt/dist-build/build-zips.sh

index e78f72cf9c377c1ee1d98bd96753ae3fbe3dd6e6..fb44c31c70d614916546949b8a4a070b716d16f0 100755 (executable)
@@ -55,7 +55,7 @@ function build_zip {
     cd $HOME/emacs-build/install/emacs-$VERSION/$ARCH
     cp $HOME/emacs-build/deps/libXpm/$ARCH/libXpm-noX4.dll bin
     zip -r -9 emacs-$VERSION-$ARCH-no-deps.zip *
-    mv emacs-$VERSION-$ARCH.zip $HOME/emacs-upload
+    mv emacs-$VERSION-$ARCH-no-deps.zip $HOME/emacs-upload
     rm bin/libXpm-noX4.dll
     unzip $HOME/emacs-build/deps/emacs-26-$ARCH-deps.zip
     zip -r -9 emacs-$VERSION-$ARCH.zip *
@@ -132,12 +132,14 @@ then
     git_up
 fi
 
-if (($BUILD_32))
+if (($BUILD_64))
 then
-    build_zip i686 /mingw32/lib/pkgconfig i686-w64-mingw32
+    build_zip x86_64 /mingw64/lib/pkgconfig x86_64-w64-mingw32
 fi
 
-if (($BUILD_64))
+## Do the 64 bit build first, because we reset some environment
+## variables during the 32 bit which will break the build.
+if (($BUILD_32))
 then
-    build_zip x86_64 /mingw64/lib/pkgconfig x86_64-w64-mingw32
+    build_zip i686 /mingw32/lib/pkgconfig i686-w64-mingw32
 fi