autogen.sh 597 B

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