]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
mac build: updates to respect UPLOAD_DEST argument to make
authorrobk-tahoe <robk-tahoe@allmydata.com>
Wed, 27 Feb 2008 00:03:53 +0000 (17:03 -0700)
committerrobk-tahoe <robk-tahoe@allmydata.com>
Wed, 27 Feb 2008 00:03:53 +0000 (17:03 -0700)
the make mac-upload target now requires an UPLOAD_DEST argument to be given,
which is the rsync destination (including trailing '/') to which the version
stamped directory containing the .dmg should be placed.  the account the
build is running as (e.g. 'buildslave') should have ssh access to the account
specified in that dest. one might also consider locking the key down to the
target directory by adding something like
command="rsync --server -vlogDtpr . /home/amduser/public_html/dist/mac-blah/"
to the corresponding authorized_key entry on the target machine.

Makefile
mac/Makefile

index ca4a1afc31925d10ba2b7f0bf6dae8817905981a..90b759c0b26726295b8530bcd5b271ef31f2e00b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -441,7 +441,7 @@ mac-dist:
        VERSION=$(VER) $(MAKE) -C mac diskimage
 
 mac-upload:
-       VERSION=$(VER) $(MAKE) -C mac upload
+       VERSION=$(VER) $(MAKE) -C mac upload UPLOAD_DEST=$(UPLOAD_DEST)
 
 mac-cleanup:
        VERSION=$(VER) $(MAKE) -C mac cleanup
index cb61447839aedfccf82bae8335e54ccc3baa25ea..37fd985b27e2d6cf93939d439f1849608d201246 100644 (file)
@@ -16,14 +16,20 @@ diskimage:
        hdiutil internet-enable -yes Allmydata-$(VERSION).dmg
        rm -r Allmydata-$(VERSION) allmydata-rw.dmg allmydata-ro.dmg
 
+ifdef UPLOAD_DEST
 upload:
        mkdir $(VERSION)
-       mv Allmydata-$(VERSION).dmg $(VERSION)/
+       cp Allmydata-$(VERSION).dmg $(VERSION)/
        chmod -R go+rx $(VERSION)/
-       rsync -av $(VERSION) amduser@svn.allmydata.com:/home/amduser/public_html/dist/tahoe/mac/
+       rsync -av $(VERSION) $(UPLOAD_DEST)
+       rm -r $(VERSION)
+else
+upload:
+       $(error UPLOAD_DEST must be set when using upload target. e.g. make upload UPLOAD_DEST=amduser@svn.allmydata.com:/home/amduser/public_html/dist/tahoe/mac-blah/)
+endif
 
 cleanup:
-       rm -r $(VERSION)
+       rm Allmydata-$(VERSION).dmg
 
 clean:
        rm -rf build dist