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
)
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
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"; \
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
) && \
23 rm -rf
$(HTDOCSDIR
)/*; \
25 echo
"--- rsync upload finished on `date` ---"; \