2014-11-26 05:32:16 +08:00
|
|
|
#!/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
|
|
|
|
|
|
|
|
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
|
2014-11-29 06:54:14 +08:00
|
|
|
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
|
2014-11-26 05:32:16 +08:00
|
|
|
done
|