svn commit: r51021 - head/share/tools

Wolfram Schneider wosch at FreeBSD.org
Sun Oct 1 19:47:16 UTC 2017


Author: wosch
Date: Sun Oct  1 19:47:14 2017
New Revision: 51021
URL: https://svnweb.freebsd.org/changeset/doc/51021

Log:
  replace perl with sed

Modified:
  head/share/tools/webupdate

Modified: head/share/tools/webupdate
==============================================================================
--- head/share/tools/webupdate	Sun Oct  1 19:39:38 2017	(r51020)
+++ head/share/tools/webupdate	Sun Oct  1 19:47:14 2017	(r51021)
@@ -159,7 +159,7 @@ cd $BUILDDIR/head || exit 1;
 # get latest revision
 LATESTREVISION=$LOGDIR/LATESTREVISION
 make -C en_US.ISO8859-1/articles/pam/ SRCS="$(pwd)" -V LATESTREVISION | \
-  perl -npe 's,--stringparam\s+,\n,g' > $LATESTREVISION
+  sed -E 's/--stringparam[ ]+/!/g' | tr '!' '\n' > $LATESTREVISION
 
 time make ${BUILDARGS} p-all >> $LOGFILE 2>&1 ||
 	(cat $LATESTREVISION >> $LOGFILE


More information about the svn-doc-all mailing list