diff options
author | jlam <jlam@pkgsrc.org> | 2006-07-14 16:17:08 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2006-07-14 16:17:08 +0000 |
commit | 6fd7abf147399f0c63384510d3d722e07fd82557 (patch) | |
tree | 8cd21d808b8047fcf13fba7f820835d952d664a0 /mk/checksum | |
parent | 80fb46b42a3c96798d5126d1675af3d36e15216c (diff) | |
download | pkgsrc-6fd7abf147399f0c63384510d3d722e07fd82557.tar.gz |
Avoid using # and % to strip prefix/suffix from variable values -- not
enough agreement on how that should work amongst Bourne shell variants.
Diffstat (limited to 'mk/checksum')
-rwxr-xr-x | mk/checksum/checksum | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mk/checksum/checksum b/mk/checksum/checksum index 4255f9d5d52..f25941a7b5b 100755 --- a/mk/checksum/checksum +++ b/mk/checksum/checksum @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: checksum,v 1.6 2006/07/13 16:44:14 jlam Exp $ +# $NetBSD: checksum,v 1.7 2006/07/14 16:17:08 jlam Exp $ # # Copyright (c) 2006 The NetBSD Foundation, Inc. # All rights reserved. @@ -131,9 +131,8 @@ fi eval "tmp=\"\$_alg_${d_alg}\"" ${TEST} -n "$tmp" || eval "_alg_${d_alg}=\"$files\"" - d_file="${d_file#\(}"; d_file="${d_file%\)}" for file in $files; do - ${TEST} "$d_file" = "$file" || continue + ${TEST} "$d_file" = "($file)" || continue eval "tmp=\"\$_alg_${d_alg}\"" case "$tmp" in |