Project

General

Profile

Download (1.36 KB) Statistics
| Branch: | Revision:
1
#!/bin/bash -e
2

    
3
# If you want to track the status of the project in Subversion, run this script
4
# instead of relying on "svn update". The script makes sure you end up with a
5
# working copy of the source tree that is customized to the version of GNU
6
# "autotools" that are installed on your machine.
7
#
8
# Alternatively, you can always remove the entire tree and check out a fresh
9
# copy from Subversion.
10

    
11
[ -x "$(type -path svn)" ] || {
12
  echo "You must have the 'svn' binary to use this script." >&2
13
  exit 1
14
}
15
[ -x "$(type -path libtoolize)" ] || {
16
  echo "You must install 'libtool', if you want to track SVN." >&2
17
  echo "Alternatively, delete all files and check out a clean copy"           \
18
       "from SVN." >&2
19
  exit 1
20
}
21
[ -x "$(type -path autoreconf)" -a -x "$(type -path aclocal)" ] || {
22
  echo "You must install the GNU 'autotools', if you want to track SVN." >&2
23
  echo "Alternatively, delete all files and check out a clean copy"           \
24
       "from SVN" >&2
25
  exit 1
26
}
27

    
28
rm -rf aclocal.m4 configure config.guess config.h config.h.in config.sub      \
29
       ltmain.sh m4 Makefile.in
30

    
31
svn update
32
[ -z "$(svn st|grep '^C')" ] || {
33
  echo "Some files could not be synchronized with the SVN repository." >&2
34
  echo "You have to manually resolve the merge conflicts and rerun this "     \
35
       "script" >&2
36
  exit 1
37
}
38

    
39
aclocal
40
libtoolize --force --copy
41
autoreconf
42
./configure
(53-53/56)