aboutsummaryrefslogtreecommitdiffstats
path: root/tools/scripts/distUpdateExcludes.sh
blob: 34d112eb3144a02045e3f030f60dfbc6717b7580 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/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 $(svn status --no-ignore  | grep -v '^M' | cut -c9-);
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}"