summaryrefslogtreecommitdiff
path: root/maketgz
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-09-27 12:44:17 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-09-27 12:44:17 +0000
commit888d39e0838765cff55c3e98460c187a8ebf95d3 (patch)
treee1b382d2b104156d00b963e096ef60d6c2613f2e /maketgz
parent7239ecd4565d913f470465ab21e879de5d9e8d98 (diff)
downloadcurl-888d39e0838765cff55c3e98460c187a8ebf95d3.tar.gz
generate bzip2 and zip files too
Diffstat (limited to 'maketgz')
-rwxr-xr-xmaketgz44
1 files changed, 41 insertions, 3 deletions
diff --git a/maketgz b/maketgz
index 7d6a553e4..5b7796a6e 100755
--- a/maketgz
+++ b/maketgz
@@ -61,7 +61,8 @@ findprog()
# Enforce a rerun of configure (updates the VERSION)
#
-./config.status --recheck
+echo "Re-running config.status"
+./config.status --recheck >/dev/null
############################################################################
#
@@ -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!"
else
echo "Runs automake --include-deps"
- automake --include-deps Makefile
+ automake --include-deps Makefile >/dev/null
fi
############################################################################
@@ -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
+
+############################################################################
+#
+# 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
+