• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2
3if [[ ! -f $(basename "${0}") || ! -d "../scripts" ]];
4then
5    echo "Error - run this script from the tools/scripts dir."
6    exit 1
7fi
8
9DISTFILE=tools/dist.conf/distExcludes.txt
10cd ../..
11> "${DISTFILE}"
12for item in $(svn status --no-ignore  | grep -v '^M' | cut -c9-);
13do
14    if [[ "${item}" == "tools/java/cldr.jar" ]]; # allow this
15    then
16        true
17    elif [[ -d "${item}" ]];
18    then
19        echo "${item}/" >> "${DISTFILE}"
20    else
21        echo "${item}" >> "${DISTFILE}"
22    fi
23done
24
25echo "# updated ${DISTFILE}"
26