Skip to content
Snippets Groups Projects
Commit a3e577fc authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Make path to Fiji configurable and check it

parent 6bdbff2e
No related branches found
No related tags found
No related merge requests found
......@@ -5,9 +5,24 @@ set -e
cd $(dirname $0)/..
FIJI_APP="/opt/Fiji.app"
if [ -n "$1" ] ; then
FIJI_APP="$1"
fi
PLUGINS="$FIJI_APP/plugins/"
if ! [ -d "$PLUGINS" ] ; then
echo "ERROR: can't find Fiji plugins directory: [$PLUGINS]"
echo "Make sure to specify the *ABSOLUTE* path to a Fiji installation!"
exit 1
fi
### build
mvn
### deploy
find /opt/Fiji.app/plugins/ -name 'NoiSee-*.jar' | xargs --no-run-if-empty rm -v
cp -v $(find target -iname '*.jar' -and -not -iname '*-sources.jar') /opt/Fiji.app/plugins/
find "$PLUGINS" -name 'NoiSee-*.jar' | xargs --no-run-if-empty rm -v
cp -v $(find target -iname '*.jar' -and -not -iname '*-sources.jar') "$PLUGINS"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment