add target "eolspace" to makefil to remove trailing newlines from all source files
authorLennart Poettering <lennart@poettering.net>
Tue, 29 May 2007 17:16:24 +0000 (17:16 +0000)
committerLennart Poettering <lennart@poettering.net>
Tue, 29 May 2007 17:16:24 +0000 (17:16 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1464 fefdeb5f-60dc-0310-8127-8f9354f1896f

Makefile.am

index 1b77187..abc3d77 100644 (file)
@@ -45,4 +45,7 @@ homepage: all dist doxygen
 doxygen:
        $(MAKE) -C doxygen doxygen
 
+eolspace:
+       find \( -name '*.c' -o -name '*.h' -o -name 'Makefile.am' \) -exec perl -i -pe 's/\s+\n$$/\1\n/;' \{\} \;
+
 .PHONY: homepage distcleancheck doxygen