From 187f3948cb9dac29dbcdd84d355c58e8429be375 Mon Sep 17 00:00:00 2001 From: Richard Helgeby Date: Sat, 3 Apr 2010 17:04:48 +0200 Subject: [PATCH] Added diff generator script. --- build.sh | 4 ++-- changes.sh | 0 diffgen.sh | 18 ++++++++++++++++++ docs/zr_3.0-b2-patch_changelog.txt | 4 ++++ patchlist.conf | 8 ++++++++ 5 files changed, 32 insertions(+), 2 deletions(-) mode change 100644 => 100755 build.sh mode change 100644 => 100755 changes.sh create mode 100755 diffgen.sh create mode 100644 patchlist.conf diff --git a/build.sh b/build.sh old mode 100644 new mode 100755 index 0db3d50..a2eeb36 --- a/build.sh +++ b/build.sh @@ -82,8 +82,8 @@ then cp $ZRTOOLS_SOURCE/zrtools.ext.so $EXTENSIONDIR cp $ZRTOOLS_SOURCE/zrtools.ext.dll $EXTENSIONDIR else - # Make diff file with changes since base revision. - sh changes.sh $PATCHREV "tip" + # Make diff files with config changes for each patch. + sh diffgen.sh # Copy only changed files. CHANGEDFILES=$(hg status --rev $PATCHREV | grep "cstrike/" | cut -d ' ' -f2 | cut -d '/' -f2-) diff --git a/changes.sh b/changes.sh old mode 100644 new mode 100755 diff --git a/diffgen.sh b/diffgen.sh new file mode 100755 index 0000000..fc7ce3d --- /dev/null +++ b/diffgen.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +PATCHLIST=patchlist.conf +DEST=docs/changes/ + +BASEREV="none" + +mkdir -p $DEST + +for TARGETREV in $(cat $PATCHLIST); do + if [ $BASEREV = "none" ] + then + BASEREV=$TARGETREV + else + hg diff -r $BASEREV -r $TARGETREV cstrike/cfg/* cstrike/addons/sourcemod/* > $DEST/r$TARGETREV.diff + BASEREV=$TARGETREV + fi +done diff --git a/docs/zr_3.0-b2-patch_changelog.txt b/docs/zr_3.0-b2-patch_changelog.txt index 2b4f50b..8e914a9 100644 --- a/docs/zr_3.0-b2-patch_changelog.txt +++ b/docs/zr_3.0-b2-patch_changelog.txt @@ -6,6 +6,10 @@ =============================================================================== +For detailed info about changes in configuration files, see diff-files in the +"changes" directory. They describe added and removed lines for each patch +released. If the file is empty there are no config changes in that patch. + 2009.12.11 - r545 ------------------- diff --git a/patchlist.conf b/patchlist.conf new file mode 100644 index 0000000..6d55ae6 --- /dev/null +++ b/patchlist.conf @@ -0,0 +1,8 @@ +545 +555 +557 +565 +580 +584 +595 +598