QUOTE: Let your heart guide you always.

build.sh - poppy - A feature-rich Minecraft plugin which enhances gaming experience

poppy

A feature-rich Minecraft plugin which enhances gaming experience
git clone git@soophie.de:/srv/git/poppy
log | files | refs | readme

build.sh (770B)


      1 #!/bin/bash
      2 
      3 if [[ "$OSTYPE" == "linux-gnu" || "$OSTYPE" == "darwin" ]]; then
      4   cpdl=":"
      5 else
      6   cpdl=";"
      7 fi
      8 
      9 if [[ "$1" == "--debug" ]]; then
     10   javac -cp "./libs/bungeecord-chat-1.20-R0.2.jar${cpdl}./libs/spigot-api-1.21.1-R0.1-20240831.215322-16.jar" src/poppy/*.java src/poppy/modules/*.java -d build 2>&1
     11   if [ $? -ne 0 ]; then
     12     rm -rf ./build
     13     exit 0
     14   fi
     15   jar cvfm poppy.jar res/MANIFEST.MF -C res plugin.yml -C build poppy
     16   rm -rf ./build
     17 else
     18   javac -cp "./libs/bungeecord-chat-1.20-R0.2.jar${cpdl}./libs/spigot-api-1.21.1-R0.1-20240831.215322-16.jar" src/poppy/*.java src/poppy/modules/*.java -d build
     19   if [ $? -ne 0 ]; then
     20     rm -rf ./build
     21     exit 1
     22   fi
     23   jar cvfm poppy.jar res/MANIFEST.MF -C res plugin.yml -C build poppy
     24   rm -rf ./build
     25 fi
     26