improved install scripts

This commit is contained in:
MrBesen 2020-03-30 10:44:38 +02:00
parent c9f68fb734
commit 74935055d0
Signed by: MrBesen
GPG Key ID: 596B2350DCD67504
4 changed files with 15 additions and 7 deletions

View File

@ -19,6 +19,12 @@ installplugins: plugins
install: $(INSTALLDIR)$(NAME)
uninstall:
sudo rm -f $(INSTALLDIR)$(NAME)
link:
sudo ln -s $(realpath $(BUILDDIR)$(NAME)) $(INSTALLDIR)
$(INSTALLDIR)$(NAME): $(BUILDDIR)$(NAME)
cp $(BUILDDIR)$(NAME) $(INSTALLDIR)
@ -39,6 +45,6 @@ $(BUILDDIR):
createhfiles:
$(RM) -r $(INCDIR)
javah -d $(INCDIR) -classpath $(BUILDDIR)classes/:$(HOME)/.m2/repository/org/bukkit/craftbukkit/1.7.10-R0.1-SNAPSHOT/craftbukkit-1.7.10-R0.1-SNAPSHOT.jar de.mrbesen.cppplugins.CppPlugin
javah -d $(INCDIR) -classpath $(BUILDDIR)classes/:testserver/spigot-1.12.2.jar de.mrbesen.cppplugins.CppPlugin
.PHONY: createhfiles clean plugins
.PHONY: createhfiles clean plugins

View File

@ -23,4 +23,4 @@ cp target/Cppplugin-0.1-SNAPSHOT-final.jar testserver/plugins/
#start server
cd testserver
java -verbose:jni -jar spigot-1.12.2.jar
java -verbose:jni -jar spigot-1.12.2.jar

View File

@ -1,5 +1,5 @@
#!/bin/sh
#This script basicly just downloads spigot
#This script basicly just downloads spigot and sets it up as a testserver
server="testserver/"
buildtools="${server}buildtools/"

View File

@ -1,9 +1,11 @@
#!/bin/bash
old=$(pwd)
cd $(dirname $0)
installdir="../testserver/plugins/"
mkdir -p "$installdir"
folders=$(ls -F | grep "/")
for f in $folders; do
echo cp $f*.so ../testserver/plugins/
cp $f*.so ../testserver/plugins/
echo cp $f*.so "$installdir"
cp $f*.so "$installdir"
done
cd $old
cd $old