From 6af29d0dd683305439bed0c29955f9a2e2fecbb0 Mon Sep 17 00:00:00 2001 From: "RichardAsh1981@gmail.com" Date: Sun, 13 Jan 2013 22:32:34 +0000 Subject: [PATCH] check exit status of make distclean. Change to xz compression as per patch from Benjamin Drung --- scripts/maketarball.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/scripts/maketarball.sh b/scripts/maketarball.sh index db3db269f..72cd4e23c 100755 --- a/scripts/maketarball.sh +++ b/scripts/maketarball.sh @@ -76,7 +76,13 @@ function cleanfulltree { else make distclean 2>/dev/null > /dev/null; fi - printf "Done\n" + status=${?} + if [[ ${status} -eq 0 ]] ; then + printf "Done\n" + else + echo "Failed to make distclean: exit status was ${status}" + exit ${status} + fi printf "removing SVN directories... "; find . -depth -name '.svn' -execdir rm -rf '{}' ';' @@ -385,7 +391,7 @@ tar cf "audacity-fullsrc-${version}.tar" "${tarname}" printf "Done\n" printf "Compressing full source tarball in the background .... " -bzip2 "audacity-fullsrc-${version}.tar" & +xz "audacity-fullsrc-${version}.tar" & cd "${tardir}" # now we have the full source tarball, lets slim it down to the bits that @@ -403,7 +409,7 @@ tar cf "audacity-minsrc-${version}.tar" "${tarname}" printf "Done\n" printf "Compressing minimal source tarball .... " -bzip2 "audacity-minsrc-${version}.tar" +xz "audacity-minsrc-${version}.tar" cd "${tardir}" printf "Done\n"