Merge branch 'keni-luacksum2' into NetHack-3.7

This commit is contained in:
nhkeni
2023-09-06 12:20:02 -04:00
2 changed files with 17 additions and 0 deletions

7
submodules/CHKSUMS Normal file
View File

@@ -0,0 +1,7 @@
# checksums for fetched submodules
# NetHack 3.7 CHKSUMS $NHDT-Date: 1693155877 2023/08/27 17:04:37 $ $NHDT-Branch: keni-luacksum $
# check:
# shasum -a 256 -c -s THISFILE < FILETOCHECK
# generate:
# shasum -a 256 FILETOCHECK >>THISFILE
7d5ea1b9cb6aa0b59ca3dde1c6adcb57ef83a1ba8e5432c0ecd06bf439b3ad88 lua-5.4.6.tar.gz

View File

@@ -307,7 +307,17 @@ fetch-lua: fetch-Lua
fetch-Lua:
( mkdir -p lib && cd lib && \
shac1=`command -v shasum`; \
shac2=`command -v sha256sum`; \
if [ ! -z $$shac1 ]; then \
shac="$$shac1 -a 256"; elif [ ! -z $$shac2 ]; then \
shac=$$shac2; else echo "CAUTION: no way to check integrity"; \
fi; \
curl -R -O https://www.lua.org/ftp/lua-$(LUA_VERSION).tar.gz && \
if [ ! -z "$$shac" ]; then \
echo Checking integrity with $$shac; \
$$shac -w -c ../submodules/CHKSUMS < lua-$(LUA_VERSION).tar.gz; \
fi; \
tar zxf lua-$(LUA_VERSION).tar.gz && \
rm -f lua-$(LUA_VERSION).tar.gz )
# remove include/nhlua.h in case it was created for some other Lua version