1
0
This commit is contained in:
Deven Blake 2021-03-29 11:11:47 -04:00
parent 8562fc3e29
commit b31b49cf10

9
dotfiles-old/scripts/dsic.sh Executable file
View File

@ -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/' <sic.c >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"