summaryrefslogtreecommitdiff
path: root/mk/check
diff options
context:
space:
mode:
authorrillig <rillig>2007-11-28 17:00:04 +0000
committerrillig <rillig>2007-11-28 17:00:04 +0000
commit468431c2691b1c5e8ef6c4f1e91ddc3cd4782efc (patch)
tree84c9992c0db45c7f2d0ba7b396054e3c3b2dd905 /mk/check
parent451ec91989ad8059cb6d51bdf42d376523d14960 (diff)
downloadpkgsrc-468431c2691b1c5e8ef6c4f1e91ddc3cd4782efc.tar.gz
Print a warning for every file that has /bin/sh as interpreter, but only
on Solaris.
Diffstat (limited to 'mk/check')
-rw-r--r--mk/check/check-portability.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/mk/check/check-portability.sh b/mk/check/check-portability.sh
index 19b955bb291..8b7106920d4 100644
--- a/mk/check/check-portability.sh
+++ b/mk/check/check-portability.sh
@@ -1,4 +1,4 @@
-# $NetBSD: check-portability.sh,v 1.6 2007/01/02 17:58:11 rillig Exp $
+# $NetBSD: check-portability.sh,v 1.7 2007/11/28 17:00:04 rillig Exp $
#
# This program checks all files in the current directory and any
# subdirectories for portability issues that are likely to result in
@@ -55,6 +55,11 @@ find * -type f -print 2>/dev/null \
case "$firstline" in
"#!"*"/bin/sh")
check_shell "$fname"
+ case "$opsys" in
+ SunOS-*)
+ echo "WARNING: [check-portability.sh] $fname has /bin/sh as interpreter, which is horribly broken on Solaris." 1>&2
+ ;;
+ esac
;;
esac
done