diff --git a/bin/build.sh b/bin/build.sh index 2328dac..b603c55 100755 --- a/bin/build.sh +++ b/bin/build.sh @@ -29,6 +29,7 @@ if [[ "X${1}" = "X" ]]; then fi fullversion="$1" +shift . ${__dirname}/_decode_version.sh decode "$fullversion" # see _decode_version for all of the magic variables now set and available for use @@ -65,7 +66,7 @@ docker run --rm \ > ${thislogdir}/fetch-source.log 2>&1 # Build all other recipes -for recipe in $recipes; do +for recipe in ${1:-$recipes}; do # each recipe has 3 variable components: # - individiaul ~/.ccache directory # - a ~/node.tar.xz file that fetch-source has downloaded diff --git a/bin/prepare-images.sh b/bin/prepare-images.sh index b38d68f..12b4eca 100755 --- a/bin/prepare-images.sh +++ b/bin/prepare-images.sh @@ -5,7 +5,8 @@ __dirname="$(CDPATH= cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" image_tag_pfx=unofficial-build-recipe- -for recipe in $(ls ${__dirname}/../recipes/); do +recipes=${1:-$(ls ${__dirname}/../recipes/)} +for recipe in $recipes; do docker build ${__dirname}/../recipes/${recipe}/ -t ${image_tag_pfx}${recipe} --build-arg UID=1000 --build-arg GID=1000 done