diff options
Diffstat (limited to 'makePatches.sh')
-rwxr-xr-x | makePatches.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/makePatches.sh b/makePatches.sh new file mode 100755 index 00000000..771e39f8 --- /dev/null +++ b/makePatches.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +if [ -z "$1" ] +then + echo "Please run this script again with the clean decompile sources as an argument. In most cases this will be ../work/decompile-XXXX" + exit +fi + +rm -f nms-patches/* + +for file in $(ls src/main/java/net/minecraft/server) +do + echo "Diffing $file" + dos2unix -q $1/net/minecraft/server/$file $1/net/minecraft/server/$file + diff -u $1/net/minecraft/server/$file src/main/java/net/minecraft/server/$file > nms-patches/"$(echo $file | cut -d. -f1)".patch +done |