#!/bin/sh # Depuis le PC : envoie les sources sur cornafserver (~/staging/GastinelMindPNJ), compile, rapatrie le jar dans build-out/. set -e cd "$(dirname "$0")" tar czf /tmp/gastinelmind-src.tgz --exclude=build --exclude=.gradle --exclude=build-out --exclude=run . scp /tmp/gastinelmind-src.tgz cornafserver:gastinelmind-src.tgz ssh cornafserver 'set -e; rm -rf "$HOME/staging/GastinelMindPNJ"; mkdir -p "$HOME/staging/GastinelMindPNJ"; tar xzf "$HOME/gastinelmind-src.tgz" -C "$HOME/staging/GastinelMindPNJ"; rm "$HOME/gastinelmind-src.tgz"; cd "$HOME/staging/GastinelMindPNJ" && sh build-sur-cornafserver.sh' mkdir -p build-out scp 'cornafserver:staging/GastinelMindPNJ/build/libs/gastinelmind-neoforge-1.21.1-1.1.0.jar' build-out/ ls -l build-out