Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

universal figtree bash script #132

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

schellt
Copy link

@schellt schellt commented Jan 31, 2019

To have figtree in your $PATH you included a bash script that executes the jar file. Since there is no absolute path, it will not find figtree.jar. To avoid that every user needs to edit the script and write the absolute path I allowed myself to find the location of the bash script within itself.
The relative paths from the bash script to figtree.jar are different in the cloned repository and the release. The script should be like this to work within a release:

#!/bin/sh
FIGTREEPATH=`realpath $0 | sed 's/figtree$/\.\.\//'`
java -Xms64m -Xmx512m -jar ${FIGTREEPATH}lib/figtree.jar "$@"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant