From: Fabien Fleutot Date: Sun, 22 Feb 2009 09:06:34 +0000 (+0100) Subject: improved make script: check lua presence, ~/.metaluabuildrc init setup, allow linerea... X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=f885508fb6ad439510a570e00eff6001a17af4b3;p=metalua.git improved make script: check lua presence, ~/.metaluabuildrc init setup, allow linereader in metalua --- diff --git a/src/make.sh b/src/make.sh index 4d40464..242ec2b 100755 --- a/src/make.sh +++ b/src/make.sh @@ -38,6 +38,10 @@ LUAC=$(which luac) # --- END OF USER-EDITABLE PART --- +if [ -z ${LUA} ] ; then echo "Error: no lua interpreter found"; fi +if [ -z ${LUAC} ] ; then echo "Error: no lua compiler found"; fi + +if [ -f ~/.metaluabuildrc ] ; then . ~/.metaluabuildrc; fi echo '*** Lua paths setup ***' @@ -48,7 +52,7 @@ echo '*** Create the distribution directories, populate them with lib sources ** mkdir -p ${BUILD_BIN} mkdir -p ${BUILD_LIB} -cp -R lib/* ${BUILD_LIB}/ +cp -Rp lib/* ${BUILD_LIB}/ # cp -R bin/* ${BUILD_BIN}/ # No binaries provided for unix (for now) echo '*** Generate a callable metalua shell script ***' @@ -101,12 +105,15 @@ cat > ${INSTALL_BIN}/metalua <