-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmake.sh
More file actions
executable file
·84 lines (73 loc) · 2.4 KB
/
make.sh
File metadata and controls
executable file
·84 lines (73 loc) · 2.4 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
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
TWIG_VERSION="1.16.2"
SCSS_VERSION="0.1.1"
JSQUEEZE_VERSION="1.0.5"
PRISMJS_VERSION="4160c577691b74223f3b5515bb920236b96a87e1"
VIDEOJS_VERSION="4.10.2"
FAENZA_ICONS_URL="http://slackware.uk/sbosrcarch/by-md5/e/9/e9bd6106d13017ce06d24b586259ae9c/faenza-icon-theme_1.3.zip"
mkdir tmp
cd tmp
## Libraries
# Twig
git clone git://github.com/twigphp/Twig.git
cd Twig
git checkout tags/v${TWIG_VERSION}
mv lib/Twig ../../lib/
cd ..
# SCSS
git clone git://github.com/leafo/scssphp.git
cd scssphp
git checkout tags/v${SCSS_VERSION}
rm .gitignore
rm package.sh
rm todo
rm -r site
rm -rf .git
cd ..
mv scssphp ../lib/SCSS
# Twig
git clone https://github.com/nicolas-grekas/JSqueeze.git
cd JSqueeze
git checkout tags/v${JSQUEEZE_VERSION}
rm -rf .git
cd ..
mv JSqueeze ../lib/
## Default theme related
THEME_STATIC_PATH=../themes/DarkAndDark/static
# prism.js (Syntax Highlighter)
mkdir ${THEME_STATIC_PATH}/prismjs
git clone https://github.com/LeaVerou/prism.git
cd prism
git checkout ${PRISMJS_VERSION}
cat themes/prism-okaidia.css plugins/{line-numbers/prism-line-numbers.css,line-highlight/prism-line-highlight.css} > ../${THEME_STATIC_PATH}/prismjs/prism.css
cat components/prism-{core,clike,markup,javascript,bash,c,coffeescript,cpp,csharp,css,css-extras,go,haskell,ini,java,latex,objectivec,php,php-extras,python,ruby,scss,sql,swift,twig}.min.js plugins/{line-numbers/prism-line-numbers.min.js,line-highlight/prism-line-highlight.min.js} > ../${THEME_STATIC_PATH}/prismjs/prism.js
cd ..
# video.js
mkdir ${THEME_STATIC_PATH}/videojs
git clone https://github.com/videojs/video.js.git
cd video.js
git checkout tags/v${VIDEOJS_VERSION}
cp dist/video-js/video.js ../${THEME_STATIC_PATH}/videojs/video.js
cp dist/video-js/video-js.min.css ../${THEME_STATIC_PATH}/videojs/video.css
cp dist/video-js/video-js.swf ../${THEME_STATIC_PATH}/videojs/video.swf
cp -r dist/video-js/font ../${THEME_STATIC_PATH}/videojs/
cd ..
# Faenza icons
mkdir ${THEME_STATIC_PATH}/faenzaicons
wget ${FAENZA_ICONS_URL} -O faenza_icons.zip
md5sum faenza_icons.zip | grep 'e9bd6106d13017ce06d24b586259ae9c' || exit 1
mkdir faenza_icons
cd faenza_icons
unzip ../faenza_icons.zip
tar xzf Faenza.tar.gz
cd Faenza/mimetypes/96
mkdir ../icons_tmp
cp -L * ../icons_tmp/
cd ../icons_tmp
rm *.icon
rename "gnome-mime-" "" *
cd ..
mv icons_tmp ../../../
cd ../../..
cp -r icons_tmp/*-* ${THEME_STATIC_PATH}/faenzaicons/
cp icons_tmp/none.png ${THEME_STATIC_PATH}/faenzaicons/