summaryrefslogtreecommitdiff
path: root/scripts/asset-release
blob: e0a74dac36e222b1024d2f18c0004c8cedd5a571 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
# Copyright (C) 2020 Daniel Friesel
#
# SPDX-License-Identifier: CC0-1.0

set -ex

current="$(find static/v* | tail -n 1 | grep -o '[0-9]*$')"
prev=$((current - 1))
next=$((current + 1))

git mv static/v${prev} static/v${next}

perl -pi -e "s!/static/v${current}/!/static/v${next}/!g" \
	sass/*.scss static/css/*.min.css templates/*