File: bootstrap.sh

package info (click to toggle)
config-manager 0.3-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,180 kB
  • ctags: 802
  • sloc: sh: 8,865; cpp: 2,630; python: 2,191; makefile: 127
file content (35 lines) | stat: -rw-r--r-- 925 bytes parent folder | download | duplicates (4)
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
#! /bin/sh
# Used to setup the configure.in, autoheader and Makefile.in's if configure
# has not been generated. This script is only needed for developers when
# configure has not been run, or if a Makefile.am in a non-configured directory
# has been updated


bootstrap() {
  if "$@"; then
    true # Everything OK
  else
    echo "$1 failed"
    echo "Autotool bootstrapping failed. You will need to investigate and correct" ;
    echo "before you can develop on this source tree" 
    exit 1
  fi
}

# Make sure we are running in the right directory
if [ ! -f src/GetOption.cc ]; then
    echo "You must run this script from the directory containing it"
    exit 1
fi

# Make sure cfgaux exists
mkdir -p cfgaux

# Bootstrap the autotool subsystems
bootstrap aclocal
bootstrap autoheader
bootstrap libtoolize --automake
bootstrap automake --foreign --add-missing
bootstrap autoconf

echo "Autotool bootstrapping complete."