Added diff generator script.

This commit is contained in:
Richard Helgeby
2010-04-03 17:04:48 +02:00
parent 482100d418
commit 187f3948cb
5 changed files with 32 additions and 2 deletions
Regular → Executable
+2 -2
View File
@@ -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-)
Regular → Executable
View File
Executable
+18
View File
@@ -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
+4
View File
@@ -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
-------------------
+8
View File
@@ -0,0 +1,8 @@
545
555
557
565
580
584
595
598