cygwin doc: Add postinstall/preremove scripts to install Start Menu entries

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Brian Inglis
2017-04-21 13:26:10 +02:00
committed by Corinna Vinschen
parent 0ee8e0d93d
commit 8e0876727b
3 changed files with 115 additions and 2 deletions

View File

@@ -0,0 +1,14 @@
#!/bin/bash
# /etc/preremove/cygwin-doc.sh - cygwin-doc preremove script.
# removes Cygwin Start Menu shortcuts for Cygwin User Guide and API PDF and
# HTML, and links to Cygwin web site home page and FAQ
#
# CYGWINFORALL=-A if remove for All Users
# remove local shortcuts for All Users or Current User in
# {ProgramData,~/Appdata/Roaming}/Microsoft/Windows/Start Menu/Programs/Cygwin/
cd "$(/bin/cygpath $CYGWINFORALL -P -U)/Cygwin" || exit 2
/bin/rm -f -- "User Guide (PDF).lnk" "User Guide (HTML).lnk" \
"API (PDF).lnk" "API (HTML).lnk" "Home Page.lnk" "FAQ.lnk"