You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
507 B

#!/bin/bash
if [[ ! -f $(basename "${0}") || ! -d "../scripts" ]];
then
echo "Error - run this script from the tools/scripts dir."
exit 1
fi
DISTFILE=tools/dist.conf/distExcludes.txt
cd ../..
> "${DISTFILE}"
for item in $(git ls-files -o);
do
if [[ "${item}" == "tools/java/cldr.jar" ]]; # allow this
then
true
elif [[ -d "${item}" ]];
then
echo "${item}/" >> "${DISTFILE}"
else
echo "${item}" >> "${DISTFILE}"
fi
done
echo "# updated ${DISTFILE}"