]> granicus.if.org Git - nethack/commitdiff
add a couple of optional fetching targets to sys/winnt/Makefile.msc
authornhmall <nhmall@nethack.org>
Fri, 4 Dec 2020 13:21:53 +0000 (08:21 -0500)
committernhmall <nhmall@nethack.org>
Fri, 4 Dec 2020 13:21:53 +0000 (08:21 -0500)
sys/winnt/Makefile.msc

index 6bbcee59ea57695089a9c87e071d3c171231a45f..259b1010aedfe02ee5220a8e2e266513a0be8122 100644 (file)
@@ -1192,6 +1192,32 @@ $(O)envchk.tag: $(O)obj.tag
 #==========================================
 #=========== SECONDARY TARGETS ============
 #==========================================
+fetch-lua: fetch-actual-Lua
+
+fetch-Lua: fetch-actual-Lua
+
+fetch-actual-Lua:
+       @if not exist ..\lib\*.* mkdir ..\lib
+       cd ..\lib
+       curl -R -O http://www.lua.org/ftp/lua-$(LUAVER).tar.gz
+       tar zxf lua-$(LUAVER).tar.gz
+       if exist lua-$(LUAVER).tar.gz del lua-$(LUAVER).tar.gz
+       if exist lua-$(LUAVER).tar del lua-$(LUAVER).tar
+       cd ..\src
+       @echo Lua has been fetched into ..\lib\lua-$(LUAVER)
+
+fetch-pdcurses:
+       @if not exist ..\lib\*.* mkdir ..\lib
+       cd ..\lib
+       curl -L -R https://codeload.github.com/wmcbrine/PDCurses/zip/master -o pdcurses.zip
+       powershell -command "Expand-Archive -Path .\pdcurses.zip -DestinationPath ./pdcurses-temp"
+       if exist .\pdcurses\* rd .\pdcurses /s /Q
+        move .\pdcurses-temp\PDCurses-master .
+        ren PDCurses-master pdcurses
+       if exist .\pdcurses-temp\* rd .\pdcurses-temp /s /Q
+       if exist .\pdcurses.zip del .\pdcurses.zip
+       cd ..\src
+       @echo pdcurses has been fetched into ..\lib\pdcurses
 
 #==========================================
 # DLB utility and nhdatNNN file creation