diff --git a/src/.config b/src/.config index 19a66eb76..358bdad14 100644 --- a/src/.config +++ b/src/.config @@ -41,12 +41,6 @@ SYSLINUX_SOURCE_URL=http://kernel.org/pub/linux/utils/boot/syslinux/syslinux-6.0 # # ##################################################################### -# You can find the latest Lua source bundes here: -# -# https://www.lua.org/ftp/ -# -LUA_SOURCE_URL=https://www.lua.org/ftp/lua-5.3.4.tar.gz - # You can find the latest make source bundles here: # # http://www.gnu.org/software/make diff --git a/src/minimal_overlay/bundles/lua/.config b/src/minimal_overlay/bundles/lua/.config new file mode 100644 index 000000000..e35522b32 --- /dev/null +++ b/src/minimal_overlay/bundles/lua/.config @@ -0,0 +1,5 @@ +# You can find the latest Lua source bundes here: +# +# https://www.lua.org/ftp/ +# +LUA_SOURCE_URL=https://www.lua.org/ftp/lua-5.3.4.tar.gz diff --git a/src/minimal_overlay/bundles/lua/01_get.sh b/src/minimal_overlay/bundles/lua/01_get.sh index 8825844e4..f052fa2d1 100755 --- a/src/minimal_overlay/bundles/lua/01_get.sh +++ b/src/minimal_overlay/bundles/lua/01_get.sh @@ -4,15 +4,13 @@ set -e . ../../common.sh -# Grab everything after the '=' character. -DOWNLOAD_URL=$(grep -i LUA_SOURCE_URL $MAIN_SRC_DIR/.config | cut -f2 -d'=') +# Read the common configuration properties. +DOWNLOAD_URL=`read_property LUA_SOURCE_URL` +USE_LOCAL_SOURCE=`read_property USE_LOCAL_SOURCE` # Grab everything after the last '/' character. ARCHIVE_FILE=${DOWNLOAD_URL##*/} -# Read the 'USE_LOCAL_SOURCE' property from '.config' -USE_LOCAL_SOURCE="$(grep -i USE_LOCAL_SOURCE $MAIN_SRC_DIR/.config | cut -f2 -d'=')" - if [ "$USE_LOCAL_SOURCE" = "true" -a ! -f $MAIN_SRC_DIR/source/overlay/$ARCHIVE_FILE ] ; then echo "Source bundle $MAIN_SRC_DIR/source/overlay/$ARCHIVE_FILE is missing and will be downloaded." USE_LOCAL_SOURCE="false"