-
Notifications
You must be signed in to change notification settings - Fork 3
/
bootstrap.sh
126 lines (116 loc) · 2.74 KB
/
bootstrap.sh
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
#!/bin/bash
#
# Configure the CSS.
STATIC_FOLDER=lowfat/static/
TMP_FOLDER=$(mktemp -d)
BOOTSTRAP_ZIP=${TMP_FOLDER}/bootstrap.zip
FONT_AWESOME_ZIP=${TMP_FOLDER}/fontawesome.zip
ACADEMICONS_ZIP=${TMP_FOLDER}/academicons.zip
GARLIC_ZIP=${TMP_FOLDER}/garlic.zip
DATETIME_WIDGET_ZIP=${TMP_FOLDER}/datetimewidget.zip
SELECTIZE_ZIP=${TMP_FOLDER}/selectize.zip
TAGULOUS_ZIP=${TMP_FOLDER}/tagulous.zip
# Bootstrap
curl \
--silent \
-L \
-o $BOOTSTRAP_ZIP \
https://github.com/twbs/bootstrap/releases/download/v5.2.3/bootstrap-5.2.3-dist.zip
unzip \
-q \
-u \
$BOOTSTRAP_ZIP \
-d $TMP_FOLDER
# Font Awesome
curl \
--silent \
-L \
-o $FONT_AWESOME_ZIP \
https://use.fontawesome.com/releases/v6.2.1/fontawesome-free-6.2.1-web.zip
unzip \
-q \
-u \
$FONT_AWESOME_ZIP \
-d $TMP_FOLDER
# Academicons
#
# Supplement for Font Awesome
curl \
--silent \
-L \
-o $ACADEMICONS_ZIP \
https://github.com/jpswalsh/academicons/archive/v1.8.6.zip
unzip \
-q \
-u \
$ACADEMICONS_ZIP \
-d $TMP_FOLDER
# Sorttable
mkdir -p $TMP_FOLDER/sorttable/js
curl \
--silent \
-L \
-o $TMP_FOLDER/sorttable/js/sorttable.js \
http://www.kryogenix.org/code/browser/sorttable/sorttable.js
# Garlic.js
mkdir -p $TMP_FOLDER/garlic/js
curl \
--silent \
-L \
-o $GARLIC_ZIP \
https://github.com/guillaumepotier/Garlic.js/archive/1.4.2.zip
unzip \
-q \
-p \
$GARLIC_ZIP \
Garlic.js-1.4.2/dist/garlic.min.js \
> $TMP_FOLDER/garlic/js/garlic.min.js
# Datetime Widget
curl \
--silent \
-L \
-o $DATETIME_WIDGET_ZIP \
https://github.com/asaglimbeni/django-datetime-widget/archive/master.zip
unzip \
-q \
-u \
$DATETIME_WIDGET_ZIP \
-d $TMP_FOLDER
mv $TMP_FOLDER/django-datetime-widget-master/datetimewidget/static $TMP_FOLDER/datetimewidget/
# Selectize
mkdir -p $TMP_FOLDER/selectize/{css,js}
curl \
--silent \
-L \
-o $SELECTIZE_ZIP \
https://github.com/selectize/selectize.js/archive/v0.15.2.zip
unzip \
-q \
-p \
$SELECTIZE_ZIP \
selectize.js-0.15.2/dist/css/selectize.bootstrap5.css \
> $TMP_FOLDER/selectize/css/selectize.bootstrap5.css
unzip \
-q \
-p \
$SELECTIZE_ZIP \
selectize.js-0.15.2/dist/js/selectize.min.js \
> $TMP_FOLDER/selectize/js/selectize.min.js
# Tagulous
curl \
--silent \
-L \
-o $TAGULOUS_ZIP \
https://github.com/radiac/django-tagulous/archive/0.13.2.zip
unzip \
-q \
-u \
$TAGULOUS_ZIP \
"django-tagulous-0.13.2/tagulous/static/tagulous/*" \
-d $TMP_FOLDER
cp -v -r $TMP_FOLDER/django-tagulous-0.13.2/tagulous/static/tagulous $STATIC_FOLDER
# Copy files
for folder in css fonts js webfonts
do
cp -v -r $TMP_FOLDER/*/$folder $STATIC_FOLDER
done