blob: 20d08e7c66d9478c7acc453ec1ca218d9fa1d971 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/sh
set -ex
current="$(find -d public/static/v* | tail -n 1 | grep -o '..$')"
prev=$((current - 1))
next=$((current + 1))
git mv public/static/v${prev} public/static/v${next}
perl -pi -e "s!/v${current}/!/v${next}/!g" \
public/service-worker.js public/static/manifest.json \
public/static/css/material-icons.css
perl -pi -e "s!static-cache-v${current}!static-cache-v${next}!" public/service-worker.js
perl -pi -e "s!av = 'v${current}'!av = 'v${next}'!" templates/layouts/default.html.ep
|