From b31b49cf108057bee8e5cac8cfe36b490ef3f486 Mon Sep 17 00:00:00 2001 From: Deven Blake Date: Mon, 29 Mar 2021 11:11:47 -0400 Subject: [PATCH] dsic --- dotfiles-old/scripts/dsic.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 dotfiles-old/scripts/dsic.sh diff --git a/dotfiles-old/scripts/dsic.sh b/dotfiles-old/scripts/dsic.sh new file mode 100755 index 0000000..e237c5a --- /dev/null +++ b/dotfiles-old/scripts/dsic.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +SIC_C=$HOME/src/sic/sic.c +cp "$SIC_C" ./ + +sed -e 's/No channel to send to/No channel to which to send./' -e '170s/sic/dsic/' dsic.c + +diff sic.c dsic.c +[ "$(printf "No.\nYes.\n" | dmenu -p "Write changes?")" = "Yes." ] && mv "$SIC_C" "$SIC_C".bak && mv dsic.c "$SIC_C"