├── Makefile ├── README ├── fetch-all.sh ├── fetch.sh ├── footer.html ├── gitify.rb ├── gitify └── xref.sh ├── header.html └── mirror.rb /Makefile: -------------------------------------------------------------------------------- 1 | index.html: header.html projects.html footer.html 2 | cat header.html projects.html footer.html | sed -e 's/%DATE%/'"`date`"/g > $@ 3 | 4 | projects.html: gitify.rb 5 | ./gitify.rb 6 | 7 | -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- 1 | -*- Mode: auto-fill -*- 2 | 3 | These scripts helps you download and extract packages from 4 | opensource.apple.com or even maintain an extracted mirror with the 5 | latest open source packages from a Mac OS X release (10.8.1 by 6 | default). 7 | 8 | Note that the .tar.gz will not be saved; only its extracted contents. 9 | 10 | Prerequisite: 11 | 12 | sudo gem install plist minitar 13 | 14 | Usage: 15 | 16 | Run "./mirror.rb" to list all available packages. 17 | Run "./mirror.rb package1 package2 ..." to download package1, package2 18 | and so on. 19 | The script will skip packages that have already been downloaded. 20 | 21 | To mirror all packages in a certain OS X release from 22 | opensource.apple.com, you can run the following command: 23 | ./fetch.sh 10.8.1 24 | 25 | As of 10.8.1, the CF and WebKit2 packages are missing, and a full 26 | mirror uses about 2.1 GB of disk space. 27 | -------------------------------------------------------------------------------- /fetch-all.sh: -------------------------------------------------------------------------------- 1 | curl http://www.opensource.apple.com|grep 'href="/release/mac-os-x'|sed -e 's/.*mac-os-x-\([0-9][^/]*\)\/.*/\1/'|sort|xargs -n 20 -P 5 ./fetch.sh 2 | -------------------------------------------------------------------------------- /fetch.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | 3 | for release; do 4 | ./mirror.rb --release "$release" | grep -v '^#' | xargs ./mirror.rb --release "$release" 5 | [ ${PIPESTATUS[0]} -eq 0 ] && [ ${PIPESTATUS[0]} -eq 0 ] 6 | done -------------------------------------------------------------------------------- /footer.html: -------------------------------------------------------------------------------- 1 |
This page was generated on %DATE%
2 |