Some fixes towards 0.2.37-pre5
[fw/sdcc] / sim / ucsim / Makefile
index 23904e79e39430d0db2f4746020787d4257a517d..5b69d9937fd1444b5a74bfcb1b63f64922057222 100644 (file)
@@ -116,21 +116,24 @@ dep:
 putcopyright:
        'put(c)' -s $(STARTYEAR) *.cc *.h *.y *.l
 
+start:
+       date '+%Y.%m.%d-%H:%M' >.start
+
 newer: distclean
-       @if [ -f start ]; then \
+       @if [ -f .start ]; then \
          tar cvf - \
-           `find . -newer start -type f -print` |\
-         gzip -9c >ucsim-newer-`date '+%Y.%m.%d-%H:%M'`.tgz; \
+           `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"; \
+         echo ".start file not found.\n"; \
          exit 1; \
        fi
 
 print-newer:
-       @if [ -f start ]; then \
-         find . -newer start -type f -print ;\
+       @if [ -f .start ]; then \
+         find . -newer .start -type f -print ;\
        else \
-         echo "start file not found.\n" ;\
+         echo ".start file not found.\n" ;\
          exit 1 ;\
        fi