diff options
Diffstat (limited to 'tests/make_barebox_env')
-rwxr-xr-x | tests/make_barebox_env | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/tests/make_barebox_env b/tests/make_barebox_env index 7af778891..f49445519 100755 --- a/tests/make_barebox_env +++ b/tests/make_barebox_env @@ -4,25 +4,6 @@ set -e PTXDIST_SETENV_BAREBOX_ENV="${1}" ENVTMPDIR="$(mktemp -d "${PTXDIST_TEMPDIR}/barebox_env.XXXXXX")" -#source and export variables, so we can access them later with awk. -set -a -. "${PTXDIST_BOARDSETUP}" -set +a - -CONFFILE="${PTXDIST_PLATFORMCONFIGDIR}/barebox-env/config${PTXDIST_PLATFORMSUFFIX}" -if [ ! -r "${CONFFILE}.in" ]; then - if [ -r "`dirname "${CONFFILE}"`/config.in" ]; then - CONFFILE="`dirname "${CONFFILE}"`/config" - else - echo "Config file for barebox environment is missing!" >&2 - exit 1 - fi -fi - -#Replace @magics@ with PTXCONF-variables -#FIXME: Warn if variable is empty? -awk 'match($0, "@[A-Z0-9_]+@") { var=substr($0,RSTART+1,RLENGTH-2); gsub("@"var"@", ENVIRON[var]); } {print} ' "${CONFFILE}".in >"${CONFFILE}" - tar -C "${PTXDIST_PLATFORMCONFIGDIR}/barebox-env/" -c . \ --exclude .svn \ --exclude .pc \ |