|
Revision 49, 0.8 kB
(checked in by anonymous, 7 years ago)
|
This commit was manufactured by cvs2svn to create tag
'release-0_0_1'.
|
- Property svn:eol-style set to
native
- Property svn:executable set to
*
- Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 |
#!/bin/sh |
|---|
| 2 |
|
|---|
| 3 |
run () { |
|---|
| 4 |
echo "Doing '$*'..." |
|---|
| 5 |
$* |
|---|
| 6 |
RC=$? |
|---|
| 7 |
if test ${RC} != 0 |
|---|
| 8 |
then |
|---|
| 9 |
echo "Exit with error (${RC})" |
|---|
| 10 |
exit 1 |
|---|
| 11 |
fi |
|---|
| 12 |
} |
|---|
| 13 |
|
|---|
| 14 |
ACLOCAL=`type aclocal | awk '{ print $3 }'` |
|---|
| 15 |
LIBTOOLIZE=`type libtoolize | awk '{ print $3 }'` |
|---|
| 16 |
AUTOMAKE=`type automake | awk '{ print $3 }'` |
|---|
| 17 |
AUTOCONF=`type autoconf | awk '{ print $3 }'` |
|---|
| 18 |
|
|---|
| 19 |
if test ! -x "${ACLOCAL}" \ |
|---|
| 20 |
|| test ! -x "${LIBTOOLIZE}" \ |
|---|
| 21 |
|| test ! -x "${AUTOMAKE}" \ |
|---|
| 22 |
|| test ! -x "${AUTOCONF}" |
|---|
| 23 |
then |
|---|
| 24 |
echo "You should have installed automake and libtool packages!" |
|---|
| 25 |
exit 1 |
|---|
| 26 |
fi |
|---|
| 27 |
|
|---|
| 28 |
if test -z "${ACLOCAL_FLAGS}"; then |
|---|
| 29 |
run "${ACLOCAL}" |
|---|
| 30 |
else |
|---|
| 31 |
run "${ACLOCAL} ${ACLOCAL_FLAGS}" |
|---|
| 32 |
fi |
|---|
| 33 |
run "${LIBTOOLIZE}" -c -f |
|---|
| 34 |
run "${AUTOMAKE}" -c -a |
|---|
| 35 |
run "${AUTOCONF}" |
|---|
| 36 |
|
|---|
| 37 |
run ./configure --enable-maintainer-mode $* |
|---|
| 38 |
|
|---|
| 39 |
echo |
|---|
| 40 |
echo "Now enter 'make' to compile" |
|---|
| 41 |
echo |
|---|