pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/check Made the code shorter.
details: https://anonhg.NetBSD.org/pkgsrc/rev/046652724a29
branches: trunk
changeset: 551414:046652724a29
user: rillig <rillig%pkgsrc.org@localhost>
date: Mon Dec 15 11:03:49 2008 +0000
description:
Made the code shorter.
The info messages can be omitted. At least for ELF binaries, the code is
sufficiently stable.
diffstat:
mk/check/check-stripped.mk | 19 ++++++++++---------
1 files changed, 10 insertions(+), 9 deletions(-)
diffs (35 lines):
diff -r 3fe68014598b -r 046652724a29 mk/check/check-stripped.mk
--- a/mk/check/check-stripped.mk Mon Dec 15 10:58:53 2008 +0000
+++ b/mk/check/check-stripped.mk Mon Dec 15 11:03:49 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: check-stripped.mk,v 1.1 2008/02/13 15:02:20 rillig Exp $
+# $NetBSD: check-stripped.mk,v 1.2 2008/12/15 11:03:49 rillig Exp $
#
# This file checks that after installation, all binaries conform to the
# setting of INSTALL_UNSTRIPPED.
@@ -43,16 +43,17 @@
${CHECK_STRIPPED_SKIP:@p@${p}) continue ;;@} \
*) ;; \
esac; \
- test -x "$$file" || continue; \
- if [ ! -r "$$file" ]; then \
- ${DELAYED_WARNING_MSG} "[check-stripped.mk] File \"${DESTDIR}${PREFIX}/$$file\" cannot be read."; \
+ dpfile=${DESTDIR}${PREFIX}/$$file; \
+ test -x "$$dpfile" || continue; \
+ if [ ! -r "$$dpfile" ]; then \
+ ${DELAYED_WARNING_MSG} "[check-stripped.mk] File \"$$dpfile\" cannot be read."; \
continue; \
fi; \
- ftype=`LANG=C LC_ALL=C ${FILE_CMD} ./$$file`; \
+ ftype=`LC_ALL=C ${FILE_CMD} ./$$dpfile`; \
case $$want_stripped,$$ftype in \
- yes,*:*\ ELF\ *,\ not\ stripped*) ${DELAYED_ERROR_MSG} "[check-stripped.mk] ${DESTDIR}${PREFIX}/$$file should be stripped, but is not.";; \
- no,*:*\ ELF\ *,\ stripped*) ${DELAYED_ERROR_MSG} "[check-stripped.mk] ${DESTDIR}${PREFIX}/$$file should NOT be stripped, but it is.";; \
- no,*:*\ ELF\ *,\ not\ stripped*) ${INFO_MSG} "[check-stripped.mk] ${DESTDIR}${PREFIX}/$$file is not stripped (ok).";; \
- yes,*:*\ ELF\ *,\ stripped*) ${INFO_MSG} "[check-stripped.mk] ${DESTDIR}${PREFIX}/$$file is stripped (ok).";; \
+ yes,*:*\ ELF\ *,\ not\ stripped*) ${DELAYED_ERROR_MSG} "[check-stripped.mk] $$dpfile should be stripped, but is not.";; \
+ no,*:*\ ELF\ *,\ stripped*) ${DELAYED_ERROR_MSG} "[check-stripped.mk] $$dpfile should NOT be stripped, but it is.";; \
+ no,*:*\ ELF\ *,\ not\ stripped*) : ${INFO_MSG} "[check-stripped.mk] $$dpfile is not stripped (ok).";; \
+ yes,*:*\ ELF\ *,\ stripped*) : ${INFO_MSG} "[check-stripped.mk] $$dpfile is stripped (ok).";; \
esac; \
done
Home |
Main Index |
Thread Index |
Old Index