trigger 863 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/bin/sh
  2. # Test whether the current package is a GNOME package.
  3. # NLS nuisances: Letter ranges are different in the Estonian locale.
  4. LC_ALL=C
  5. while true; do
  6. configfiles=
  7. if test -f configure.in; then
  8. configfiles="$configfiles configure.in"
  9. fi
  10. if test -f configure.ac; then
  11. configfiles="$configfiles configure.ac"
  12. fi
  13. if test -n "$configfiles"; then
  14. if grep '^GNOME_' $configfiles >/dev/null 2>&1 ; then
  15. exit 0
  16. fi
  17. exit 1
  18. fi
  19. dir=`basename \`pwd\``
  20. case "$dir" in
  21. i18n)
  22. # This directory name, used in GNU make, is not the top level directory.
  23. ;;
  24. *[A-Za-z]*[0-9]*)
  25. # Reached the top level directory.
  26. exit 1
  27. esac
  28. # Go to parent directory
  29. last=`/bin/pwd`
  30. cd ..
  31. curr=`/bin/pwd`
  32. if test "$last" = "$curr"; then
  33. # Oops, didn't find the top level directory.
  34. exit 1
  35. fi
  36. done