bootstrap.sh 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!/bin/sh
  2. # $Id: bootstrap.sh 3 2003-08-04 22:45:25Z lennart $
  3. # This file is part of ifmetric.
  4. #
  5. # ifmetric is free software; you can redistribute it and/or modify it
  6. # under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2 of the License, or
  8. # (at your option) any later version.
  9. #
  10. # ifmetric is distributed in the hope that it will be useful, but
  11. # WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. # General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU General Public License
  16. # along with ifmetric; if not, write to the Free Software Foundation,
  17. # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
  18. if [ "x$1" = "xam" ] ; then
  19. set -ex
  20. automake -a -c
  21. ./config.status
  22. else
  23. set -ex
  24. make maintainer-clean || true
  25. rm -rf autom4te.cache
  26. rm -f config.cache
  27. aclocal
  28. autoheader
  29. automake -a -c
  30. autoconf -Wall
  31. ./configure "$@"
  32. fi