diff options
author | josh.macdonald <jmacd@users.noreply.github.com> | 2007-01-28 17:55:03 +0000 |
---|---|---|
committer | josh.macdonald <jmacd@users.noreply.github.com> | 2007-01-28 17:55:03 +0000 |
commit | 42660ea8bae2254e0a6ccf5bc7457e2ded8f8495 (patch) | |
tree | 008d89df2c9f919e0f1da4bf0aa45cb32228b6f7 /xdelta1/autogen.sh | |
parent | 95734ad7f4c65382226f82bc2119954b682410d9 (diff) |
Clenaup junk.
Diffstat (limited to 'xdelta1/autogen.sh')
-rwxr-xr-x | xdelta1/autogen.sh | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/xdelta1/autogen.sh b/xdelta1/autogen.sh new file mode 100755 index 0000000..5f2e9c2 --- /dev/null +++ b/xdelta1/autogen.sh | |||
@@ -0,0 +1,59 @@ | |||
1 | #!/bin/sh | ||
2 | # Run this to generate all the initial makefiles, etc. | ||
3 | |||
4 | DIE=0 | ||
5 | |||
6 | (autoconf --version) < /dev/null > /dev/null 2>&1 || { | ||
7 | echo | ||
8 | echo "You must have autoconf installed to compile xdelta." | ||
9 | echo "Download the appropriate package for your distribution," | ||
10 | echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/" | ||
11 | DIE=1 | ||
12 | } | ||
13 | |||
14 | (libtool --version) < /dev/null > /dev/null 2>&1 || { | ||
15 | echo | ||
16 | echo "You must have libtool installed to compile xdelta." | ||
17 | echo "Get ftp://alpha.gnu.org/gnu/libtool-1.2d.tar.gz" | ||
18 | echo "(or a newer version if it is available)" | ||
19 | DIE=1 | ||
20 | } | ||
21 | |||
22 | (automake --version) < /dev/null > /dev/null 2>&1 || { | ||
23 | echo | ||
24 | echo "You must have automake installed to compile xdelta." | ||
25 | echo "Get ftp://ftp.cygnus.com/pub/home/tromey/automake-1.4.tar.gz" | ||
26 | echo "(or a newer version if it is available)" | ||
27 | DIE=1 | ||
28 | } | ||
29 | |||
30 | if test "$DIE" -eq 1; then | ||
31 | exit 1 | ||
32 | fi | ||
33 | |||
34 | (test -f xdelta.c) || { | ||
35 | echo "You must run this script in the top-level xdelta directory" | ||
36 | exit 1 | ||
37 | } | ||
38 | |||
39 | if test -z "$*"; then | ||
40 | echo "I am going to run ./configure with no arguments - if you wish " | ||
41 | echo "to pass any to it, please specify them on the $0 command line." | ||
42 | fi | ||
43 | |||
44 | for i in . | ||
45 | do | ||
46 | echo processing $i | ||
47 | (cd $i; \ | ||
48 | libtoolize --copy --force; \ | ||
49 | aclocal $ACLOCAL_FLAGS; autoheader; \ | ||
50 | automake --add-missing; \ | ||
51 | autoheader; \ | ||
52 | autoconf) | ||
53 | done | ||
54 | |||
55 | echo "Running ./configure --enable-maintainer-mode" "$@" | ||
56 | ./configure --enable-maintainer-mode "$@" | ||
57 | |||
58 | echo | ||
59 | echo "Now type 'make' to compile xdelta." | ||