comparison makefile @ 3041:7a78f43d97c1

makefile: Prepare for improved nightly upload burst script If uploader and server are in different time zones, the dates might not match, so let the uploader specify the date to be used. Let the uploader specify the name as well, allowing burst to become a more generic tool.
author Tormod Volden <debian.tormod@gmail.com>
date Fri, 23 Jan 2015 23:35:28 +0100
parents 14b4f2791bb3
children 32191c9fe2cd
comparison
equal deleted inserted replaced
3040:3f25a36416a3 3041:7a78f43d97c1
82 nightly: clean hgupdate dskcopy 82 nightly: clean hgupdate dskcopy
83 $(MAKE) info > $(DSKDIR)/ReadMe 83 $(MAKE) info > $(DSKDIR)/ReadMe
84 $(ARCHIVE) nitros9project $(DSKDIR)/* 84 $(ARCHIVE) nitros9project $(DSKDIR)/*
85 scp nitros9project.zip $(SOURCEUSER),nitros9@web.sourceforge.net:/home/project-web/nitros9/htdocs/nitros9project-$(shell date +%Y%m%d).zip 85 scp nitros9project.zip $(SOURCEUSER),nitros9@web.sourceforge.net:/home/project-web/nitros9/htdocs/nitros9project-$(shell date +%Y%m%d).zip
86 ssh $(SOURCEUSER),nitros9@shell.sourceforge.net create 86 ssh $(SOURCEUSER),nitros9@shell.sourceforge.net create
87 ssh $(SOURCEUSER),nitros9@shell.sourceforge.net "./burst" 87 ssh $(SOURCEUSER),nitros9@shell.sourceforge.net "./burst nitros9project $(shell date +%Y%m%d)"
88 else 88 else
89 nightly: 89 nightly:
90 @echo "" 90 @echo ""
91 @echo "" 91 @echo ""
92 @echo "You need to set the SOURCEUSER variable" 92 @echo "You need to set the SOURCEUSER variable"
107 ifdef TESTSSHDIR 107 ifdef TESTSSHDIR
108 nightlytest: clean hgupdate dskcopy 108 nightlytest: clean hgupdate dskcopy
109 $(MAKE) info > $(DSKDIR)/ReadMe 109 $(MAKE) info > $(DSKDIR)/ReadMe
110 $(ARCHIVE) nitros9project $(DSKDIR)/* 110 $(ARCHIVE) nitros9project $(DSKDIR)/*
111 scp nitros9project.zip $(TESTSSHSERVER):$(TESTSSHDIR)/nitros9project-$(shell date +%Y%m%d).zip 111 scp nitros9project.zip $(TESTSSHSERVER):$(TESTSSHDIR)/nitros9project-$(shell date +%Y%m%d).zip
112 ssh $(TESTSSHSERVER) "./burst" 112 ssh $(TESTSSHSERVER) "./burst nitros9project $(shell date +%Y%m%d)"
113 else 113 else
114 nightlytest: 114 nightlytest:
115 @echo "" 115 @echo ""
116 @echo "" 116 @echo ""
117 @echo "You need to set the TESTSSHDIR variable" 117 @echo "You need to set the TESTSSHDIR variable"