forked from CDCgov/MicrobeTrace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappcache.sh
executable file
·32 lines (23 loc) · 966 Bytes
/
appcache.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
#!/bin/sh
echo "CACHE MANIFEST
# `date +%Y-%m-%d`
CACHE:
index.html" > microbetrace.appcache
ls components/ | sed -e 's/^/components\//' >> microbetrace.appcache
ls scripts/ | sed -e 's/^/scripts\//' >> microbetrace.appcache
cat index.html | grep -o "node_modules/.*\.js" >> microbetrace.appcache
cat components/*.html | grep -o "node_modules/.*\.js" >> microbetrace.appcache
cat scripts/*.js | grep -o "node_modules/.*\.js" >> microbetrace.appcache
ls vendor/ | sed -e 's/^/vendor\//' >> microbetrace.appcache
ls stylesheets/ | sed -e 's/^/stylesheets\//' >> microbetrace.appcache
cat index.html | grep -o "node_modules/.*\.css" >> microbetrace.appcache
cat components/*.html | grep -o "node_modules/.*\.css" >> microbetrace.appcache
ls img/ | sed -e 's/^/img\//' >> microbetrace.appcache
ls data/ | sed -e 's/^/data\//' >> microbetrace.appcache
cat cache.extra >> microbetrace.appcache
echo "
NETWORK:
*
SETTINGS:
prefer-online
" >> microbetrace.appcache