summaryrefslogtreecommitdiff
path: root/admin/nt/dist-build/build-dep-zips.py
diff options
context:
space:
mode:
Diffstat (limited to 'admin/nt/dist-build/build-dep-zips.py')
-rwxr-xr-xadmin/nt/dist-build/build-dep-zips.py30
1 files changed, 20 insertions, 10 deletions
diff --git a/admin/nt/dist-build/build-dep-zips.py b/admin/nt/dist-build/build-dep-zips.py
index fe98ebdcc7c..e6c1ce8ff38 100755
--- a/admin/nt/dist-build/build-dep-zips.py
+++ b/admin/nt/dist-build/build-dep-zips.py
@@ -26,7 +26,7 @@ import re
from subprocess import check_output
## Constants
-EMACS_MAJOR_VERSION="26"
+EMACS_MAJOR_VERSION="27"
## Options
@@ -35,9 +35,9 @@ DRY_RUN=False
## Packages to fiddle with
SKIP_PKGS=["mingw-w64-gcc-libs"]
MUNGE_PKGS ={"mingw-w64-libwinpthread-git":"mingw-w64-winpthreads-git"}
-ARCH_PKGS=["mingw-w64-mpc",
- "mingw-w64-termcap",
- "mingw-w64-xpm-nox"]
+
+## Currently no packages seem to require this!
+ARCH_PKGS=[]
SRC_REPO="https://sourceforge.net/projects/msys2/files/REPOS/MINGW/Sources"
@@ -49,6 +49,7 @@ def check_output_maybe(*args,**kwargs):
def extract_deps():
+ print( "Extracting deps" )
# This list derives from the features we want Emacs to compile with.
PKG_REQ='''mingw-w64-x86_64-giflib
mingw-w64-x86_64-gnutls
@@ -103,7 +104,8 @@ def gather_deps(deps, arch, directory):
## And package them up
os.chdir(directory)
print("Zipping: {}".format(arch))
- check_output_maybe("zip -9r ../../emacs-26-{}-deps.zip *".format(arch),
+ check_output_maybe("zip -9r ../../emacs-{}-{}{}-deps.zip *"
+ .format(EMACS_MAJOR_VERSION, DATE, arch),
shell=True)
os.chdir("../../")
@@ -167,8 +169,8 @@ def gather_source(deps):
p.map(download_source,to_download)
print("Zipping")
- check_output_maybe("zip -9 ../emacs-{}-deps-mingw-w64-src.zip *"
- .format(EMACS_MAJOR_VERSION),
+ check_output_maybe("zip -9 ../emacs-{}-{}deps-mingw-w64-src.zip *"
+ .format(EMACS_MAJOR_VERSION,DATE),
shell=True)
os.chdir("..")
@@ -188,13 +190,16 @@ if(os.environ["MSYSTEM"] != "MSYS"):
parser = argparse.ArgumentParser()
+parser.add_argument("-s", help="snapshot build",
+ action="store_true")
+
parser.add_argument("-t", help="32 bit deps only",
action="store_true")
parser.add_argument("-f", help="64 bit deps only",
action="store_true")
-parser.add_argument("-s", help="source code only",
+parser.add_argument("-r", help="source code only",
action="store_true")
parser.add_argument("-c", help="clean only",
@@ -204,19 +209,24 @@ parser.add_argument("-d", help="dry run",
action="store_true")
args = parser.parse_args()
-do_all=not (args.c or args.s or args.f or args.t)
+do_all=not (args.c or args.r or args.f or args.t)
deps=extract_deps()
DRY_RUN=args.d
+if args.s:
+ DATE="{}-".format(check_output(["date", "+%Y-%m-%d"]).decode("utf-8").strip())
+else:
+ DATE=""
+
if( do_all or args.t ):
gather_deps(deps,"i686","mingw32")
if( do_all or args.f ):
gather_deps(deps,"x86_64","mingw64")
-if( do_all or args.s ):
+if( do_all or args.r ):
gather_source(deps)
if( args.c ):