Changeset View
Changeset View
Standalone View
Standalone View
branches/stable/l10n-kde4/scripts/populate_source.sh
Context not available. | |||||
34 | # source/link/<poname>/<name> -> ../repo/<name>. | 34 | # source/link/<poname>/<name> -> ../repo/<name>. | ||
---|---|---|---|---|---|
35 | # <poname> and <name> are most of the time the same, but not always. | 35 | # <poname> and <name> are most of the time the same, but not always. | ||
36 | 36 | | |||
37 | script=$0 | | |||
38 | modules="$@" | 37 | modules="$@" | ||
39 | 38 | | |||
40 | scriptdir=`dirname $script` | 39 | OLD_PWD=$PWD | ||
41 | . $scriptdir/get_paths | 40 | cd $(dirname $0) | ||
41 | SCRIPTY_DIR=$PWD | ||||
42 | cd $OLD_PWD | ||||
42 | 43 | | |||
43 | svnroot=`LC_ALL=C svn info $scriptdir | grep '^Repository Root:' | sed 's/^[^:]*: *//'` | 44 | . $SCRIPTY_DIR/get_paths | ||
45 | | ||||
46 | svnroot=`LC_ALL=C svn info $SCRIPTY_DIR | grep '^Repository Root:' | sed 's/^[^:]*: *//'` | ||||
44 | if test -z "$svnroot"; then | 47 | if test -z "$svnroot"; then | ||
45 | echo "ERROR: Cannot extract Subversion repository root." | 48 | echo "ERROR: Cannot extract Subversion repository root." | ||
46 | exit 1 | 49 | exit 1 | ||
Context not available. | |||||
78 | 81 | | |||
79 | if test -z "$modules"; then | 82 | if test -z "$modules"; then | ||
80 | echo "===== Fetching module list..." | 83 | echo "===== Fetching module list..." | ||
81 | modules=`list_modules $scriptdir` | 84 | modules=`list_modules $SCRIPTY_DIR` | ||
82 | if test $? != 0 || test -z "$modules"; then | 85 | if test $? != 0 || test -z "$modules"; then | ||
83 | echo "ERROR: Cannot list modules." | 86 | echo "ERROR: Cannot list modules." | ||
84 | exit 1 | 87 | exit 1 | ||
Context not available. |