diff options
author | Brian Inglis <Brian.Inglis@SystematicSW.ab.ca> | 2017-12-22 11:35:56 -0700 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2017-12-22 20:15:32 +0100 |
commit | 3cc77b4f296e6dbe9046380cbaf7a72c032051bc (patch) | |
tree | 9e96bf1a68e76a958d55fe65abae0e53d0da7294 | |
parent | ae3bd4f49e7800e786c0f9534df67e4fbee9fe69 (diff) | |
download | cygnal-3cc77b4f296e6dbe9046380cbaf7a72c032051bc.tar.gz cygnal-3cc77b4f296e6dbe9046380cbaf7a72c032051bc.tar.bz2 cygnal-3cc77b4f296e6dbe9046380cbaf7a72c032051bc.zip |
cleanup winsup/doc/etc.{postinstall,preremove}.cygwin-doc.sh quote test variables, correct utility paths, define site in preremove
-rwxr-xr-x | winsup/doc/etc.postinstall.cygwin-doc.sh | 10 | ||||
-rwxr-xr-x | winsup/doc/etc.preremove.cygwin-doc.sh | 5 |
2 files changed, 8 insertions, 7 deletions
diff --git a/winsup/doc/etc.postinstall.cygwin-doc.sh b/winsup/doc/etc.postinstall.cygwin-doc.sh index 935bd94e1..de7d9e0c3 100755 --- a/winsup/doc/etc.postinstall.cygwin-doc.sh +++ b/winsup/doc/etc.postinstall.cygwin-doc.sh @@ -10,9 +10,9 @@ doc=/usr/share/doc/cygwin-doc site=https://cygwin.com -cygp=/bin/cygpath -mks=/bin/mkshortcut -launch=/bin/cygstart +cygp=/usr/bin/cygpath +mks=/usr/bin/mkshortcut +launch=/usr/bin/cygstart html=$doc/html @@ -29,7 +29,7 @@ done # check for programs for p in $cygp $mks $launch do - if [ ! -x $p ] + if [ ! -x "$p" ] then echo "Can't find program '$p'" exit 2 @@ -52,7 +52,7 @@ fi # create User Guide and API PDF and HTML shortcuts while read target name desc do - [ -r $target ] && $mks $CYGWINFORALL -P -n "Cygwin/$name" -d "$desc" -- $target + [ -r "$target" ] && $mks $CYGWINFORALL -P -n "Cygwin/$name" -d "$desc" -- $target done <<EOF $doc/cygwin-ug-net.pdf User\ Guide\ \(PDF\) Cygwin\ User\ Guide\ PDF $html/cygwin-ug-net/index.html User\ Guide\ \(HTML\) Cygwin\ User\ Guide\ HTML diff --git a/winsup/doc/etc.preremove.cygwin-doc.sh b/winsup/doc/etc.preremove.cygwin-doc.sh index 09e0c9efc..5e47eb579 100755 --- a/winsup/doc/etc.preremove.cygwin-doc.sh +++ b/winsup/doc/etc.preremove.cygwin-doc.sh @@ -9,7 +9,8 @@ # exits quietly if directory does not exist as presumably no shortcuts desired doc=/usr/share/doc/cygwin-doc -cygp=/bin/cygpath +site=https://cygwin.com +cygp=/usr/bin/cygpath rm=/bin/rm html=$doc/html @@ -17,7 +18,7 @@ html=$doc/html # check for programs for p in $cygp $rm do - if [ ! -x $p ] + if [ ! -x "$p" ] then echo "Can't find program '$p'" exit 2 |