4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-17 03:49:46 +08:00
newlib-cygwin/winsup/doc/etc.preremove.cygwin-doc.sh
Brian Inglis 8e0876727b cygwin doc: Add postinstall/preremove scripts to install Start Menu entries
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2017-04-22 14:02:33 +02:00

15 lines
571 B
Bash
Executable File

#!/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"