Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 34 lines (22 sloc) 530 Bytes
#! /bin/bash
# this fixes the bad JAVA_HOME setting in /pkg/python-3.11.7-1/bin/imagej
set -e
PKG=imagej
VERSION=1.54f
BUILD=0
PREFIX=/pkg/$PKG-$VERSION-$BUILD
if [ -n "$TESTING" ]; then PREFIX=/scratch/local2/$USER/$PKG-$VERSION-$BUILD ; fi
mkdir -p $PREFIX
cat >$PREFIX/profile <<-EOF
PATH=$PREFIX/bin:\$PATH
EOF
. $PREFIX/profile
cd $PREFIX
mkdir -pv bin
cat >bin/imagej <<-'EOF'
#!/bin/sh
export JAVA_HOME=/pkg/openjdk-17.0.2.8-0
exec /pkg/python-3.11.7-1/bin/imagej.dist "$@"
EOF
chmod 0755 bin/imagej
exit