summaryrefslogtreecommitdiff
path: root/bootstrap
blob: 69aa0a45bfc9e44e0face666f07c9e58ce52e305 (plain)
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
#! /bin/sh
set -e
contrib_scripts="card fixps pdiff psmandup psset"

echo "Bootstrapping a2ps..."

# These are created by the Makefile, which is missing for the time
# being.  They are needed by configure.
for i in $contrib_scripts
do
  touch contrib/$i.in
done

# Autoconf, Automake, Gettext.
autoreconf --force --install --verbose

# Configure and make the missing guys.
./configure

# Configure was using card.in etc.  But they were probably fake ones.
# Remove them, and let make do the rest.
(
  cd contrib
  for i in $contrib_scripts
  do
    rm -f $i $i.in
  done
  make
)
make