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.
8 # Alternatively, you can always remove the entire tree and check out a fresh
9 # copy from Subversion.
11 [ -x "$(type -path svn)" ] || {
12 echo "You must have the 'svn' binary to use this script." >&2
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" \
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" \
28 rm -rf aclocal.m4 configure config.guess config.h config.h.in config.sub \
29 ltmain.sh m4 Makefile.in
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 " \
40 libtoolize --force --copy