close
Create a git repository for Mac OS X kernel xnu
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
#!/bin/bash # setup-xnu-git.sh function extract { rm ./* -rf wget http://www.opensource.apple.com/tarballs/xnu/$1 tar -xzf $1 rm $1 cp -r $2/* . rm -r $2 git add . git add -u git commit -m "$2" --author="$3" } mkdir xnu pushd xnu git init extract xnu-123.5.tar.gz xnu-123.5 "Apple Inc.<opensource@apple.com>" extract xnu-124.1.tar.gz xnu-124.1 "Apple Inc.<opensource@apple.com>" extract xnu-124.7.tar.gz xnu-124.7 "Apple Inc.<opensource@apple.com>" extract xnu-124.8.tar.gz xnu-124.8 "Apple Inc.<opensource@apple.com>" extract xnu-124.13.tar.gz xnu-124.13 "Apple Inc.<opensource@apple.com>" extract xnu-201.tar.gz xnu-201 "Apple Inc.<opensource@apple.com>" extract xnu-201.5.tar.gz xnu-201.5 "Apple Inc.<opensource@apple.com>" extract xnu-201.14.tar.gz xnu-201.14 "Apple Inc.<opensource@apple.com>" extract xnu-201.19.tar.gz xnu-201.19 "Apple Inc.<opensource@apple.com>" extract xnu-201.19.3.tar.gz xnu-201.19.3 "Apple Inc.<opensource@apple.com>" extract xnu-201.42.3.tar.gz xnu-201.42.3 "Apple Inc.<opensource@apple.com>" extract xnu-344.tar.gz xnu-344 "Apple Inc.<opensource@apple.com>" extract xnu-344.2.tar.gz xnu-344.2 "Apple Inc.<opensource@apple.com>" extract xnu-344.12.2.tar.gz xnu-344.12.2 "Apple Inc.<opensource@apple.com>" extract xnu-344.23.tar.gz xnu-344.23 "Apple Inc.<opensource@apple.com>" extract xnu-344.26.tar.gz xnu-344.26 "Apple Inc.<opensource@apple.com>" extract xnu-344.32.tar.gz xnu-344.32 "Apple Inc.<opensource@apple.com>" extract xnu-344.34.tar.gz xnu-344.34 "Apple Inc.<opensource@apple.com>" extract xnu-344.21.73.tar.gz xnu-344.21.73 "Apple Inc.<opensource@apple.com>" extract xnu-344.49.tar.gz xnu-344.49 "Apple Inc.<opensource@apple.com>" extract xnu-344.21.74.tar.gz xnu-344.21.74 "Apple Inc.<opensource@apple.com>" extract xnu-517.tar.gz xnu-517 "Apple Inc.<opensource@apple.com>" extract xnu-517.3.7.tar.gz xnu-517.3.7 "Apple Inc.<opensource@apple.com>" extract xnu-517.7.7.tar.gz xnu-517.7.7 "Apple Inc.<opensource@apple.com>" extract xnu-517.7.21.tar.gz xnu-517.7.21 "Apple Inc.<opensource@apple.com>" extract xnu-517.9.4.tar.gz xnu-517.9.4 "Apple Inc.<opensource@apple.com>" extract xnu-517.9.5.tar.gz xnu-517.9.5 "Apple Inc.<opensource@apple.com>" extract xnu-517.11.1.tar.gz xnu-517.11.1 "Apple Inc.<opensource@apple.com>" extract xnu-517.12.7.tar.gz xnu-517.12.7 "Apple Inc.<opensource@apple.com>" extract xnu-792.tar.gz xnu-792 "Apple Inc.<opensource@apple.com>" extract xnu-792.1.5.tar.gz xnu-792.1.5 "Apple Inc.<opensource@apple.com>" extract xnu-792.2.4.tar.gz xnu-792.2.4 "Apple Inc.<opensource@apple.com>" extract xnu-792.6.22.tar.gz xnu-792.6.22 "Apple Inc.<opensource@apple.com>" extract xnu-792.6.56.tar.gz xnu-792.6.56 "Apple Inc.<opensource@apple.com>" extract xnu-792.6.61.tar.gz xnu-792.6.61 "Apple Inc.<opensource@apple.com>" extract xnu-792.6.70.tar.gz xnu-792.6.70 "Apple Inc.<opensource@apple.com>" extract xnu-792.6.76.tar.gz xnu-792.6.76 "Apple Inc.<opensource@apple.com>" extract xnu-792.12.6.tar.gz xnu-792.12.6 "Apple Inc.<opensource@apple.com>" extract xnu-792.13.8.tar.gz xnu-792.13.8 "Apple Inc.<opensource@apple.com>" extract xnu-792.17.14.tar.gz xnu-792.17.14 "Apple Inc.<opensource@apple.com>" extract xnu-792.21.3.tar.gz xnu-792.21.3 "Apple Inc.<opensource@apple.com>" extract xnu-792.22.5.tar.gz xnu-792.22.5 "Apple Inc.<opensource@apple.com>" extract xnu-792.24.17.tar.gz xnu-792.24.17 "Apple Inc.<opensource@apple.com>" extract xnu-792.25.20.tar.gz xnu-792.25.20 "Apple Inc.<opensource@apple.com>" extract xnu-1228.tar.gz xnu-1228 "Apple Inc.<opensource@apple.com>" extract xnu-1228.0.2.tar.gz xnu-1228.0.2 "Apple Inc.<opensource@apple.com>" extract xnu-1228.3.13.tar.gz xnu-1228.3.13 "Apple Inc.<opensource@apple.com>" extract xnu-1228.5.18.tar.gz xnu-1228.5.18 "Apple Inc.<opensource@apple.com>" extract xnu-1228.5.20.tar.gz xnu-1228.5.20 "Apple Inc.<opensource@apple.com>" extract xnu-1228.7.58.tar.gz xnu-1228.7.58 "Apple Inc.<opensource@apple.com>" extract xnu-1228.9.59.tar.gz xnu-1228.9.59 "Apple Inc.<opensource@apple.com>" extract xnu-1228.12.14.tar.gz xnu-1228.12.14 "Apple Inc.<opensource@apple.com>" extract xnu-1228.15.4.tar.gz xnu-1228.15.4 "Apple Inc.<opensource@apple.com>" extract xnu-1456.1.26.tar.gz xnu-1456.1.26 "Apple Inc.<opensource@apple.com>" extract xnu-1486.2.11.tar.gz xnu-1486.2.11 "Apple Inc.<opensource@apple.com>" extract xnu-1504.3.12.tar.gz xnu-1504.3.12 "Apple Inc.<opensource@apple.com>" extract xnu-1504.7.4.tar.gz xnu-1504.7.4 "Apple Inc.<opensource@apple.com>" extract xnu-1504.9.17.tar.gz xnu-1504.9.17 "Apple Inc.<opensource@apple.com>" extract xnu-1504.9.26.tar.gz xnu-1504.9.26 "Apple Inc.<opensource@apple.com>" extract xnu-1504.9.37.tar.gz xnu-1504.9.37 "Apple Inc.<opensource@apple.com>" extract xnu-1504.15.3.tar.gz xnu-1504.15.3 "Apple Inc.<opensource@apple.com>" extract xnu-1699.22.73.tar.gz xnu-1699.22.73 "Apple Inc.<opensource@apple.com>" popd git clone --bare xnu xnu.git pushd xnu.git git update-server-info popd |
To run this schell script in terminal:
[ jackie macbook-pro ~ ] $ ./setup-xnu-git.sh
Mac OS X = Darwin + Aqua
Darwin = XNU + utilities
XNU = Mach + BSD + I/O Kit
Darwin是個CLI作業系統,XNU是這個系統的核心。
全站熱搜
留言列表