diff options
author | B. Watson <yalhcru@gmail.com> | 2021-10-16 16:09:53 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-10-29 17:07:14 +0700 |
commit | 1c356750f7c648ea9fe4d10bc6453141555c5c36 (patch) | |
tree | eea98e2fb4d3cf45ab1d7a0937a51fb38ab4202d /games/vera/douninst.sh | |
parent | f7810e8c1379356780fe4fd47091b6b9976c5d0b (diff) | |
download | slackbuilds-1c356750f7c648ea9fe4d10bc6453141555c5c36.tar.xz |
games/vera: Various fixes and enhancements.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/vera/douninst.sh')
-rw-r--r-- | games/vera/douninst.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/games/vera/douninst.sh b/games/vera/douninst.sh new file mode 100644 index 000000000000..f452accdaa15 --- /dev/null +++ b/games/vera/douninst.sh @@ -0,0 +1,17 @@ +# 20211015 bkw: I was going to have a douninst.sh that runs +# /usr/bin/install-info --delete /usr/info/xroar.info.gz /usr/info/dir +# but this won't work because removepkg has already deleted +# /usr/info/xroar.info.gz before it runs douninst.sh. And you can't +# use install-info to remove stuff *by name* from /usr/info/dir; +# the info file must actually exist. +# So the script has to manually remove the entry from the info dir, +# and the Emulators section if it's become empty. + +if [ -e usr/info/dir ]; then + # Remove the entry first: + sed -i '/^\* V\.E\.R.\A\.:/d' usr/info/dir + # If the Dictionaries section is empty now, remove it too: + if grep -A1 '^Dictionaries$' usr/info/dir | tail -1 | grep -q '^$'; then + sed -i '/^Dictionaries$/,+1d' usr/info/dir + fi +fi |