Archiviert
13
0
Dieses Repository wurde am 2024-12-25 archiviert. Du kannst Dateien ansehen und es klonen, aber nicht pushen oder Issues/Pull-Requests öffnen.
Paper-Old/makemcdevsrc.sh
Aikar b81488cf57 Add makemcdevsrc.sh
This script will build a folder in work/ that includes only
non imported NMS files. This folder can then be added to IDE as a
source to see unimported files without any duplicate class errors
2016-03-08 22:08:16 -05:00

26 Zeilen
724 B
Bash
Ausführbare Datei

#!/bin/bash
PS1="$"
workdir=work
minecraftversion=$(cat BuildData/info.json | grep minecraftVersion | cut -d '"' -f 4)
decompiledir=$workdir/$minecraftversion
nms=$decompiledir/net/minecraft/server
cb=src/main/java/net/minecraft/server
papernms=Paper-Server/src/main/java/net/minecraft/server
mcdevsrc=${decompiledir}/src/net/minecraft/server
rm -rf "${mcdevsrc}"
mkdir -p "${mcdevsrc}"
cp ${nms}/*.java "${mcdevsrc}/"
for file in "${nms}/"*
do
file=${file##*/}
# test if in Paper folder - already imported
if [ -f "${papernms}/${file}" ]; then
# remove from mcdevsrc folder
rm -f "${mcdevsrc}/${file}"
fi
done
echo "Built $decompiledir/src to be included in your project for src access";