From 194faf56fbf7c1e47f53bb40e4d6fe6dd6d0ac4e Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Mon, 26 Apr 2010 12:58:17 +0000 Subject: [PATCH] make_release: Add a cleaning section. --- make_release.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/make_release.sh b/make_release.sh index e90255b..8b0a130 100755 --- a/make_release.sh +++ b/make_release.sh @@ -9,17 +9,21 @@ LIBNFC_VERSION=$(grep AC_INIT configure.ac | sed 's/^.*(\(.*\))/\1/g' | awk -F', # Easiest part: GNU/linux, BSD and other POSIX systems. LIBNFC_AUTOTOOLS_ARCHIVE=libnfc-$LIBNFC_VERSION.tar.gz +echo "> Cleaning sources..." +# First, clean what we can +autoreconf -is && ./configure && make distclean +svn propget svn:ignore . | xargs rm -rf +echo "< Sources cleaned." + if [ ! -f $LIBNFC_AUTOTOOLS_ARCHIVE ]; then echo "Autotooled archive generation..." - # First, clean what we can - autoreconf -is && ./configure && make distclean # Second, generate dist archive (and test it) - autoreconf -is && ./configure && make distcheck + autoreconf -is && ./configure && make distcheck # Finally, clean up make distclean - echo "Autotooled archive generate." + echo "Autotooled archive generated." else echo "Autotooled archive (GNU/Linux, BSD, etc.) is already done: skipped." fi