autogunk.sh 891 B

12345678910111213141516171819202122232425
  1. #!/bin/sh
  2. # This script tries to follow the "GNU way" w.r.t. the autobits.
  3. # This does of course generate a number of irritating files.
  4. # Try to get over it (I am getting there myself).
  5. # This should generate any missing crud, and then run autoconf which should turn
  6. # configure.in into a "./configure" script and "Makefile.am" into a
  7. # "Makefile.in". Then running "./configure" should turn "Makefile.in" into
  8. # "Makefile" and should generate the config.h containing your systems various
  9. # settings. I know ... what a hassle ...
  10. # Also, sometimes these autobits things generate bizarre output (looking like
  11. # errors). So I direct everything "elsewhere" ...
  12. (aclocal
  13. autoheader
  14. libtoolize --copy --force
  15. automake --foreign --add-missing --copy
  16. autoconf) 1> /dev/null 2>&1
  17. # Move the "no-autotools" Makefile out of the way
  18. if test ! -f Makefile.plain; then
  19. mv Makefile Makefile.plain
  20. fi