elixir/utils/update-elixir-data
Michael Opdenacker 285b6f5a3c Make update-elixir-data more generic
- Now supports a custom data directory
  (passed as a command line parameter)

- Now supports a custom elixir install
  director (passed through the ELIXIR_INSTALL
  environment variable

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
2019-10-11 10:17:42 +02:00

26 lines
564 B
Bash
Executable file

#!/bin/sh
root=$1
if [ ! -d "$root" ]
then
echo "ERROR: directory not found: $root"
exit 1
fi
if [ -z "$ELIXIR_INSTALL" ]; then
echo "ERROR: ELIXIR_INSTALL environment variable not set"
exit 1
fi
for p in linux u-boot busybox zephyr musl barebox uclibc-ng arm-trusted-firmware amazon-freertos qemu glibc coreboot llvm mesa ofono dpdk; do
echo "Processing project $root/$p ..."
export LXR_DATA_DIR=$root/$p/data
export LXR_REPO_DIR=$root/$p/repo
cd $LXR_REPO_DIR
git fetch --all
cd $ELIXIR_INSTALL
./update.py
done