pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/pkginstall Replaced unreadable code with readable c...
details: https://anonhg.NetBSD.org/pkgsrc/rev/53a8899a9a74
branches: trunk
changeset: 537994:53a8899a9a74
user: rillig <rillig%pkgsrc.org@localhost>
date: Wed Jan 23 14:46:33 2008 +0000
description:
Replaced unreadable code with readable code by doing a little
substitution.
diffstat:
mk/pkginstall/bsd.pkginstall.mk | 16 +++++++++-------
1 files changed, 9 insertions(+), 7 deletions(-)
diffs (33 lines):
diff -r 55f6e0473fd5 -r 53a8899a9a74 mk/pkginstall/bsd.pkginstall.mk
--- a/mk/pkginstall/bsd.pkginstall.mk Wed Jan 23 14:30:59 2008 +0000
+++ b/mk/pkginstall/bsd.pkginstall.mk Wed Jan 23 14:46:33 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkginstall.mk,v 1.39 2008/01/23 14:12:32 rillig Exp $
+# $NetBSD: bsd.pkginstall.mk,v 1.40 2008/01/23 14:46:33 rillig Exp $
#
# This Makefile fragment is included by bsd.pkg.mk and implements the
# common INSTALL/DEINSTALL scripts framework. To use the pkginstall
@@ -243,15 +243,17 @@
.endfor
.for _entry_ in ${PKG_USERS}
-. if defined(USERGROUP_PHASE)
+. for e in ${_entry_:C/\:.*//}
+. if defined(USERGROUP_PHASE)
# Determine the numeric UID of each user.
USE_TOOLS+= perl
-PKG_UID.${_entry_:C/\:.*//}_cmd= \
+PKG_UID.${e}_cmd= \
if ${TEST} ! -x ${PERL5}; then ${ECHO} ""; exit 0; fi; \
- ${PERL5} -le 'print scalar getpwnam shift' ${_entry_:C/\:.*//}
-PKG_UID.${_entry_:C/\:.*//}?= ${PKG_UID.${_entry_:C/\:.*//}_cmd:sh:M*}
-. endif
-_PKG_USERS+= ${_entry_}:${PKG_UID.${_entry_:C/\:.*//}}:${PKG_GECOS.${_entry_:C/\:.*//}:Q}:${PKG_HOME.${_entry_:C/\:.*//}:Q}:${PKG_SHELL.${_entry_:C/\:.*//}:Q}
+ ${PERL5} -le 'print scalar getpwnam shift' ${e}
+PKG_UID.${e}?= ${PKG_UID.${e}_cmd:sh:M*}
+. endif
+_PKG_USERS+= ${_entry_}:${PKG_UID.${e}}:${PKG_GECOS.${e}:Q}:${PKG_HOME.${e}:Q}:${PKG_SHELL.${e}:Q}
+. endfor
.endfor
${_INSTALL_USERGROUP_DATAFILE}:
Home |
Main Index |
Thread Index |
Old Index