]> hydra-www.ietfng.org Git - acmetensortoys-esp-lua_lamp/commitdiff
mklfs: create .zip suitable for submission to TerryE's remote LFS compiler
authorNathaniel Wesley Filardo <nwfilardo@gmail.com>
Sun, 31 May 2020 21:51:04 +0000 (22:51 +0100)
committerNathaniel Wesley Filardo <nwfilardo@gmail.com>
Sun, 31 May 2020 21:51:04 +0000 (22:51 +0100)
mklfs.sh

index c122c9540d028c0919a658b187e4d68c6f39e9fe..fe80a36971abe5830a3c74eaee09bc1489e033a1 100755 (executable)
--- 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