[Glibc-bsd-commits] r3514 - trunk/kfreebsd-9/debian

Robert Millan rmh at alioth.debian.org
Sat Jul 2 13:24:37 UTC 2011


Author: rmh
Date: 2011-07-02 13:24:37 +0000 (Sat, 02 Jul 2011)
New Revision: 3514

Modified:
   trunk/kfreebsd-9/debian/rules
Log:
Simplify regex using \s for whitespace.

Modified: trunk/kfreebsd-9/debian/rules
===================================================================
--- trunk/kfreebsd-9/debian/rules	2011-07-02 11:49:19 UTC (rev 3513)
+++ trunk/kfreebsd-9/debian/rules	2011-07-02 13:24:37 UTC (rev 3514)
@@ -86,19 +86,19 @@
 
 	set -e ; find src/sys -type f | (while read i ; do \
 		sed -i $$i \
-		-e 's/defined\( \|\t\)*(\( \|\t\)*__FreeBSD__\( \|\t\)*)/1/g' \
-		-e 's/#\( \|\t\)*ifdef\( \|\t\)*__FreeBSD__/#if 1/g' \
-		-e 's/#\( \|\t\)*ifndef\( \|\t\)*__FreeBSD__/#if 0/g' \
-		-e 's/defined\( \|\t\)*(\( \|\t\)*\(__linux__\|linux\)\( \|\t\)*)/0/g' \
-		-e 's/#\( \|\t\)*ifdef\( \|\t\)*\(__linux__\|linux\)/#if 0/g' \
-		-e 's/#\( \|\t\)*ifndef\( \|\t\)*\(__linux__\|linux\)/#if 1/g' \
+		-e 's/defined\s*(\s*__FreeBSD__\s*)/1/g' \
+		-e 's/#\s*ifdef\s*__FreeBSD__/#if 1/g' \
+		-e 's/#\s*ifndef\s*__FreeBSD__/#if 0/g' \
+		-e 's/defined\s*(\s*\(__linux__\|linux\)\s*)/0/g' \
+		-e 's/#\s*ifdef\s*\(__linux__\|linux\)/#if 0/g' \
+		-e 's/#\s*ifndef\s*\(__linux__\|linux\)/#if 1/g' \
 		-e 's/__FreeBSD__/$(major)/g' \
-		-e 's,#\( \|\t\)*include\( \|\t\)*<sys/device.h>,,g' \
-		-e 's,#\( \|\t\)*include\( \|\t\)*<dev/rndvar.h>,,g' \
-		-e 's,#\( \|\t\)*include\( \|\t\)*<sys/pool.h>,,g' \
-		-e 's,#\( \|\t\)*include\( \|\t\)*<netinet/ip_ipsp.h>,,g' \
-		-e 's,#\( \|\t\)*include\( \|\t\)*\(<\|"\)bpfilter.h\(>\|"\),,g' \
-		-e 's,#\( \|\t\)*include\( \|\t\)*\(<\|"\)pflog.h\(>\|"\),,g' \
+		-e 's,#\s*include\s*<sys/device.h>,,g' \
+		-e 's,#\s*include\s*<dev/rndvar.h>,,g' \
+		-e 's,#\s*include\s*<sys/pool.h>,,g' \
+		-e 's,#\s*include\s*<netinet/ip_ipsp.h>,,g' \
+		-e 's,#\s*include\s*\(<\|"\)bpfilter.h\(>\|"\),,g' \
+		-e 's,#\s*include\s*\(<\|"\)pflog.h\(>\|"\),,g' \
 	; done)
 
 	install debian/gen-ld-u-options src/usr.sbin/config




More information about the Glibc-bsd-commits mailing list