Skip to content

Instantly share code, notes, and snippets.

View xmarcos's full-sized avatar
🚀
🇦🇷 → 🇨🇱

Marcos Sader xmarcos

🚀
🇦🇷 → 🇨🇱
View GitHub Profile
@xmarcos
xmarcos / gist:4636759
Created January 25, 2013 18:34
If the "Standard ML of New Jersey" is installed it will return the path of the last version found otherwise an empty string. The script works on the assumption that SML/NJ was installed using the official installer, and the root directory is the default /usr/local/smlnj http://www.smlnj.org/dist/working/110.75/NOTES/MACOSXINSTALL Created because…
#!/bin/bash
#
# If the "Standard ML of New Jersey" is installed it will return the path of
# the last version found otherwise an empty string.
#
# The script works on the assumption that SML/NJ was installed using the
# official installer, and the root directory is the default /usr/local/smlnj
# http://www.smlnj.org/dist/working/110.75/NOTES/MACOSXINSTALL
#
# find /usr/local/smlnj-*/bin -type d -maxdepth 0 | sort -nr | head -n1