Added diff generator script.
This commit is contained in:
parent
482100d418
commit
187f3948cb
4
build.sh
Normal file → Executable file
4
build.sh
Normal file → Executable 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-)
|
||||
|
0
changes.sh
Normal file → Executable file
0
changes.sh
Normal file → Executable file
18
diffgen.sh
Executable file
18
diffgen.sh
Executable 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
|
@ -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
patchlist.conf
Normal file
8
patchlist.conf
Normal file
@ -0,0 +1,8 @@
|
||||
545
|
||||
555
|
||||
557
|
||||
565
|
||||
580
|
||||
584
|
||||
595
|
||||
598
|
Loading…
Reference in New Issue
Block a user