d2::raster::generic_response(): address -0.001 term, convert WS back to tabs.
[Ale.git] / bootstrap
blobc7aa9accc90321a5f2d90b3caacb9a29f86a3b49
1 #!/bin/sh
3 # Copyright 2006 David Hilvert <dhilvert@auricle.dyndns.org>,
4 # <dhilvert@ugcs.caltech.edu>
6 # This file is part of the Anti-Lamenessing Engine.
8 # The Anti-Lamenessing Engine is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
13 # The Anti-Lamenessing Engine is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with Anti-Lamenessing Engine; if not, write to the Free Software
20 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 ###
23 ### 'bootstrap' generates build files for distribution.
24 ###
27 # Check for the existence of a configure script.
30 if test -e configure && test "x$1" != "x-r"; then
31 echo
32 echo "To install:"
33 echo "1) Run './configure'."
34 echo "2) Run 'make'."
35 echo "3) Run 'make install'."
36 echo ""
37 echo "* To regenerate configure, run '$0 -r'"
38 echo
39 exit
42 if ! which gnulib-tool &> /dev/null; then
43 echo "*** Cannot find 'gnulib-tool'. ***"
44 exit
47 if ! which ln &> /dev/null; then
48 echo "*** Cannot find 'ln'. ***"
49 exit
52 if ! which automake &> /dev/null; then
53 echo "*** Cannot find 'automake'. ***"
54 exit
57 if ! which autoreconf &> /dev/null; then
58 echo "*** Cannot find 'autoreconf'. ***"
59 exit
62 if ! test -e /usr/share/autoconf-archive/acx_pthread.m4; then
63 echo "*** Cannot find file '/usr/share/autoconf-archive/acx_pthread.m4'. ***"
64 exit
68 # Add autoconf archive files.
71 mkdir -p m4
72 cp /usr/share/autoconf-archive/acx_pthread.m4 m4/.
75 # Prune documentation
78 if ! test -e _darcs; then
79 rm -rf doc/user
80 rm -rf doc/technical
81 rm -rf doc/tutorial
82 rm -rf doc/localhost
86 # Make documentation
89 chmod a+x doc/make-changelog
90 chmod a+x doc/make-infos
91 make -C doc ../TODO ../README ../ChangeLog ../NEWS ../REPORTING-BUGS
94 # Import GNU extension strndup
97 gnulib-tool --libtool --import strndup error strtod
100 # Placeholders for automake-mandated files.
103 # touch NEWS
104 # touch AUTHORS
107 # Use the automake-mandated spelling for the changelog.
110 # ln -s Changelog ChangeLog
113 # Run autotools' bootstrap script, adding things that automake thinks are
114 # missing, among other things (--install).
117 autoreconf --install
120 # Run automake again, with the --foreign option.
123 # echo ""
124 # echo "Rerunning automake with --foreign flag."
125 # automake --foreign
128 # Indicate that we're done.
131 echo ""
132 echo "Done."
135 # Tell the user what to do next.
138 echo
139 echo "To install:"
140 echo "1) Run './configure'."
141 echo "2) Run 'make'."
142 echo "3) Run 'make install'."