pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/check Print a warning for every file that has /bin/...
details: https://anonhg.NetBSD.org/pkgsrc/rev/71d389188ac0
branches: trunk
changeset: 535777:71d389188ac0
user: rillig <rillig%pkgsrc.org@localhost>
date: Wed Nov 28 17:00:04 2007 +0000
description:
Print a warning for every file that has /bin/sh as interpreter, but only
on Solaris.
diffstat:
mk/check/check-portability.sh | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r 95122271f566 -r 71d389188ac0 mk/check/check-portability.sh
--- a/mk/check/check-portability.sh Wed Nov 28 16:18:01 2007 +0000
+++ b/mk/check/check-portability.sh Wed Nov 28 17:00:04 2007 +0000
@@ -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 @@
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
Home |
Main Index |
Thread Index |
Old Index