[ucsim] Implement [features:#769] Check writeability of output file when uart sends
[sdcc.git] / sdcc-build / lib / upload.mk
blobd386921f6e6e86229701cd8874af1b585914d622
1 # Makefile that uploades everything from $(HTDOCSDIR) to $(_SNAPSHOTDEST)
3 _DCFSNAPSHOTDIR=$(DCFHTDOCSDIR)/$(TARBALLBASE)
4 _DCFREGTESTDIR=$(DCFHTDOCSDIR)/$(REGTESTBASE)
5 _DCFCHANGELOGDIR=$(DCFHTDOCSDIR)/changelog_heads
7 # Location to copy the tarball to
8 _DCFSNAPSHOTDEST=$(DCFUSER)@$(DCFHOST):$(DCFHTDOCSDIR)
10 .PHONY: do-upload
11 do-upload:
12 # copy files to the destination
13 # make all files writable and searchable by group members on the destination
14 # and remove them from source
15 cd $(HTDOCSDIR); \
16 DIR_LIST=`find * -type d -print 2>/dev/null`; \
17 FILE_LIST=`find * -type f -print 2>/dev/null`; \
18 if test -n "$$FILE_LIST"; \
19 then \
20 echo "--- rsync upload started on `date` ---"; \
21 rsync --chmod=Dg+wx,Fg+w --perms --relative --include='*.exe' -e "ssh -p $(DCFPORT) -o StrictHostKeyChecking=no" --size-only $$FILE_LIST $(_DCFSNAPSHOTDEST) && \
22 { \
23 rm -rf $(HTDOCSDIR)/*; \
24 }; \
25 echo "--- rsync upload finished on `date` ---"; \