summaryrefslogtreecommitdiffstats
path: root/projects
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2001-10-30 11:06:58 +0000
committerBruno Haible <bruno@clisp.org>2001-10-30 11:06:58 +0000
commit49b9da8ee43a4630dfacac65b2d356c0f2b42906 (patch)
tree51b54a7c6f8819ce44a7fdce3b585a2ccc872f67 /projects
parent4f39ea71105330855aad20e372b2a36c99df8ca6 (diff)
downloadexternal_gettext-49b9da8ee43a4630dfacac65b2d356c0f2b42906.zip
external_gettext-49b9da8ee43a4630dfacac65b2d356c0f2b42906.tar.gz
external_gettext-49b9da8ee43a4630dfacac65b2d356c0f2b42906.tar.bz2
Make it work for autoconf-2.52 using packages as well.
Diffstat (limited to 'projects')
-rw-r--r--projects/ChangeLog5
-rwxr-xr-xprojects/GNOME/trigger9
-rwxr-xr-xprojects/KDE/trigger13
3 files changed, 23 insertions, 4 deletions
diff --git a/projects/ChangeLog b/projects/ChangeLog
index 754d864..9336009 100644
--- a/projects/ChangeLog
+++ b/projects/ChangeLog
@@ -1,3 +1,8 @@
+2001-10-27 Bruno Haible <haible@clisp.cons.org>
+
+ * KDE/trigger: Treat configure.ac like configure.in.
+ * GNOME/trigger: Likewise.
+
2001-10-21 Bruno Haible <haible@clisp.cons.org>
* Makefile.am: New file.
diff --git a/projects/GNOME/trigger b/projects/GNOME/trigger
index 20bacb6..e7a04fe 100755
--- a/projects/GNOME/trigger
+++ b/projects/GNOME/trigger
@@ -1,8 +1,15 @@
#!/bin/sh
# Test whether the current package is a GNOME package.
while true; do
+ configfiles=
if test -f configure.in; then
- if grep '^GNOME_' configure.in >/dev/null 2>&1 ; then
+ configfiles="$configfiles configure.in"
+ fi
+ if test -f configure.ac; then
+ configfiles="$configfiles configure.ac"
+ fi
+ if test -n "$configfiles"; then
+ if grep '^GNOME_' $configfiles >/dev/null 2>&1 ; then
exit 0
fi
exit 1
diff --git a/projects/KDE/trigger b/projects/KDE/trigger
index 90712d8..3426454 100755
--- a/projects/KDE/trigger
+++ b/projects/KDE/trigger
@@ -1,10 +1,17 @@
#!/bin/sh
# Test whether the current package is a KDE package.
while true; do
+ configfiles=
if test -f configure.in; then
- if grep '^KDE_' configure.in >/dev/null 2>&1 || \
- grep '^AC_PATH_KDE' configure.in >/dev/null 2>&1 || \
- grep '^AM_KDE_WITH_NLS' configure.in >/dev/null 2>&1 ; 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