From 12e4d3c822b3f5c29861bfa30fffbdb8d68e5887 Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Wed, 31 Mar 2010 13:54:31 +0000 Subject: [PATCH] Minor tweak in make_release.sh script --- make_release.sh | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/make_release.sh b/make_release.sh index df68e97..05739ae 100755 --- a/make_release.sh +++ b/make_release.sh @@ -10,17 +10,16 @@ LIBNFC_VERSION=$(grep AC_INIT configure.ac | sed 's/^.*(\(.*\))/\1/g' | awk -F', LIBNFC_AUTOTOOLS_ARCHIVE=libnfc-$LIBNFC_VERSION.tar.gz if [ ! -f $LIBNFC_AUTOTOOLS_ARCHIVE ]; then - # First, we can test archive using "distcheck" - autoreconf -vis && ./configure && make distcheck + echo "Autotooled archive generation..." + # First, clean what we can + autoreconf -is && ./configure && make distclean - # Clean up - make distclean + # Second, generate dist archive (and test it) + autoreconf -is && ./configure && make distcheck - # We are ready to make a good autotools release. - autoreconf -vis && ./configure && make dist - - # Clean up + # Finally, clean up make distclean + echo "Autotooled archive generate." else echo "Autotooled archive (GNU/Linux, BSD, etc.) is already done: skipped." fi @@ -30,12 +29,13 @@ LIBNFC_DOC_DIR=libnfc-doc-$LIBNFC_VERSION LIBNFC_DOC_ARCHIVE=$LIBNFC_DOC_DIR.zip if [ ! -f $LIBNFC_DOC_ARCHIVE ]; then + echo "Documentation archive generation..." if [ -d $LIBNFC_DOC_DIR ]; then rm -rf $LIBNFC_DOC_DIR fi # Build documentation - autoreconf -vis && ./configure --enable-doc && make doc + autoreconf -is && ./configure --enable-doc && make doc || false # Create archive cp -r doc/html $LIBNFC_DOC_DIR @@ -44,6 +44,7 @@ if [ ! -f $LIBNFC_DOC_ARCHIVE ]; then # Clean up rm -rf $LIBNFC_DOC_DIR make distclean + echo "Documentation archive generated." else echo "Documentation archive is already done: skipped." fi @@ -53,6 +54,7 @@ LIBNFC_WINDOWS_DIR=libnfc-$LIBNFC_VERSION-winsdk LIBNFC_WINDOWS_ARCHIVE=$LIBNFC_WINDOWS_DIR.zip if [ ! -f $LIBNFC_WINDOWS_ARCHIVE ]; then + echo "Windows archive generation..." if [ -d $LIBNFC_WINDOWS_DIR ]; then rm -rf $LIBNFC_WINDOWS_DIR fi @@ -77,6 +79,7 @@ if [ ! -f $LIBNFC_WINDOWS_ARCHIVE ]; then # Build archive zip -r $LIBNFC_WINDOWS_ARCHIVE $LIBNFC_WINDOWS_DIR rm -rf $LIBNFC_WINDOWS_DIR + echo "Windows archive generated." else echo "Windows archive is already done: skipped." fi