Files
OpenLLM/tools/add-license-headers
2023-07-20 20:44:51 -04:00

21 lines
752 B
Bash
Executable File

#!/bin/bash
if ! command -v addlicense @ >&1 > /dev/null; then
if command -v go @ >&1 > /dev/null; then
go install github.com/google/addlicense@latest
else
echo "ERROR: addlicense not installed."
echo "Install using https://github.com/google/addlicense#install"
echo "Tip: If you have go installed, run 'go install github.com/google/addlicense@latest'"
exit 1
fi
fi
addlicense -v -l apache -c 'BentoML Team. All rights reserved.' \
-ignore .github/workflows/binary-releases.yml \
-ignore src/openllm/playground/features.py \
-ignore src/openllm/playground/opt_tuned.py \
-ignore src/openllm/playground/llama2_qlora.py \
-ignore src/openllm/playground/falcon_tuned.py \
"$@"