From c90e3bf08b1c6f4426d0f72c76b1ac9a0a346efb Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 10 Feb 2024 07:05:52 +0100 Subject: Add tools MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- tools/linkblink | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 tools/linkblink (limited to 'tools/linkblink') 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 -- cgit v1.2.3-70-g09d2