svn commit: r244505 - projects/portbuild/pxedust

Mark Linimon linimon at FreeBSD.org
Thu Dec 20 19:40:59 UTC 2012


Author: linimon (doc,ports committer)
Date: Thu Dec 20 19:40:58 2012
New Revision: 244505
URL: http://svnweb.freebsd.org/changeset/base/244505

Log:
  Add a convenience function.  Really instead this should be etcmerge or
  something.

Modified:
  projects/portbuild/pxedust/pxedust

Modified: projects/portbuild/pxedust/pxedust
==============================================================================
--- projects/portbuild/pxedust/pxedust	Thu Dec 20 19:30:34 2012	(r244504)
+++ projects/portbuild/pxedust/pxedust	Thu Dec 20 19:40:58 2012	(r244505)
@@ -39,7 +39,9 @@ COMMON_ENV="TARGET=${TARGET} TARGET_ARCH
 
 KERNCONF="PACKAGE_NODE_${TARGET}"
 
-LOGFILE="`pwd -P`/diff.out"
+WHEREFROM="`pwd -P`"
+LOGFILE="${WHEREFROM}/diff.out"
+FIXUP="${WHEREFROM}/fixup.sh"
 
 # using a src directory, populate a dst directory, or note differences
 setup () {
@@ -172,4 +174,7 @@ echo "finished."
 echo "  be sure to check ${LOGFILE} for things that have to be adjusted manually:"
 ls -al ${LOGFILE}
 
+grep "^diff" ${LOGFILE} | sed -e "s/^diff/cp -p/" > ${FIXUP}
+echo "  if the < files are a strict superset of the > files, you can just run 'sh ${FIXUP}' ."
+
 exit 0


More information about the svn-src-projects mailing list