Permalink
Browse files

Add a rule in Makefile to remove trailing blank lines in ml/mli

  • Loading branch information...
1 parent 6527203 commit 0b3eeea3ee6d5656bc540283d8c00e4da8ddabbe @samoht samoht committed Jul 29, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 Makefile
View
6 Makefile
@@ -76,4 +76,8 @@ doc: compile
-I _obuild/opam-lib -I _obuild/cudf -I _obuild/dose \
-I _obuild/bat -I _obuild/unix -I _obuild/extlib \
-I _obuild/arg -I _obuild/graph \
- src/*.mli -html -d doc/html/
+ src/*.mli -html -d doc/html/
+
+trailing:
+ find src -name "*.ml*" -exec \
+ sed -i xxx -e :a -e "/^\n*$$/{$$d;N;ba" -e '}' {} \;

0 comments on commit 0b3eeea

Please sign in to comment.