summaryrefslogtreecommitdiff
path: root/tools/force-reload.sh
blob: e19b6cd96d7b5e9267a677ffa5c0c1ba4b427393 (plain)
1
2
3
4
5
6
7
8
for FILE in $*
do
	V=$RANDOM
	sed -i -e '/<link/s/client.css.*"/client.css?v='$V'"/' "$FILE"
	sed -i -e '/<link/s/play.css.*"/play.css?v='$V'"/' "$FILE"
	sed -i -e '/<script/s/client.js.*"/client.js?v='$V'"/' "$FILE"
	sed -i -e '/<script/s/play.js.*"/play.js?v='$V'"/' "$FILE"
done