From: Matthias Andree Date: Fri, 5 Sep 2008 07:51:29 +0000 (+0200) Subject: Print size of resulting .tar.gz file. X-Git-Tag: v1.41.2~21 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a6c408b691b48ff482de91a1f714dfeb8e196246;p=thirdparty%2Fe2fsprogs.git Print size of resulting .tar.gz file. Signed-off-by: Matthias Andree Signed-off-by: Theodore Ts'o --- diff --git a/util/gen-tarball.in b/util/gen-tarball.in index e550e2cb0..a1bcaaf4e 100644 --- a/util/gen-tarball.in +++ b/util/gen-tarball.in @@ -8,6 +8,7 @@ top_dir=`cd $top_srcdir; pwd` base_ver=`echo @E2FSPROGS_VERSION@ | sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'` base_e2fsprogs=`basename $top_dir` exclude=/tmp/exclude +GZIP=gzip # # This hack is needed because texi2dvi blows up horribly if there are @@ -45,7 +46,8 @@ sed -e "s;^;$SRCROOT/;" < $srcdir/$list.exclude >> $exclude (cd $top_srcdir/.. ; rm -f $SRCROOT ; ln -sf e2fsprogs $SRCROOT) (cd $top_srcdir/.. ; tar -c -h -v -f - -X $exclude $SRCROOT) \ - | gzip -9 > $SRCROOT.tar.gz + | $GZIP -9 -c > $SRCROOT.tar.gz +$GZIP -l $SRCROOT.tar.gz (cd $top_srcdir/.. ; rm -f $SRCROOT) mv $top_srcdir/e2fsprogs.spec ../e2fsprogs.spec