diff options
Diffstat (limited to 'makePatches.sh')
-rwxr-xr-x | makePatches.sh | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/makePatches.sh b/makePatches.sh index 8dd725d6..8f841a4e 100755 --- a/makePatches.sh +++ b/makePatches.sh @@ -10,12 +10,5 @@ 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 - outName=$(echo nms-patches/"$(echo $file | cut -d. -f1)".patch) - patchNew=$(diff -u $1/net/minecraft/server/$file src/main/java/net/minecraft/server/$file) - patchCut=$(echo "$patchNew" | tail -n +3) - patchOld=$(cat "$outName" | tail -n +3) - if [ "$patchCut" != "$patchOld" ] ; then - echo "$outName changed" - echo "$patchNew" > "$outName" - fi + diff -u $1/net/minecraft/server/$file src/main/java/net/minecraft/server/$file | tail -n +3 > nms-patches/"$(echo $file | cut -d. -f1)".patch done |