Skip to content
This repository has been archived by the owner on Feb 25, 2024. It is now read-only.

Clone Homebrew julia deps bottles regularly #13

Closed
staticfloat opened this issue Jan 4, 2015 · 4 comments
Closed

Clone Homebrew julia deps bottles regularly #13

staticfloat opened this issue Jan 4, 2015 · 4 comments

Comments

@staticfloat
Copy link
Member

See original comment, essentially we need to loop over brew deps --HEAD julia, call brew fetch --force-bottle $dep, parse the output for downloaded bottle, ensure that bottle is uploaded to AWS, if not, upload the new one.

For parsing out downloaded location, this seems to work well:

$ brew fetch --force-bottle gcc | grep -i downloaded | cut -d-f2- | xargs echo
/Library/Caches/Homebrew/gcc-4.9.2_1.yosemite.bottle.tar.gz

To download bottles of different platforms, we can parse out download URL and replace it with our own new platforms:

$ brew fetch --force-bottle gcc | grep Downloading | awk '{ print $3 }' | sed -e "s/yosemite/mountain_lion/"
https://downloads.sf.net/project/machomebrew/Bottles/gcc-4.9.2_1.mountain_lion.bottle.tar.gz

To figure out what bottles need to be uploaded, we can just [[ -z "$(aws ls bucketname -l | grep bottle_filename)" ]].

@tkelman
Copy link
Contributor

tkelman commented Jan 4, 2015

brew deps --HEAD julia

@staticfloat
Copy link
Member Author

👍

@staticfloat
Copy link
Member Author

Ref Homebrew/legacy-homebrew#35586

@staticfloat
Copy link
Member Author

Not doing this since we now have the caching server.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants