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"