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 3 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
23 ### 'bootstrap' generates build files for distribution.
27 # Check for the existence of a configure script.
30 if test -e configure
&& test "x$1" != "x-r"; then
33 echo "1) Run './configure'."
35 echo "3) Run 'make install'."
37 echo "* To regenerate configure, run '$0 -r'"
44 if ! which gnulib-tool
&> /dev
/null
; then
45 echo "*** Cannot find 'gnulib-tool'. ***"
49 if ! which ln &> /dev
/null
; then
50 echo "*** Cannot find 'ln'. ***"
54 if ! which automake
&> /dev
/null
; then
55 echo "*** Cannot find 'automake'. ***"
59 if ! which autoreconf
&> /dev
/null
; then
60 echo "*** Cannot find 'autoreconf'. ***"
64 if ! test -e /usr
/share
/aclocal
/acx_pthread.
m4; then
65 echo "*** Cannot find file '/usr/share/aclocal/acx_pthread.m4'. ***"
70 # Add autoconf archive files.
74 cp /usr
/share
/aclocal
/acx_pthread.
m4 m
4/.
75 cp /usr
/share
/aclocal
/ax_lang_compiler_ms.
m4 m
4/.
76 cp /usr
/share
/aclocal
/ax_check_gl.
m4 m
4/.
77 cp /usr
/share
/aclocal
/ax_check_glu.
m4 m
4/.
78 cp /usr
/share
/aclocal
/ax_check_glut.
m4 m
4/.
84 chmod a
+x
doc
/make-changelog
85 chmod a
+x
doc
/make-infos
86 XSLT_VERSION_INFO
=`./version -x`
87 export XSLT_VERSION_INFO
88 make -C doc ..
/TODO ..
/README ..
/ChangeLog ..
/NEWS
89 a2x
-f manpage
doc
/man
/ale
.1.txt
92 # Import GNU extension strndup
95 gnulib-tool
--libtool --import strndup error strtod
98 # Placeholders for automake-mandated files.
105 # Use the automake-mandated spelling for the changelog.
108 # ln -s Changelog ChangeLog
111 # Run autotools' bootstrap script, adding things that automake thinks are
112 # missing, among other things (--install).
118 # Run automake again, with the --foreign option.
122 # echo "Rerunning automake with --foreign flag."
126 # Make wrapper script executable
132 # Indicate that we're done.
139 # Tell the user what to do next.
144 echo "1) Run './configure'."
145 echo "2) Run 'make'."
146 echo "3) Run 'make install'."