#!/bin/sh

# Before you ask: yes, I know about -executable, but it only works for GNU find.
# Using -perm +111 should work solidly across platforms.
OPTIONS=$(find . -name matterhorn -type f -perm +111)
SORTED=$(ls -t ${OPTIONS})

# This is not elegant but I believe it's portable across shells. If there's a
# more elegant way to do it, please patch.
for OPTION in ${SORTED}; do
  exec "${OPTION}" ${1+$@}
done

echo "No executables found."


Add a handy command for running matterhorn when built with new-build.
Add a handy command for running matterhorn when built with new-build.
