diff options
-rw-r--r-- | Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -16,3 +16,9 @@ ARDMK_DIR ?= /usr/share/arduino $(ARDMK_DIR)/Arduino.mk: @if [ ! -r $(ARDMK_DIR)/Arduino.mk ]; then echo "You need to install the arduino-mk package"; fi @false + +fix-lines: + @for f in `ls -1 *.cpp *.h *.ino`; do \ + sed -e :a -e '/^\n*$$/{$$d;N;ba' -e '}' $$f > x; \ + mv x $$f; \ + done |