summaryrefslogtreecommitdiff
path: root/cpprules.in
diff options
context:
space:
mode:
authorTilman Sauerbeck <tilman@code-monkey.de>2007-04-06 12:46:25 +0200
committerTilman Sauerbeck <tilman@code-monkey.de>2007-04-06 12:46:25 +0200
commita225a0be48770beb689d5ac5da97073634f7deab (patch)
tree9d9ab09798012f9a1b87b7674c32348ec06908e3 /cpprules.in
parent1c75a9479011e5f1ad01c950628d0ef5a302d8b6 (diff)
downloadxorg-lib-libX11-a225a0be48770beb689d5ac5da97073634f7deab.tar.gz
For nls/*.pre, allow people to comment lines by starting them with '##'.
This fixes a bunch of cpp warnings from nls/en_US.UTF-8/Compose.pre. Fixing that file would have been a larger diff, and using ## may be nicer to use anyway.
Diffstat (limited to 'cpprules.in')
-rw-r--r--cpprules.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpprules.in b/cpprules.in
index 12964fa8..b8857bae 100644
--- a/cpprules.in
+++ b/cpprules.in
@@ -24,5 +24,6 @@ CPP_SED_MAGIC = $(SED) -e '/^\# *[0-9][0-9]* *.*$$/d' \
-e '/^[ ]*XHASH/s/XHASH/\#/' \
-e '/\@\@$$/s/\@\@$$/\\/'
+# Allow people to comment out lines by starting them with '##'
.pre:
- $(RAWCPP) $(RAWCPPFLAGS) $(CPP_FILES_FLAGS) < $< | $(CPP_SED_MAGIC) > $@
+ $(SED) -e '/^\#\#/d' $< | $(RAWCPP) $(RAWCPPFLAGS) $(CPP_FILES_FLAGS) | $(CPP_SED_MAGIC) > $@