From 5c23bd10663f99105ae9aed35c65c5a4cd897fb5 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 27 Jul 2013 17:55:10 -0400 Subject: hash_name(): Hash src-* with fewer collisions. --- diff --git a/lib/dir.sh b/lib/dir.sh index 32c92fd..b72d786 100644 --- a/lib/dir.sh +++ b/lib/dir.sh @@ -24,6 +24,8 @@ hash_name() if [ "x${name}" != "x${name#lib?}" ]; then hash="$(printf '%s\n' "${name}" | sed 's/^\(lib.\).*$/\1/')" + elif [ "x${name}" != "x${name#src-?}" ]; then + hash="$(printf '%s\n' "${name}" | sed 's/^\(src-.\).*$/\1/')" else hash="$(printf '%s\n' "${name}" | sed 's/^\(.\).*$/\1/')" fi -- cgit v0.9.1