[go: up one dir, main page]

File: bootstrap

package info (click to toggle)
ale 0.9.0.3-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 7,192 kB
  • ctags: 3,623
  • sloc: cpp: 21,826; sh: 10,106; xml: 4,129; ansic: 2,343; makefile: 563; perl: 454; exp: 319
file content (139 lines) | stat: -rwxr-xr-x 2,829 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
#!/bin/bash

# Copyright 2006 David Hilvert <dhilvert@auricle.dyndns.org>,
#                              <dhilvert@ugcs.caltech.edu>

#  This file is part of the Anti-Lamenessing Engine.
#
#  The Anti-Lamenessing Engine is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 3 of the License, or
#  (at your option) any later version.
#
#  The Anti-Lamenessing Engine is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with Anti-Lamenessing Engine; if not, write to the Free Software
#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

###
### 'bootstrap' generates build files for distribution.
###

#
# Check for the existence of a configure script.
#

if test -e configure && test "x$1" != "x-r"; then
	echo
	echo "To install:"
	echo "1) Run './configure'."
	echo "2) Run 'make'."
	echo "3) Run 'make install'."
	echo ""
	echo "* To regenerate configure, run '$0 -r'"
	echo
	exit
fi

if ! which gnulib-tool &> /dev/null; then
	echo "*** Cannot find 'gnulib-tool'. ***"
	exit
fi

if ! which ln &> /dev/null; then
	echo "*** Cannot find 'ln'. ***"
	exit
fi

if ! which automake &> /dev/null; then
	echo "*** Cannot find 'automake'. ***"
	exit 
fi

if ! which autoreconf &> /dev/null; then
	echo "*** Cannot find 'autoreconf'. ***"
	exit
fi

if ! test -e /usr/share/aclocal/acx_pthread.m4; then
	echo "*** Cannot find file '/usr/share/aclocal/acx_pthread.m4'. ***"
	exit
fi

#
# Add autoconf archive files.
#

mkdir -p m4
cp /usr/share/aclocal/acx_pthread.m4 m4/.

#
# Make documentation
#

chmod a+x doc/make-changelog
chmod a+x doc/make-infos
make -C doc ../TODO ../README ../ChangeLog ../NEWS
a2x -f manpage doc/man/ale.1.txt

#
# Import GNU extension strndup
#

gnulib-tool --libtool --import strndup error strtod

#
# Placeholders for automake-mandated files.
#

# touch NEWS
# touch AUTHORS

#
# Use the automake-mandated spelling for the changelog.
#

# ln -s Changelog ChangeLog

#
# Run autotools' bootstrap script, adding things that automake thinks are
# missing, among other things (--install).
#

autoreconf --install

#
# Run automake again, with the --foreign option.
#

# echo ""
# echo "Rerunning automake with --foreign flag."
# automake --foreign

#
# Make wrapper script executable
#

chmod a+x ./ale

#
# Indicate that we're done.
# 

echo ""
echo "Done."

#
# Tell the user what to do next.
#

echo
echo "To install:"
echo "1) Run './configure'."
echo "2) Run 'make'."
echo "3) Run 'make install'."