[Glibc-bsd-commits] r3639 - trunk/kfreebsd-9/debian
Robert Millan
rmh at alioth.debian.org
Thu Jul 28 20:43:22 UTC 2011
Author: rmh
Date: 2011-07-28 20:43:22 +0000 (Thu, 28 Jul 2011)
New Revision: 3639
Modified:
trunk/kfreebsd-9/debian/rules
Log:
tollerate comments after ifdef/ifndef
Modified: trunk/kfreebsd-9/debian/rules
===================================================================
--- trunk/kfreebsd-9/debian/rules 2011-07-28 12:15:46 UTC (rev 3638)
+++ trunk/kfreebsd-9/debian/rules 2011-07-28 20:43:22 UTC (rev 3639)
@@ -87,13 +87,13 @@
set -e ; find src/sys -type f | (while read i ; do \
sed -i $$i \
-e 's/defined\s*(\s*__FreeBSD__\s*)/1/g' \
- -e 's/#\s*ifdef\s*__FreeBSD__\s*$$/#if 1/g' \
- -e 's/#\s*ifndef\s*__FreeBSD__\s*$$/#if 0/g' \
+ -e 's/#\s*ifdef\s*__FreeBSD__\(\s\|$$\)/#if 1/g' \
+ -e 's/#\s*ifndef\s*__FreeBSD__\(\s\|$$\)/#if 0/g' \
-e 's/__FreeBSD__/$(major)/g' \
\
-e 's/defined\s*(\s*\(__linux__\|linux\)\s*)/0/g' \
- -e 's/#\s*ifdef\s*\(__linux__\|linux\)\s*$$/#if 0/g' \
- -e 's/#\s*ifndef\s*\(__linux__\|linux\)\s*$$/#if 1/g' \
+ -e 's/#\s*ifdef\s*\(__linux__\|linux\)\(\s\|$$\)/#if 0/g' \
+ -e 's/#\s*ifndef\s*\(__linux__\|linux\)\(\s\|$$\)/#if 1/g' \
; done)
install debian/gen-ld-u-options src/usr.sbin/config
More information about the Glibc-bsd-commits
mailing list