elixir/utils/update-elixir-data
Michael Opdenacker 11ed7b7684 utils/update-elixir-data: add "--tags" to "git fetch"
- Not having this was causing us to miss tags

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
2019-11-25 14:31:38 +01:00

26 lines
571 B
Bash
Executable file

#!/bin/sh
root=$1
if [ ! -e "$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 --tags
cd $ELIXIR_INSTALL
./update.py
done