1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
#!/bin/sh
# if RE/flex was installed below this directory, then copy its files
if [ -d ../reflex ]; then
echo "Copying updated RE/flex source code files..."
cp -r ../reflex/include/reflex/*.h include/reflex
cp -r ../reflex/unicode/*.cpp lib
cp -r ../reflex/lib/*.cpp lib
cp -r ../reflex/fuzzy/fuzzymatcher.h include/reflex
fi
# change lib/Makefile.am to use noinst_LIBRARIES
sed -i .bak 's/lib_LIBRARIES/noinst_LIBRARIES/' lib/Makefile.am
rm -f lib/Makefile.am.bak
# run autoconf and automake stuff with maintainer mode disabled
aclocal
autoheader
automake --add-missing --foreign
autoconf
automake
./configure
|