diff options
author | Bruno Haible <bruno@clisp.org> | 2003-02-14 14:02:57 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-23 12:09:31 +0200 |
commit | 15f5363da4bd8b8e09f89701d3f4e990d59584bb (patch) | |
tree | 04e7be38689bb67cf677d8a31035b9f2921d1ea2 /gettext-tools/projects | |
parent | a81fbac2a5586210adad4283070cd7ec5934cc8d (diff) | |
download | external_gettext-15f5363da4bd8b8e09f89701d3f4e990d59584bb.zip external_gettext-15f5363da4bd8b8e09f89701d3f4e990d59584bb.tar.gz external_gettext-15f5363da4bd8b8e09f89701d3f4e990d59584bb.tar.bz2 |
Move projects/KDE/trigger to gettext-tools/projects/KDE/trigger.
Diffstat (limited to 'gettext-tools/projects')
-rwxr-xr-x | gettext-tools/projects/KDE/trigger | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/gettext-tools/projects/KDE/trigger b/gettext-tools/projects/KDE/trigger new file mode 100755 index 0000000..3426454 --- /dev/null +++ b/gettext-tools/projects/KDE/trigger @@ -0,0 +1,36 @@ +#!/bin/sh +# Test whether the current package is a KDE package. +while true; do + configfiles= + if test -f configure.in; then + configfiles="$configfiles configure.in" + fi + if test -f configure.ac; then + configfiles="$configfiles configure.ac" + fi + if test -n "$configfiles"; then + if grep '^KDE_' $configfiles >/dev/null 2>&1 || \ + grep '^AC_PATH_KDE' $configfiles >/dev/null 2>&1 || \ + grep '^AM_KDE_WITH_NLS' $configfiles >/dev/null 2>&1 ; then + exit 0 + fi + exit 1 + fi + dir=`basename \`pwd\`` + case "$dir" in + i18n) + # This directory name, used in GNU make, is not the top level directory. + ;; + *[A-Za-z]*[0-9]*) + # Reached the top level directory. + exit 1 + esac + # Go to parent directory + last=`/bin/pwd` + cd .. + curr=`/bin/pwd` + if test "$last" = "$curr"; then + # Oops, didn't find the top level directory. + exit 1 + fi +done |