Skip to content

Commit

Permalink
[HL] Update wrapper script for linux \& mac
Browse files Browse the repository at this point in the history
  • Loading branch information
RoiArthurB committed Sep 10, 2021
1 parent f9f09e1 commit 67740f8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
6 changes: 3 additions & 3 deletions travis/jdk/linux/gama-headless.sh
Expand Up @@ -16,16 +16,16 @@ done

workspaceCreate=0
case "$@" in
*-help*|*-version*|*-validate*|*-failed*|*-xml*)
*-help*|*-version*|*-validate*|*-failed*|*-xml*|*-batch*)
workspaceCreate=1
;;
esac


echo "******************************************************************"
echo "* GAMA version 1.8.1 *"
echo "* GAMA version 1.8.2 *"
echo "* http://gama-platform.org *"
echo "* (c) 2007-2020 UMI 209 UMMISCO IRD/SU & Partners *"
echo "* (c) 2007-2021 UMI 209 UMMISCO IRD/SU & Partners *"
echo "******************************************************************"
passWork=.workspace
# w/ output folder
Expand Down
11 changes: 5 additions & 6 deletions travis/jdk/mac/gama-headless.sh
Expand Up @@ -16,16 +16,16 @@ done

workspaceCreate=0
case "$@" in
*-help*|*-version*|*-validate*|*-failed*|*-xml*)
*-help*|*-version*|*-validate*|*-failed*|*-xml*|*-batch*)
workspaceCreate=1
;;
esac


echo "******************************************************************"
echo "* GAMA version 1.8.1 *"
echo "* GAMA version 1.8.2 *"
echo "* http://gama-platform.org *"
echo "* (c) 2007-2020 UMI 209 UMMISCO IRD/SU & Partners *"
echo "* (c) 2007-2021 UMI 209 UMMISCO IRD/SU & Partners *"
echo "******************************************************************"
passWork=.workspace
# w/ output folder
Expand All @@ -35,14 +35,13 @@ if [ $workspaceCreate -eq 0 ]; then
mkdir ${@: -1}
fi
# create workspace in output folder
# `expr` use is to remove whitespace from MacOS's result
passWork=${@: -1}/.workspace$(find ${@: -1} -name ".workspace*" | expr $(wc -l))
passWork=${@: -1}/.workspace$(find ${@: -1} -name ".workspace*" | wc -l)
mkdir -p $passWork

# w/o output folder
else
# create workspace in current folder
passWork=${@: -1}/.workspace$(find ${@: -1} -name ".workspace*" | expr $(wc -l))
passWork=.workspace$(find ./ -maxdepth 1 -name ".workspace*" | wc -l)
fi

if ! "$( dirname "${BASH_SOURCE[0]}" )"/../jdk/Contents/Home/bin/java -cp "$( dirname "${BASH_SOURCE[0]}" )"/../Eclipse/plugins/org.eclipse.equinox.launcher*.jar -Xms512m -Xmx$memory -Djava.awt.headless=true org.eclipse.core.launcher.Main -application msi.gama.headless.id4 -data $passWork "$@"; then
Expand Down

0 comments on commit 67740f8

Please sign in to comment.