comparison CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/share/gettext/projects/KDE/trigger @ 68:5028fdace37b

planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author jpayne
date Tue, 18 Mar 2025 16:23:26 -0400
parents
children
comparison
equal deleted inserted replaced
67:0e9998148a16 68:5028fdace37b
1 #!/bin/sh
2 #
3 # Copyright (C) 2001, 2005 Free Software Foundation, Inc.
4 # Written by Bruno Haible <bruno@clisp.org>, 2001.
5 #
6 # This program is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
9 # (at your option) any later version.
10 #
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program. If not, see <https://www.gnu.org/licenses/>.
18
19 # Test whether the current package is a KDE package.
20
21 # NLS nuisances: Letter ranges are different in the Estonian locale.
22 LC_ALL=C
23
24 while true; do
25 configfiles=
26 if test -f configure.in; then
27 configfiles="$configfiles configure.in"
28 fi
29 if test -f configure.ac; then
30 configfiles="$configfiles configure.ac"
31 fi
32 if test -n "$configfiles"; then
33 if grep '^KDE_' $configfiles >/dev/null 2>&1 || \
34 grep '^AC_PATH_KDE' $configfiles >/dev/null 2>&1 || \
35 grep '^AM_KDE_WITH_NLS' $configfiles >/dev/null 2>&1 ; then
36 exit 0
37 fi
38 exit 1
39 fi
40 dir=`basename \`pwd\``
41 case "$dir" in
42 i18n)
43 # This directory name, used in GNU make, is not the top level directory.
44 ;;
45 *[A-Za-z]*[0-9]*)
46 # Reached the top level directory.
47 exit 1
48 esac
49 # Go to parent directory
50 last=`/bin/pwd`
51 cd ..
52 curr=`/bin/pwd`
53 if test "$last" = "$curr"; then
54 # Oops, didn't find the top level directory.
55 exit 1
56 fi
57 done