autogen.sh 605 B

1234567891011121314151617181920212223242526
  1. #!/bin/sh
  2. set -e
  3. # Use backticks to support ksh on Solaris
  4. basedir=`dirname "$0"`
  5. srcdir=`cd "$basedir" && pwd`
  6. cd "$srcdir"
  7. ${AUTORECONF:-autoreconf} --verbose --install --force -I m4 ${AUTORECONF_FLAGS}
  8. # Customize the INSTALL file
  9. rm -f INSTALL && ln -s doc/INSTALL
  10. # Generate po/POTFILES.in
  11. ${XGETTEXT:-xgettext} --keyword=_ --keyword=N_ --keyword=Q_ --output=- \
  12. `find . -name '*.[ch]'` | ${SED-sed} -ne '/^#:/{s/#://;s/:[0-9]*/\
  13. /g;s/ //g;p;}' | \
  14. grep -v '^$' | sort | uniq >po/POTFILES.in
  15. $srcdir/version.sh "$srcdir"
  16. if test -x $srcdir/configure.mc; then
  17. $srcdir/configure.mc "$@"
  18. fi