summaryrefslogtreecommitdiffstats
path: root/setup.sh
diff options
context:
space:
mode:
authorLee Thompson <stagr.lee@gmail.com>2013-02-03 14:49:03 -0600
committerLee Thompson <stagr.lee@gmail.com>2013-02-03 14:49:03 -0600
commit43fd939f1628ce88274b28aaa284946f00e8aadb (patch)
tree20710c7173eb2d580527c64be81248ff3b9c28f2 /setup.sh
parentd8a072ca011c525885b7f79cc888a64392644e09 (diff)
rework build to not distribute tests unless --enable-devel is specificied to autoconf
Diffstat (limited to 'setup.sh')
-rwxr-xr-xsetup.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/setup.sh b/setup.sh
index 763e78f4..ef92f88a 100755
--- a/setup.sh
+++ b/setup.sh
@@ -1,12 +1,19 @@
#!/usr/bin/env bash
# RUN ME after pulling the code from git!
+#
+# This script is handy after pulling the code out of git without having
+# to remember all the typing needed to build up and tear down all the
+# crap that autotools puts in your source repo. The intent is to keep
+# all generated files out of git.
+
if [ "clean" == "$1" ]; then
make distclean || echo "continuing..."
rm -rf tmp autom4te.cache config
rm -f INSTALL Makefile.in aclocal.m4 configure config.h.in ChangeLog
rm -f jv_utf8_tables.gen.h lexer.c lexer.h parser.c parser.h
elif [ "superclean" == "$1" ]; then
+ # if autoconf errors during distcheck, it leaves files that need chmod'ing
ver=$(tr -d '\n' <VERSION)
if [ "x${ver}" != "x" ]; then
if [ -d jq-${ver} ]; then
@@ -17,7 +24,7 @@ elif [ "superclean" == "$1" ]; then
fi
else
autoreconf --install
- ./configure --prefix=/opt/junk
+ ./configure --enable-devel --prefix=/opt/junk
make check
mkdir tmp
make DESTDIR=./tmp install