aboutsummaryrefslogtreecommitdiffstats
path: root/tools/linkblink
diff options
context:
space:
mode:
Diffstat (limited to 'tools/linkblink')
-rwxr-xr-xtools/linkblink14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/linkblink b/tools/linkblink
new file mode 100755
index 0000000..fe0d842
--- /dev/null
+++ b/tools/linkblink
@@ -0,0 +1,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