aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3f4c604..9445351 100644
--- a/Makefile
+++ b/Makefile
@@ -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