indent all the rest of the code, and add some typedefs to indent.pro
[rrdtool.git] / Makefile.am
index 4bbab3e..4689aac 100644 (file)
@@ -47,4 +47,8 @@ site-tcl-install: all
 site-python-install: all
        cd bindings/python && $(PYTHON) setup.py install
 
+# find . -name "*.c" -or -name "*.h" | xargs perl -0777 -n -e 'while (s/typedef\s+(?:unsigned\s+|signed\s+|unival\s+)?\S+\s+\*?([^{}\s;(]+)//){print "-T$1\n"}'
+indent:
+       find . -name "*.c" -or -name "*.h" | xargs indent
+
 ##END##