Skip to content

Commit

Permalink
fix: install n5-unique
Browse files Browse the repository at this point in the history
  • Loading branch information
axtimwalde committed Sep 4, 2024
1 parent 5430a5e commit 3852c0c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,28 @@ echo ' \' >> n5-equals
echo ' org.janelia.saalfeldlab.Equals "$@"' >> n5-equals

chmod a+x n5-equals

echo '#!/bin/bash' > n5-unique
echo '' >> n5-unique
echo "JAR=\$HOME/.m2/repository/org/janelia/saalfeldlab/n5-utils/${VERSION}/n5-utils-${VERSION}.jar" >> n5-unique
echo 'java \' >> n5-unique
echo " -Xmx${MEM}g \\" >> n5-unique
if [[ $(java -version 2>&1 | grep version) =~ 1.8 ]]
then
echo ' -XX:+UseConcMarkSweepGC \' >> n5-equals
fi
echo -n ' -cp $JAR:' >> n5-unique
echo -n $(cat cp.txt) >> n5-unique
echo ' \' >> n5-unique
echo ' org.janelia.saalfeldlab.Unique "$@"' >> n5-unique

chmod a+x n5-unique

rm cp.txt

mkdir -p $INSTALL_DIR
mv n5-view $INSTALL_DIR/
mv n5-copy $INSTALL_DIR/
mv n5-equals $INSTALL_DIR/
mv n5-unique $INSTALL_DIR/

0 comments on commit 3852c0c

Please sign in to comment.