forked from renfeng/android-repository
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsync-index.sh
More file actions
executable file
·56 lines (52 loc) · 3.03 KB
/
sync-index.sh
File metadata and controls
executable file
·56 lines (52 loc) · 3.03 KB
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
#!/bin/bash
# http://www.gnu.org/savannah-checkouts/gnu/grep/manual/grep.html
#grep -Po '(?<=@name@).*/android/repository/.*(?==)' ~/.android/sites-settings.cfg | sed 's/\\//g' | wget -N -c -i -
#grep -Po '(?<=@name@).*/android/repository/.*(?==)' ~/.android/sites-settings.cfg | sed 's/\\//g'
# https://dl-ssl.google.com/android/repository/extras/intel/addon.xml
# https://dl-ssl.google.com/android/repository/addon-6.xml
# https://dl-ssl.google.com/android/repository/sys-img/android-tv/sys-img.xml
# https://dl-ssl.google.com/android/repository/repository-10.xml
# https://dl-ssl.google.com/android/repository/sys-img/android-wear/sys-img.xml
# https://dl-ssl.google.com/android/repository/addon.xml
# https://dl-ssl.google.com/android/repository/sys-img/x86/addon-x86.xml
# https://dl-ssl.google.com/android/repository/sys-img/google_apis/sys-img.xml
# https://dl-ssl.google.com/android/repository/sys-img/android/sys-img.xml
# https://dl-ssl.google.com/glass/gdk/addon.xml
#mkdir -p android/repository/extras/intel
#mkdir -p android/repository/sys-img/android-tv
#mkdir -p android/repository/sys-img/android-wear
#mkdir -p android/repository/sys-img/x86
#mkdir -p android/repository/sys-img/google_apis
#mkdir -p android/repository/sys-img/android
mkdir -p glass/gdk
#mkdir -p glass/xe22
#mkdir -p googleadmobadssdk
#mkdir -p gaformobileapps
#mkdir -p dl/android/studio/ide-zips/1.0.1
#mkdir -p dl/android/studio/install/1.0.1
mkdir -p dl/android/studio
#mkdir -p sdk
# http://stackoverflow.com/questions/4944295/wget-skip-if-files-exist/16840827#16840827
# http://www.gnu.org/software/wget/manual/wget.html
wget -N http://dl-ssl.google.com/android/repository/addons_list-2.xml \
-P orig/android/repository
wget -N http://dl-ssl.google.com/android/repository/extras/intel/addon.xml \
-P orig/android/repository/extras/intel
wget -N http://dl-ssl.google.com/android/repository/addon-6.xml \
-P orig/android/repository
wget -N http://dl-ssl.google.com/android/repository/sys-img/android-tv/sys-img.xml \
-P orig/android/repository/sys-img/android-tv
wget -N http://dl-ssl.google.com/android/repository/repository-10.xml \
-P orig/android/repository
wget -N http://dl-ssl.google.com/android/repository/sys-img/android-wear/sys-img.xml \
-P orig/android/repository/sys-img/android-wear
wget -N http://dl-ssl.google.com/android/repository/addon.xml \
-P orig/android/repository
wget -N http://dl-ssl.google.com/android/repository/sys-img/x86/addon-x86.xml \
-P orig/android/repository/sys-img/x86
wget -N http://dl-ssl.google.com/android/repository/sys-img/google_apis/sys-img.xml \
-P orig/android/repository/sys-img/google_apis
wget -N http://dl-ssl.google.com/android/repository/sys-img/android/sys-img.xml \
-P orig/android/repository/sys-img/android
wget -N http://dl-ssl.google.com/glass/gdk/addon.xml \
-P orig/glass/gdk