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

4
build.sh Normal file → Executable file
View File

@ -82,8 +82,8 @@ then
cp $ZRTOOLS_SOURCE/zrtools.ext.so $EXTENSIONDIR cp $ZRTOOLS_SOURCE/zrtools.ext.so $EXTENSIONDIR
cp $ZRTOOLS_SOURCE/zrtools.ext.dll $EXTENSIONDIR cp $ZRTOOLS_SOURCE/zrtools.ext.dll $EXTENSIONDIR
else else
# Make diff file with changes since base revision. # Make diff files with config changes for each patch.
sh changes.sh $PATCHREV "tip" sh diffgen.sh
# Copy only changed files. # Copy only changed files.
CHANGEDFILES=$(hg status --rev $PATCHREV | grep "cstrike/" | cut -d ' ' -f2 | cut -d '/' -f2-) CHANGEDFILES=$(hg status --rev $PATCHREV | grep "cstrike/" | cut -d ' ' -f2 | cut -d '/' -f2-)

0
changes.sh Normal file → Executable file
View File

18
diffgen.sh Executable file
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

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 2009.12.11 - r545
------------------- -------------------

8
patchlist.conf Normal file
View File

@ -0,0 +1,8 @@
545
555
557
565
580
584
595
598