dsic
This commit is contained in:
9
dotfiles-old/scripts/dsic.sh
Executable file
9
dotfiles-old/scripts/dsic.sh
Executable 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"
|
||||||
Reference in New Issue
Block a user