]>
git.wh0rd.org - home.git/blob - .bin/diff-highlight
5 SCRIPT
="$(readlink -f "$0")"
6 TARGET
="${SCRIPT}.real"
9 # Some (old?) versions of git provided the compiled script.
10 d
="/usr/share/doc/git/contrib/diff-highlight"
11 if [ -x "${d}/diff-highlight" ] ; then
12 exec "${d}/diff-highlight"
15 # See if we need to bootstrap first.
16 if [ ! -x "${TARGET}" ] && [ -e "${d}" ] ; then
18 echo "#!/usr/bin/env perl"
19 cat "${d}/DiffHighlight.pm" "${d}/diff-highlight.perl"
21 chmod a
+rx
"${TARGET}"
24 # If we've already bootstrapped, use it.
25 if [ -x "${TARGET}" ] ; then
28 # Fallback so .gitconfig setings always work.