forked from HTTPArchive/legacy.httparchive.org
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
101 lines (92 loc) · 3.62 KB
/
Makefile
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
gDesktopDir := /var/www/httparchive
gMobileDir := /var/www/httparchive.mobile
gDevDir := /var/www/httparchive.dev
gChromeDir := /var/www/httparchive.chrome
gAndroidDir := /var/www/httparchive.android
gIphoneDir := /var/www/httparchive.iphone
gIeDir := /var/www/httparchive.ie
# harviewer installation: http://code.google.com/p/harviewer/wiki/Installation
# create "downloads" symlink back to /var/www/httparchive.dev/downloads
push :
cp -p *.php *.inc *.js *.css favicon.ico apple-*.png robots.txt $(gDesktopDir)/.
/bin/rm $(gDesktopDir)/admin.php
mkdir -p $(gDesktopDir)/images
cp -p images/*.* $(gDesktopDir)/images/.
mkdir -p $(gDesktopDir)/lists
cp -p lists/*.txt $(gDesktopDir)/lists/.
echo "push .htaccess!"
echo "CVSNO: ln -s $(gDevDir)/harviewer harviewer"
pushmobile :
cp -p *.php *.inc *.js *.css favicon.ico apple-*.png robots.txt $(gMobileDir)/.
/bin/rm $(gMobileDir)/admin.php
/bin/rm $(gMobileDir)/addsite.php
/bin/rm $(gMobileDir)/removesite.php
mkdir -p $(gMobileDir)/images
cp -p images/*.* $(gMobileDir)/images/.
mkdir -p $(gMobileDir)/lists
cp -p lists/*.txt $(gMobileDir)/lists/.
mkdir -p $(gMobileDir)/harfiles-delme
ls -l $(gMobileDir)/har_to_pagespeed
echo "push .htaccess!"
echo "CVSNO: ln -s $(gDevDir)/harviewer harviewer"
echo "CVSNO: har_to_pagespeed and harfiles-delme"
pushchrome :
cp -p *.php *.inc *.js *.css favicon.ico apple-*.png robots.txt $(gChromeDir)/.
/bin/rm $(gChromeDir)/admin.php
/bin/rm $(gChromeDir)/addsite.php
/bin/rm $(gChromeDir)/removesite.php
mkdir -p $(gChromeDir)/images
cp -p images/*.* $(gChromeDir)/images/.
mkdir -p $(gChromeDir)/lists
cp -p lists/*.txt $(gChromeDir)/lists/.
mkdir -p $(gChromeDir)/harfiles-delme
ls -l $(gChromeDir)/har_to_pagespeed
echo "push .htaccess!"
echo "CVSNO: ln -s $(gDevDir)/harviewer harviewer"
echo "CVSNO: har_to_pagespeed and harfiles-delme"
pushandroid :
cp -p *.php *.inc *.js *.css favicon.ico apple-*.png robots.txt $(gAndroidDir)/.
/bin/rm $(gAndroidDir)/admin.php
/bin/rm $(gAndroidDir)/addsite.php
/bin/rm $(gAndroidDir)/removesite.php
mkdir -p $(gAndroidDir)/images
cp -p images/*.* $(gAndroidDir)/images/.
mkdir -p $(gAndroidDir)/lists
cp -p lists/*.txt $(gAndroidDir)/lists/.
mkdir -p $(gAndroidDir)/harfiles-delme
ls -l $(gAndroidDir)/har_to_pagespeed
echo "push .htaccess!"
echo "CVSNO: ln -s $(gDevDir)/harviewer harviewer"
echo "CVSNO: har_to_pagespeed and harfiles-delme"
pushiphone :
cp -p *.php *.inc *.js *.css favicon.ico apple-*.png robots.txt $(gIphoneDir)/.
/bin/rm $(gIphoneDir)/admin.php
/bin/rm $(gIphoneDir)/addsite.php
/bin/rm $(gIphoneDir)/removesite.php
mkdir -p $(gIphoneDir)/images
cp -p images/*.* $(gIphoneDir)/images/.
mkdir -p $(gIphoneDir)/lists
cp -p lists/*.txt $(gIphoneDir)/lists/.
mkdir -p $(gIphoneDir)/harfiles-delme
ls -l $(gIphoneDir)/har_to_pagespeed
echo "push .htaccess!"
echo "CVSNO: ln -s $(gDevDir)/harviewer harviewer"
echo "CVSNO: har_to_pagespeed and harfiles-delme"
pushie :
cp -p *.php *.inc *.js *.css favicon.ico apple-*.png robots.txt $(gIeDir)/.
/bin/rm $(gIeDir)/admin.php
/bin/rm $(gIeDir)/addsite.php
/bin/rm $(gIeDir)/removesite.php
mkdir -p $(gIeDir)/images
cp -p images/*.* $(gIeDir)/images/.
mkdir -p $(gIeDir)/lists
cp -p lists/*.txt $(gIeDir)/lists/.
mkdir -p $(gIeDir)/harfiles-delme
ls -l $(gIeDir)/har_to_pagespeed
echo "push .htaccess!"
echo "CVSNO: ln -s $(gDevDir)/harviewer harviewer"
echo "CVSNO: har_to_pagespeed and harfiles-delme"
pushall: push pushmobile pushchrome pushandroid pushiphone pushie
pushmetrics :
mv /var/www/webpagetest/www/settings/custom_metrics/*.js /tmp/.
cp -p custom_metrics/*.js /var/www/webpagetest/www/settings/custom_metrics/.