make_release: Add a cleaning section.
This commit is contained in:
parent
854cfe15ec
commit
194faf56fb
1 changed files with 8 additions and 4 deletions
|
@ -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.
|
# Easiest part: GNU/linux, BSD and other POSIX systems.
|
||||||
LIBNFC_AUTOTOOLS_ARCHIVE=libnfc-$LIBNFC_VERSION.tar.gz
|
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
|
if [ ! -f $LIBNFC_AUTOTOOLS_ARCHIVE ]; then
|
||||||
echo "Autotooled archive generation..."
|
echo "Autotooled archive generation..."
|
||||||
# First, clean what we can
|
|
||||||
autoreconf -is && ./configure && make distclean
|
|
||||||
|
|
||||||
# Second, generate dist archive (and test it)
|
# Second, generate dist archive (and test it)
|
||||||
autoreconf -is && ./configure && make distcheck
|
autoreconf -is && ./configure && make distcheck
|
||||||
|
|
||||||
# Finally, clean up
|
# Finally, clean up
|
||||||
make distclean
|
make distclean
|
||||||
echo "Autotooled archive generate."
|
echo "Autotooled archive generated."
|
||||||
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
|
||||||
|
|
Loading…
Reference in a new issue