summaryrefslogtreecommitdiff
path: root/Build-tools/Do-patch-file
diff options
context:
space:
mode:
authorunknown <monty@work.mysql.com>2000-09-07 14:43:46 +0200
committerunknown <monty@work.mysql.com>2000-09-07 14:43:46 +0200
commit403c2d9f9844b1ac201c4376e67c4f27d240666f (patch)
treece4a2ab6c39fb17a22c17c945fc26fab33a5f4fd /Build-tools/Do-patch-file
parente7ab159a75662aa7845715b8217cef88b74b77c0 (diff)
downloadmariadb-git-403c2d9f9844b1ac201c4376e67c4f27d240666f.tar.gz
Updates for 3.23.24 build
Build-tools/Do-all-build-steps: Fix privileges for tables Build-tools/Do-patch-file: Fix for move to bk
Diffstat (limited to 'Build-tools/Do-patch-file')
-rwxr-xr-xBuild-tools/Do-patch-file17
1 files changed, 8 insertions, 9 deletions
diff --git a/Build-tools/Do-patch-file b/Build-tools/Do-patch-file
index f5f2910bc71..a834b312fc2 100755
--- a/Build-tools/Do-patch-file
+++ b/Build-tools/Do-patch-file
@@ -8,15 +8,16 @@ esac
PVER=$1;
VER=`grep SERVER_VERSION include/mysql_version.h | cut -d'"' -f2`
+NEWDIR="binary"
NEW="mysql-$VER.tar.gz"
OLD="mysql-$PVER.tar.gz"
RESULT="mysql-$PVER-$VER.patch.gz"
-PATCH_DIR=/my/web/Site/html/Downloads/Patches
-RESULT_DIR=/my/web/Site/html/Downloads/MySQL-3.23
+PATCH_DIR=/my/web/Downloads-live/Patches
+RESULT_DIR=/my/web/Downloads-live/MySQL-3.23
-if test ! -f $NEW
+if test ! -f $NEWDIR/$NEW
then
- echo "$NEW doesn't exist";
+ echo "$NEWDIR/$NEW doesn't exist";
exit 1;
fi
@@ -28,14 +29,12 @@ fi
mkdir patch
cd patch
-gtar xfz ../$NEW
+gtar xfz ../$NEWDIR/$NEW
gtar xfz $RESULT_DIR/$OLD
cd mysql-$PVER
diff --context --new-file --recursive . ../mysql-$VER | gzip -9 > ../../$RESULT
cd ../..
/bin/rm -rf patch
-#chown mysql $RESULT $NEW binary/*
-chmod a+r,o-w $RESULT $NEW binary/*
+chmod a+r,o-w $RESULT binary/*
mv $RESULT $PATCH_DIR
-mv $NEW $RESULT_DIR
-cp binary/* NEW-RPMS/* $RESULT_DIR
+cp binary/* $RESULT_DIR