-
Notifications
You must be signed in to change notification settings - Fork 2
/
fetchDepthsFromMMSource.sh
31 lines (24 loc) · 1.27 KB
/
fetchDepthsFromMMSource.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
# get MM2 home
MM2_HOME=$1
EMU_VERSION="1.1"
if ! [ -d "$MM2_HOME" ]; then
echo "[$MM2_HOME] is not a directory."
else
# tests if mvn is installed
command -v mvn >/dev/null 2>&1 || { echo >&2 "Failed to call mvn, are you sure Maven is installed?";}
# tests if the Micro-Manager jars are present and deploy them
MMJ="$MM2_HOME/plugins/Micro-Manager/MMJ_.jar"
MMAcqEngine="$MM2_HOME/plugins/Micro-Manager/MMAcqEngine.jar"
MMCoreJ="$MM2_HOME/plugins/Micro-Manager/MMCoreJ.jar"
EMU="$MM2_HOME/mmplugins/Emu.jar"
if [ -f "$MMJ" ] && [ -f "$MMAcqEngine" ] && [ -f "$MMCoreJ" ] && [ -f "$EMU" ]; then
# deploy MM2 jars
mvn install:install-file -Dfile="$MMJ" -DgroupId=org.micromanager -DartifactId=MMJ_ -Dversion=2.0.1-SNAPSHOT -Dpackaging=jar
mvn install:install-file -Dfile="$MMAcqEngine" -DgroupId=org.micromanager -DartifactId=MMAcqEngine -Dversion=2.0.1-SNAPSHOT -Dpackaging=jar
mvn install:install-file -Dfile="$MMCoreJ" -DgroupId=org.micromanager -DartifactId=MMCoreJ -Dversion=2.0.1-SNAPSHOT -Dpackaging=jar
mvn install:install-file -Dfile="$EMU" -DgroupId=de.embl.rieslab -DartifactId=emu -Dversion=$EMU_VERSION -Dpackaging=jar
else
echo "Could not find MMJ_.jar, MMAcqEngine.jar, MMCoreJ.jar or Emu.jar. Did you input the correct directory?"
fi
fi