d51ada4a87
even if they have mismatching versions of the autotools git-svn-id: https://shellinabox.googlecode.com/svn/trunk@146 0da03de8-d603-11dd-86c2-0f8696b7b6f9
35 lines
1.1 KiB
Bash
Executable file
35 lines
1.1 KiB
Bash
Executable file
#!/bin/bash -e
|
|
|
|
# If you want to track the status of the project in Subversion, run this script
|
|
# instead of relying on "svn update". The script makes sure you end up with a
|
|
# working copy of the source tree that is customized to the version of GNU
|
|
# "autotools" that are installed on your machine.
|
|
#
|
|
# Alternatively, you can always remove the entire tree and check out a fresh
|
|
# copy from Subversion.
|
|
|
|
[ -x "$(type -path svn)" ] || {
|
|
echo "You must have the 'svn' binary to use this script." >&2
|
|
exit 1
|
|
}
|
|
[ -x "$(type -path libtoolize)" ] || {
|
|
echo "You must install 'libtool', if you want to track SVN." >&2
|
|
echo "Alternatively, delete all files and check out a clean copy" \
|
|
"from SVN." >&2
|
|
exit 1
|
|
}
|
|
[ -x "$(type -path autoreconf)" -a -x "$(type -path aclocal)" ] || {
|
|
echo "You must install the GNU 'autotools', if you want to track SVN." >&2
|
|
echo "Alternatively, delete all files and check out a clean copy" \
|
|
"from SVN" >&2
|
|
exit 1
|
|
}
|
|
|
|
rm -rf aclocal.m4 configure config.guess config.h config.h.in config.sub \
|
|
ltmain.sh m4 Makefile.in
|
|
|
|
svn update
|
|
aclocal
|
|
libtoolize --force --copy
|
|
autoreconf
|
|
./configure
|