bootstrap.sh 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. #!/bin/sh
  2. AUTORECONF=`which autoreconf`
  3. if test -z $AUTORECONF; then
  4. echo "*** No autoreconf found, please install it ***"
  5. exit 1
  6. fi
  7. INTLTOOLIZE=`which intltoolize`
  8. if test -z $INTLTOOLIZE; then
  9. echo "*** No intltoolize found, please install the intltool package ***"
  10. exit 1
  11. fi
  12. autopoint --force
  13. AUTOPOINT='intltoolize --automake --copy' autoreconf --force --install --verbose
  14. # WORKAROUND 2013-08-15:
  15. # Patch the generated po/Makefile.in.in file so that locale files are installed
  16. # in the correct location on OS X and Free-BSD systems. This is a workaround
  17. # for a bug in intltool.
  18. # See https://launchpad.net/bugs/398571 and https://bugs.launchpad.net/bugs/992047
  19. #
  20. # TODO: Drop this hack, and bump our intltool version requiement once the issue
  21. # is fixed in intltool
  22. sed 's/itlocaledir = $(prefix)\/$(DATADIRNAME)\/locale/itlocaledir = $(datarootdir)\/locale/' < po/Makefile.in.in > po/Makefile.in.in.tmp
  23. mv po/Makefile.in.in.tmp po/Makefile.in.in
  24. echo "Done! Please run ./configure now."