packages: use new $($PKG)_DL_DIR) variable
authorMaxime Hadjinlian <maxime.hadjinlian@gmail.com>
Mon, 2 Apr 2018 13:09:24 +0000 (15:09 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 2 Apr 2018 13:53:53 +0000 (15:53 +0200)
commit514291f39ef066cbe4dd9b41e1a3b0268fc8efb8
tree3b5ddd54ca0e3583ddeeb4527f71e09472b712bb
parent9447e866187728009addf0cc62aa0c6b293b6dcd
packages: use new $($PKG)_DL_DIR) variable

Instead of DL_DIR, the package should now use $(PKG)_DL_DIR to ease the
transition into a new directory structure for DL_DIR.

This commit has been generated with the following scripts:

for i in $(find . -iname "*.mk"); do
if ! grep -q "\$(DL_DIR)" ${i}; then
continue
fi
pkg_name="$(basename $(dirname ${i}))"
[ "${pkg_name}" = "package" ] && continue
raw_pkg_name=$(echo ${pkg_name} | tr [a-z] [A-Z] | tr '-' '_')
pkg_dl_dir="${raw_pkg_name}_DL_DIR"
sed -i "s/\$(DL_DIR)/\$($pkg_dl_dir)/" ${i}
done

Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
62 files changed:
boot/at91bootstrap/at91bootstrap.mk
package/amd-catalyst/amd-catalyst.mk
package/android-tools/android-tools.mk
package/angularjs/angularjs.mk
package/bootstrap/bootstrap.mk
package/cache-calibrator/cache-calibrator.mk
package/cargo/cargo.mk
package/cracklib/cracklib.mk
package/cryptopp/cryptopp.mk
package/devmem2/devmem2.mk
package/dhrystone/dhrystone.mk
package/doom-wad/doom-wad.mk
package/espeak/espeak.mk
package/fan-ctrl/fan-ctrl.mk
package/freescale-imx/firmware-imx/firmware-imx.mk
package/freescale-imx/gpu-amd-bin-mx51/gpu-amd-bin-mx51.mk
package/freescale-imx/imx-codec/imx-codec.mk
package/freescale-imx/imx-gpu-g2d/imx-gpu-g2d.mk
package/freescale-imx/imx-gpu-viv/imx-gpu-viv.mk
package/freescale-imx/imx-parser/imx-parser.mk
package/freescale-imx/imx-vpu/imx-vpu.mk
package/freescale-imx/imx-vpuwrap/imx-vpuwrap.mk
package/freescale-imx/libz160/libz160.mk
package/gcc/gcc.mk
package/irrlicht/irrlicht.mk
package/jquery-mobile/jquery-mobile.mk
package/jquery-sparkline/jquery-sparkline.mk
package/jquery-ui-themes/jquery-ui-themes.mk
package/jquery-ui/jquery-ui.mk
package/jquery-validation/jquery-validation.mk
package/jquery/jquery.mk
package/kodi/kodi.mk
package/libb64/libb64.mk
package/libfreeimage/libfreeimage.mk
package/libjson/libjson.mk
package/libsoil/libsoil.mk
package/lsof/lsof.mk
package/musl-compat-headers/musl-compat-headers.mk
package/nmon/nmon.mk
package/nvidia-driver/nvidia-driver.mk
package/nvidia-tegra23/nvidia-tegra23-codecs/nvidia-tegra23-codecs.mk
package/opentyrian-data/opentyrian-data.mk
package/perl/perl.mk
package/python-keyring/python-keyring.mk
package/python-pytz/python-pytz.mk
package/python-simplegeneric/python-simplegeneric.mk
package/rapidxml/rapidxml.mk
package/rpi-wifi-firmware/rpi-wifi-firmware.mk
package/rust-bin/rust-bin.mk
package/sam-ba/sam-ba.mk
package/spidev_test/spidev_test.mk
package/tar/tar.mk
package/tesseract-ocr/tesseract-ocr.mk
package/ti-cgt-pru/ti-cgt-pru.mk
package/ti-gfx/ti-gfx.mk
package/ts4900-fpga/ts4900-fpga.mk
package/unscd/unscd.mk
package/urg/urg.mk
package/waf/waf.mk
package/whetstone/whetstone.mk
package/wilc1000-firmware/wilc1000-firmware.mk
package/zynq-boot-bin/zynq-boot-bin.mk