mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-11 23:42:38 +00:00
mac/Makefile: upload the .dmg file with foolscap xfer-client.py instead of scp
This commit is contained in:
parent
7da70b8197
commit
a402a5a4fb
15
mac/Makefile
15
mac/Makefile
@ -17,16 +17,17 @@ diskimage:
|
|||||||
hdiutil internet-enable -yes Allmydata-$(VERSION).dmg
|
hdiutil internet-enable -yes Allmydata-$(VERSION).dmg
|
||||||
rm -r Allmydata-$(VERSION) allmydata-rw.dmg allmydata-ro.dmg
|
rm -r Allmydata-$(VERSION) allmydata-rw.dmg allmydata-ro.dmg
|
||||||
|
|
||||||
ifdef UPLOAD_DEST
|
ifdef UPLOAD_DEST_FURLFILE
|
||||||
|
# N.B.: xfer-client.py requires foolscap, so we hack up PYTHONPATH to improve
|
||||||
|
# the chances of finding it (using the one that we just built)
|
||||||
upload:
|
upload:
|
||||||
mkdir $(VERSION)
|
chmod a+r Allmydata-$(VERSION).dmg
|
||||||
cp Allmydata-$(VERSION).dmg $(VERSION)/
|
PYTHONPATH=$(PYTHONPATH):../support/lib/python2.5/site-packages \
|
||||||
chmod -R go+rx $(VERSION)/
|
python ../misc/xfer-client.py --furlfile $(UPLOAD_DEST_FURLFILE) \
|
||||||
rsync -av $(VERSION) $(UPLOAD_DEST)
|
Allmydata-$(VERSION).dmg
|
||||||
rm -r $(VERSION)
|
|
||||||
else
|
else
|
||||||
upload:
|
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/)
|
$(error UPLOAD_DEST_FURLFILE must be set when using upload target. e.g. make upload UPLOAD_DEST_FURLFILE=~/.upload.furl)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
|
Loading…
Reference in New Issue
Block a user