Minor tweak in make_release.sh script
This commit is contained in:
parent
23f2adb433
commit
12e4d3c822
1 changed files with 12 additions and 9 deletions
|
@ -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
|
LIBNFC_AUTOTOOLS_ARCHIVE=libnfc-$LIBNFC_VERSION.tar.gz
|
||||||
|
|
||||||
if [ ! -f $LIBNFC_AUTOTOOLS_ARCHIVE ]; then
|
if [ ! -f $LIBNFC_AUTOTOOLS_ARCHIVE ]; then
|
||||||
# First, we can test archive using "distcheck"
|
echo "Autotooled archive generation..."
|
||||||
autoreconf -vis && ./configure && make distcheck
|
# First, clean what we can
|
||||||
|
autoreconf -is && ./configure && make distclean
|
||||||
|
|
||||||
# Clean up
|
# Second, generate dist archive (and test it)
|
||||||
make distclean
|
autoreconf -is && ./configure && make distcheck
|
||||||
|
|
||||||
# We are ready to make a good autotools release.
|
# Finally, clean up
|
||||||
autoreconf -vis && ./configure && make dist
|
|
||||||
|
|
||||||
# Clean up
|
|
||||||
make distclean
|
make distclean
|
||||||
|
echo "Autotooled archive generate."
|
||||||
else
|
else
|
||||||
echo "Autotooled archive (GNU/Linux, BSD, etc.) is already done: skipped."
|
echo "Autotooled archive (GNU/Linux, BSD, etc.) is already done: skipped."
|
||||||
fi
|
fi
|
||||||
|
@ -30,12 +29,13 @@ LIBNFC_DOC_DIR=libnfc-doc-$LIBNFC_VERSION
|
||||||
LIBNFC_DOC_ARCHIVE=$LIBNFC_DOC_DIR.zip
|
LIBNFC_DOC_ARCHIVE=$LIBNFC_DOC_DIR.zip
|
||||||
|
|
||||||
if [ ! -f $LIBNFC_DOC_ARCHIVE ]; then
|
if [ ! -f $LIBNFC_DOC_ARCHIVE ]; then
|
||||||
|
echo "Documentation archive generation..."
|
||||||
if [ -d $LIBNFC_DOC_DIR ]; then
|
if [ -d $LIBNFC_DOC_DIR ]; then
|
||||||
rm -rf $LIBNFC_DOC_DIR
|
rm -rf $LIBNFC_DOC_DIR
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Build documentation
|
# Build documentation
|
||||||
autoreconf -vis && ./configure --enable-doc && make doc
|
autoreconf -is && ./configure --enable-doc && make doc || false
|
||||||
|
|
||||||
# Create archive
|
# Create archive
|
||||||
cp -r doc/html $LIBNFC_DOC_DIR
|
cp -r doc/html $LIBNFC_DOC_DIR
|
||||||
|
@ -44,6 +44,7 @@ if [ ! -f $LIBNFC_DOC_ARCHIVE ]; then
|
||||||
# Clean up
|
# Clean up
|
||||||
rm -rf $LIBNFC_DOC_DIR
|
rm -rf $LIBNFC_DOC_DIR
|
||||||
make distclean
|
make distclean
|
||||||
|
echo "Documentation archive generated."
|
||||||
else
|
else
|
||||||
echo "Documentation archive is already done: skipped."
|
echo "Documentation archive is already done: skipped."
|
||||||
fi
|
fi
|
||||||
|
@ -53,6 +54,7 @@ LIBNFC_WINDOWS_DIR=libnfc-$LIBNFC_VERSION-winsdk
|
||||||
LIBNFC_WINDOWS_ARCHIVE=$LIBNFC_WINDOWS_DIR.zip
|
LIBNFC_WINDOWS_ARCHIVE=$LIBNFC_WINDOWS_DIR.zip
|
||||||
|
|
||||||
if [ ! -f $LIBNFC_WINDOWS_ARCHIVE ]; then
|
if [ ! -f $LIBNFC_WINDOWS_ARCHIVE ]; then
|
||||||
|
echo "Windows archive generation..."
|
||||||
if [ -d $LIBNFC_WINDOWS_DIR ]; then
|
if [ -d $LIBNFC_WINDOWS_DIR ]; then
|
||||||
rm -rf $LIBNFC_WINDOWS_DIR
|
rm -rf $LIBNFC_WINDOWS_DIR
|
||||||
fi
|
fi
|
||||||
|
@ -77,6 +79,7 @@ if [ ! -f $LIBNFC_WINDOWS_ARCHIVE ]; then
|
||||||
# Build archive
|
# Build archive
|
||||||
zip -r $LIBNFC_WINDOWS_ARCHIVE $LIBNFC_WINDOWS_DIR
|
zip -r $LIBNFC_WINDOWS_ARCHIVE $LIBNFC_WINDOWS_DIR
|
||||||
rm -rf $LIBNFC_WINDOWS_DIR
|
rm -rf $LIBNFC_WINDOWS_DIR
|
||||||
|
echo "Windows archive generated."
|
||||||
else
|
else
|
||||||
echo "Windows archive is already done: skipped."
|
echo "Windows archive is already done: skipped."
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue