intellij idea build setup in .idea

- use intellij
- remark this is optional, standalone build is still supported
This commit is contained in:
philippe lhardy
2020-09-08 09:40:58 +02:00
parent f97191858a
commit 84f803d3a3
8 changed files with 99 additions and 0 deletions

37
scripts/laby.sh Executable file
View File

@@ -0,0 +1,37 @@
#!/bin/bash
findmainjar()
{
for MJ in $(find . -name "*.jar")
do
echo "$MJ"
if [[ $MJ =~ artloglaby-(.*)\.jar ]]
then
VERSION=${BASH_REMATCH[1]}
echo "found $MJ version $VERSION"
MAINJAR=$MJ
fi
done
}
echo "Ce script a été conçu pour une distribution linux"
echo "This script was created for linux"
findmainjar
if [[ -z $MAINJAR ]]
then
echo "[ERREUR] aucun jar artloglaby-xxx.jar dans ce répertoire"
exit 1
fi
if which java
then
java -jar $MAINJAR
else
echo "Aucun java/jre de trouvé"
echo
echo "Pour ubuntu :"
echo "sudo apt install openjdk-8-jre"
fi