summaryrefslogtreecommitdiff
path: root/win
diff options
context:
space:
mode:
authorSergey Petrunya <psergey@askmonty.org>2009-10-12 15:26:48 +0400
committerSergey Petrunya <psergey@askmonty.org>2009-10-12 15:26:48 +0400
commit870900c9c0e83e48617ff932e114d578882b05d5 (patch)
treea6897dc0ba9cac318927ba9ae23725efb203cafa /win
parent17494737bdb46a1f4479eeb8498bc25dce606f4d (diff)
downloadmariadb-git-870900c9c0e83e48617ff932e114d578882b05d5.tar.gz
Fix win32 binary zipfile name and contents to match the usual expectations
Diffstat (limited to 'win')
-rw-r--r--win/make_mariadb_win_dist25
1 files changed, 19 insertions, 6 deletions
diff --git a/win/make_mariadb_win_dist b/win/make_mariadb_win_dist
index d976909f3b1..8643fea61af 100644
--- a/win/make_mariadb_win_dist
+++ b/win/make_mariadb_win_dist
@@ -28,23 +28,36 @@ VER=`cat configure.in |
echo Version string: $VER.
-ZIPNAME=mariadb-$VER-win32-noinstall
-ZIPFILE="$ZIPNAME.zip"
-sh -x scripts/make_win_bin_dist $ZIPNAME
+# Remove '-maria-' from version number
+VER_NO_MARIA=${VER/maria-/}
+
+# We want the final zip to be named like this:
+# mariadb-noinstall-5.1.38-win32.zip
+ZIPNAME=mariadb-noinstall-$VER_NO_MARIA-win32
+ZIPFILE=$ZIPNAME.zip
+
+# The top directory inside the zip should be called like this:
+# mariadb-5.1-38-win32
+ZIPCONTENT=mariadb-$VER_NO_MARIA-win32
+
+# This will make $ZIPCONTENT.zip
+sh -x scripts/make_win_bin_dist $ZIPCONTENT
+
+mv $ZIPCONTENT.zip $ZIPFILE
rm -rf unpack
mkdir unpack
cd unpack
wget -O base.list.gz \
-http://askmonty.org/wiki/images/6/6c/Mariadb-5.1-pre-beta-file-list.txt.gz
+http://askmonty.org/wiki/images/5/57/Mariadb-5.1-pre-beta-file-list-r2.txt.gz
gunzip base.list.gz
unzip ../$ZIPFILE
(cd $ZIPNAME; /bin/find . | sort ) > new.list
-set +x
+
diff -u base.list new.list || true
RES=$?
-set -x
+
cd ..
rm -rf unpack