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