- cp -r doc/webserver/user-manual $(DEBDIR)/usr/share/doc/privoxy/
- cp -r doc/webserver/faq $(DEBDIR)/usr/share/doc/privoxy/
- cp -r doc/webserver/developer-manual $(DEBDIR)/usr/share/doc/privoxy/
-
+# Remove CVS tags and trailing spaces from config files:
+ find $(DEBDIR)/etc/privoxy -type f \
+ | xargs grep -l '\$$[A-Z][^$$]*:[^$$]*\$$' \
+ | while read f; do \
+ sed -e 's/\$$\(Id: [^$$]*,v\)[^$$]*\$$/\1/' \
+ -e 's/\$$\(Source: [^$$]*\)\$$/\1/' \
+ -e 's/\$$\(Log: [^$$]*\)\$$/\1/' \
+ -e 's/ *$$//' < $$f > $$f.new; \
+ mv -f $$f.new $$f; \
+ done