-
Notifications
You must be signed in to change notification settings - Fork 7
/
collect
executable file
·28 lines (26 loc) · 1.06 KB
/
collect
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
#!/bin/sh
pushd .
cd ../socialapi-pages
rm -rf jp-JP es-AR css js images index.html
wget -nH -erobots=off -p http://localhost:8888/favicon.ico
wget -nH -erobots=off -p http://localhost:8888/index.html
wget -nH -erobots=off -p http://localhost:8888/sharePanel.html
for __LOCALE in cs de en-US en-GB es fr gl hu it ja nl pt-BR ru sl te uk zh-CN zh-TW
do
rm -rf $__LOCALE
wget -r -nH -erobots=off http://localhost:8888/$__LOCALE/activated/
rm $__LOCALE/activated/index.html
wget -r -nH -erobots=off http://localhost:8888/$__LOCALE/
wget -nH -erobots=off -p http://localhost:8888/$__LOCALE/sharePanel.html
git add -A --ignore-removal $__LOCALE
done
# old goal.com pages
wget -nH -erobots=off -p http://localhost:8888/id/goal.html
wget -nH -erobots=off -p http://localhost:8888/id/
wget -nH -erobots=off -p http://localhost:8888/es-AR/goal.html
wget -nH -erobots=off -p http://localhost:8888/es-AR/
wget -nH -erobots=off -p http://localhost:8888/es-ES/goal.html
wget -nH -erobots=off -p http://localhost:8888/es-ES/
git add -A --ignore-removal id es-AR es-ES
git add *.html
popd