Update setup.sh script
Adjust what gets cleaned up now that ChangeLog and config/.gitignore are checked into the repo, and skip install and distcheck steps.
This commit is contained in:
1 parent
b9c340a211
commit
ceb2684f2f
1 file changed
+8
-10
@@ -10,10 +10,11 @@
|
|||||||
if [ "clean" == "$1" ]; then
|
if [ "clean" == "$1" ]; then
|
||||||
make distclean || echo "continuing..."
|
make distclean || echo "continuing..."
|
||||||
find config/m4 -type f \( -name libtool\* -o -name lt\* \) | xargs rm -f
|
find config/m4 -type f \( -name libtool\* -o -name lt\* \) | xargs rm -f
|
||||||
find config -name m4 -prune -o -type f -print | xargs rm -f
|
find config -name m4 -prune \
|
||||||
rm -rf tmp autom4te.cache
|
-o -name .gitignore -prune \
|
||||||
rm -f INSTALL Makefile.in aclocal.m4 configure config.h.in ChangeLog
|
-o -type f -print | xargs rm -f
|
||||||
rm -f jv_utf8_tables.gen.h
|
rm -rf autom4te.cache
|
||||||
|
rm -f Makefile.in aclocal.m4 configure
|
||||||
elif [ "superclean" == "$1" ]; then
|
elif [ "superclean" == "$1" ]; then
|
||||||
# if autoconf errors during distcheck, it leaves files that need chmod'ing
|
# if autoconf errors during distcheck, it leaves files that need chmod'ing
|
||||||
ver=$(scripts/version|tr -d '\n')
|
ver=$(scripts/version|tr -d '\n')
|
||||||
@@ -26,10 +27,7 @@ elif [ "superclean" == "$1" ]; then
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
autoreconf --install
|
autoreconf --install
|
||||||
./configure --prefix=/opt/junk
|
./configure --disable-valgrind
|
||||||
make check
|
make -j8
|
||||||
[ -d tmp ] && mv tmp tmp-
|
make check -j4
|
||||||
mkdir tmp
|
|
||||||
make DESTDIR=./tmp install
|
|
||||||
make distcheck
|
|
||||||
fi
|
fi
|
||||||
Reference in new issue
Block a user