Install gettext-0.18.1.1.tar.gz
[msysgit.git] / mingw / share / gettext / projects / KDE / trigger
blob561a408bb77e72825cd3de77d86f125d40c55366
1 #!/bin/sh
2 # Test whether the current package is a KDE package.
4 # NLS nuisances: Letter ranges are different in the Estonian locale.
5 LC_ALL=C
7 while true; do
8 configfiles=
9 if test -f configure.in; then
10 configfiles="$configfiles configure.in"
12 if test -f configure.ac; then
13 configfiles="$configfiles configure.ac"
15 if test -n "$configfiles"; then
16 if grep '^KDE_' $configfiles >/dev/null 2>&1 || \
17 grep '^AC_PATH_KDE' $configfiles >/dev/null 2>&1 || \
18 grep '^AM_KDE_WITH_NLS' $configfiles >/dev/null 2>&1 ; then
19 exit 0
21 exit 1
23 dir=`basename \`pwd\``
24 case "$dir" in
25 i18n)
26 # This directory name, used in GNU make, is not the top level directory.
28 *[A-Za-z]*[0-9]*)
29 # Reached the top level directory.
30 exit 1
31 esac
32 # Go to parent directory
33 last=`/bin/pwd`
34 cd ..
35 curr=`/bin/pwd`
36 if test "$last" = "$curr"; then
37 # Oops, didn't find the top level directory.
38 exit 1
40 done