svn commit: r495191 - branches/2019Q1/Mk/Scripts

Bryan Drewery bdrewery at FreeBSD.org
Sat Mar 9 18:39:08 UTC 2019


Author: bdrewery
Date: Sat Mar  9 18:39:07 2019
New Revision: 495191
URL: https://svnweb.freebsd.org/changeset/ports/495191

Log:
  MFH: r495190
  
  Respect UID_FILES.
  
  Reported by:	dvl
  Tested by:	dvl
  Approved by:	portmgr (implicit)

Modified:
  branches/2019Q1/Mk/Scripts/check_leftovers.sh
Directory Properties:
  branches/2019Q1/   (props changed)

Modified: branches/2019Q1/Mk/Scripts/check_leftovers.sh
==============================================================================
--- branches/2019Q1/Mk/Scripts/check_leftovers.sh	Sat Mar  9 18:38:18 2019	(r495190)
+++ branches/2019Q1/Mk/Scripts/check_leftovers.sh	Sat Mar  9 18:39:07 2019	(r495191)
@@ -45,7 +45,10 @@ fi
 if [ -z "${CCACHE_DIR}" ]; then
 	CCACHE_DIR=$(make -C ${portdir} -VCCACHE_DIR)
 fi
-homedirs=$(awk -F: -v users="$(make -C ${portdir} -V USERS|sed -e 's, ,|,g;/^$/d;s,^,^(,;s,$,)$,')" 'users && $1 ~ users {print $9}' ${PORTSDIR}/UIDs|sort -u|sed -e "s|/usr/local|${PREFIX}|"|tr "\n" " ")
+if [ -z "${UID_FILES}" ]; then
+	UID_FILES=$(make -C ${portdir} -VUID_FILES)
+fi
+homedirs=$(awk -F: -v users="$(make -C ${portdir} -V USERS|sed -e 's, ,|,g;/^$/d;s,^,^(,;s,$,)$,')" 'users && $1 ~ users {print $9}' ${UID_FILES}|sort -u|sed -e "s|/usr/local|${PREFIX}|"|tr "\n" " ")
 plistsub_sed=$(mktemp -t plistsub_sed)
 trap "rm -f ${plistsub_sed}" EXIT 1
 make -C ${portdir} -VPLIST_SUB_SED | /bin/sh ${PORTSDIR}/Mk/Scripts/plist_sub_sed_sort.sh ${plistsub_sed}


More information about the svn-ports-all mailing list