Skip to content

Commit

Permalink
generate bzip2 and zip files too
Browse files Browse the repository at this point in the history
  • Loading branch information
bagder committed Sep 27, 2001
1 parent 7239ecd commit 888d39e
Showing 1 changed file with 41 additions and 3 deletions.
44 changes: 41 additions & 3 deletions maketgz
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ findprog()
# Enforce a rerun of configure (updates the VERSION) # Enforce a rerun of configure (updates the VERSION)
# #


./config.status --recheck echo "Re-running config.status"
./config.status --recheck >/dev/null


############################################################################ ############################################################################
# #
Expand All @@ -73,7 +74,7 @@ if { findprog automake >/dev/null 2>/dev/null; } then
echo "- Could not find or run automake, I hope you know what you're doing!" echo "- Could not find or run automake, I hope you know what you're doing!"
else else
echo "Runs automake --include-deps" echo "Runs automake --include-deps"
automake --include-deps Makefile automake --include-deps Makefile >/dev/null
fi fi


############################################################################ ############################################################################
Expand All @@ -84,7 +85,44 @@ make html


############################################################################ ############################################################################
# #
# Now run make dist # Now run make dist to generate a tar.gz archive
# #


targz="curl-$version.tar.gz"
make dist make dist

############################################################################
#
# Now make a bz2 archive from the tar.gz original
#

bzip2="curl-$version.tar.bz2"
echo "Generating $bzip2"
gzip -dc $targz | bzip2 - > $bzip2

############################################################################
#
# Now make a zip archive from the tar.gz original
#
makezip ()
{
rm -rf $tempdir
mkdir $tempdir
cd $tempdir
gzip -dc ../$targz | tar -xf -
find . | zip $zip -@ >/dev/null
mv $zip ../
cd ..
rm -rf $tempdir
}

zip="curl-$version.zip"
echo "Generating $zip"
tempdir=".builddir"
makezip

echo "------------------"
echo "maketgz report:"
echo ""
ls -l $targz $bzip2 $zip

0 comments on commit 888d39e

Please sign in to comment.