cygwin doc: Add postinstall/preremove scripts to install Start Menu entries
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
committed by
Corinna Vinschen
parent
0ee8e0d93d
commit
8e0876727b
14
winsup/doc/etc.preremove.cygwin-doc.sh
Executable file
14
winsup/doc/etc.preremove.cygwin-doc.sh
Executable 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"
|
||||
|
Reference in New Issue
Block a user