Some fixes towards 0.2.37-pre5
[fw/sdcc] / sim / ucsim / Makefile
index a7f368c9c091e4c8ef8c6520270d8de19e6bae98..5b69d9937fd1444b5a74bfcb1b63f64922057222 100644 (file)
@@ -116,6 +116,31 @@ dep:
 putcopyright:
        'put(c)' -s $(STARTYEAR) *.cc *.h *.y *.l
 
+start:
+       date '+%Y.%m.%d-%H:%M' >.start
+
+newer: distclean
+       @if [ -f .start ]; then \
+         tar cvf - \
+           `find . -newer .start -type f -print` |\
+         gzip -9c >ucsim-newer-`cat .start`_`date '+%Y.%m.%d-%H:%M'`_`hostname`.tgz; \
+       else \
+         echo ".start file not found.\n"; \
+         exit 1; \
+       fi
+
+print-newer:
+       @if [ -f .start ]; then \
+         find . -newer .start -type f -print ;\
+       else \
+         echo ".start file not found.\n" ;\
+         exit 1 ;\
+       fi
+
+lines:
+       @find . \( -name '*.[ch]' -o -name '*.cc' -o -name '*.hh' \) \
+       -exec cat {} \; | clines
+
 
 # Remaking configuration
 # ----------------------