From: Nathaniel Wesley Filardo Date: Sun, 31 May 2020 21:51:04 +0000 (+0100) Subject: mklfs: create .zip suitable for submission to TerryE's remote LFS compiler X-Git-Url: https://hydra-www.ietfng.org/gitweb/?a=commitdiff_plain;h=59e76a7ba988a5ae523a5b0bb77eb539200e310e;p=acmetensortoys-esp-lua_lamp mklfs: create .zip suitable for submission to TerryE's remote LFS compiler --- diff --git a/mklfs.sh b/mklfs.sh index c122c95..fe80a36 100755 --- a/mklfs.sh +++ b/mklfs.sh @@ -32,4 +32,11 @@ mkdir _lfs_build # done cp ${SOURCES[@]} _lfs_build/ -(cd _lfs_build; $LUACROSS -f *.lua) +if [ -z "${LUACROSS-}" ]; then + OZF=lamplfs.zip + (cd _lfs_build; zip ${OZF} *.lua) + echo "Please send _lfs_build/${OZF} to https://blog.ellisons.org.uk/article/nodemcu/a-lua-cross-compile-web-service/" +else + echo "Compiling image locally..." + (cd _lfs_build; $LUACROSS -f *.lua) +fi