diff options
Diffstat (limited to 'projects')
-rw-r--r-- | projects/ChangeLog | 5 | ||||
-rwxr-xr-x | projects/GNOME/trigger | 9 | ||||
-rwxr-xr-x | projects/KDE/trigger | 13 |
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 |