summaryrefslogtreecommitdiffstats
path: root/generate-tarball.sh
diff options
context:
space:
mode:
Diffstat (limited to 'generate-tarball.sh')
-rwxr-xr-xgenerate-tarball.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/generate-tarball.sh b/generate-tarball.sh
new file mode 100755
index 0000000..2ff4bff
--- /dev/null
+++ b/generate-tarball.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+VERSION=$1
+
+rm -rf mysql-$VERSION
+
+tar xfz mysql-$VERSION.tar.gz || exit 1
+
+rm mysql-$VERSION/Docs/mysql.info
+
+tar cfz mysql-$VERSION-nodocs.tar.gz mysql-$VERSION || exit 1
+
+rm -rf mysql-$VERSION
+
+exit 0