mirror of
https://github.com/mnauw/git-remote-hg.git
synced 2026-05-07 19:28:03 +02:00
Be more flexible about the path to sharness
Some folks might want to run a different version. Check all the common installation paths and support using a custom path to sharness.
This commit is contained in:
committed by
Mark Nauwelaerts
parent
7913920a97
commit
ec654d4682
@@ -1,6 +1,24 @@
|
||||
#!/bin/sh
|
||||
|
||||
. ./sharness.sh
|
||||
if [ -z "$SHARNESS" ] ; then
|
||||
for d in \
|
||||
"." \
|
||||
"$HOME/share/sharness" \
|
||||
"/usr/local/share/sharness" \
|
||||
"/usr/share/sharness"
|
||||
do
|
||||
f="$d/sharness.sh"
|
||||
if [ -f "$f" ] ; then
|
||||
SHARNESS="$f"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
if [ -z "$SHARNESS" ] || [ ! -f "$SHARNESS" ] ; then
|
||||
echo "sharness.sh not found" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
. "$SHARNESS"
|
||||
|
||||
test_set_prereq PYTHON
|
||||
|
||||
|
||||
Reference in New Issue
Block a user