aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorAikar <[email protected]>2018-09-03 14:52:26 -0400
committerAikar <[email protected]>2018-09-03 14:52:26 -0400
commita289645aa9cafd10130266811be8b7017f2d8efd (patch)
treea23757e76033eaf06446c8c874cfb6189f54c14d /scripts
parentf100b5d92132b3a81f0176d981b25555ae34f1ae (diff)
downloadPaper-a289645aa9cafd10130266811be8b7017f2d8efd.tar.gz
Paper-a289645aa9cafd10130266811be8b7017f2d8efd.zip
[CI-SKIP] Fix the NMS Imports detecting our own files
the way I handled this on my fork was using the metadata in the git "stats" output of patches, however we don't include stats in the patch files for paper so the code didn't work. Changed the code to detect our own file editions inside of NMS to a method that works without stats. So we no longer need to manually add files to this list
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/importmcdev.sh8
1 files changed, 1 insertions, 7 deletions
diff --git a/scripts/importmcdev.sh b/scripts/importmcdev.sh
index c87a9f2467..2424410639 100755
--- a/scripts/importmcdev.sh
+++ b/scripts/importmcdev.sh
@@ -41,13 +41,7 @@ function import {
files=$(cat "$basedir/Spigot-Server-Patches/"* | grep "+++ b/src/main/java/net/minecraft/server/" | sort | uniq | sed 's/\+\+\+ b\/src\/main\/java\/net\/minecraft\/server\///g' | sed 's/.java//g')
-nonnms=$(cat "$basedir/Spigot-Server-Patches/"* | grep "create mode " | grep -Po "src/main/java/net/minecraft/server/(.*?).java" | sort | uniq | sed 's/src\/main\/java\/net\/minecraft\/server\///g' | sed 's/.java//g' ;
- # TODO: Fix non nms to work for Paper, hard code these for now
- echo "KeyedObject" ;
- echo "MCUtil" ;
- echo "PaperLightingQueue"
-)
-
+nonnms=$(grep "new file mode" -B 1 Spigot-Server-Patches/* | grep -v "new file mode" | grep -oE "net\/minecraft\/server\/.*.java" | grep -oE "[A-Za-z]+?.java$" --color=none | sed 's/.java//g')
function containsElement {
local e
for e in "${@:2}"; do