mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Copied from edelib
This commit is contained in:
parent
ac210b565e
commit
669abebb76
27
autogen.sh
27
autogen.sh
@ -1,29 +1,18 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
dump_config() {
|
# to save me from typing :P
|
||||||
cat > $1 <<EOF
|
if [ "$1" = "--compile" ]; then
|
||||||
#
|
compile=1
|
||||||
# Do not edit this file. Edit configure.in and m4/*.m4 files
|
fi
|
||||||
# and run './autogen.sh' again.
|
|
||||||
#
|
|
||||||
EOF
|
|
||||||
# a cool trict from autojam
|
|
||||||
autoconf --trace=AC_SUBST \
|
|
||||||
| sed -e 's/configure.in:[0-9]*:AC_SUBST:\([^:]*\).*/\1 ?= "@\1@" ;/g' \
|
|
||||||
| sed -e '/ac_*/d' -e '/ECHO_*/d' \
|
|
||||||
| sort -u \
|
|
||||||
>> $1
|
|
||||||
|
|
||||||
echo 'INSTALL_DIR ?= "@INSTALL_DIR@" ;' >> $1
|
|
||||||
}
|
|
||||||
|
|
||||||
if aclocal -I m4 && autoheader && autoconf; then
|
if aclocal -I m4 && autoheader && autoconf; then
|
||||||
#dump_config "Jamconfig.in"
|
|
||||||
rm -f "config.h.in~"
|
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Now run ./configure [OPTIONS]"
|
echo "Now run ./configure [OPTIONS]"
|
||||||
echo "or './configure --help' to see them"
|
echo "or './configure --help' to see them"
|
||||||
|
|
||||||
|
if [ $compile ]; then
|
||||||
|
./configure --enable-debug --prefix=/opt/ede && jam
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo ""
|
echo ""
|
||||||
echo "We failed :(. There should be some output, right?"
|
echo "We failed :(. There should be some output, right?"
|
||||||
|
Loading…
Reference in New Issue
Block a user