aboutsummaryrefslogtreecommitdiffstats
path: root/tools/linkblink
blob: fe0d842bb088ef8db1265e5e0248bbb6879c636a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

if test $# = 0; then
	printf 'usage: blink-on-icon ...' >&2
	exit 1
fi

for n; do
	of="${n}.svg"
	nf="${n}-blink_off.svg"
	ot="$(readlink -- "${of}")"
	nt="$(printf '%s\n' "$ot" | sed 's/\.svg$/-blink_off&/')"
	ln -s "$nt" "$nf"
done