help-links.sh doesn't make sure that packages.html is writable (PR#2131)

voegelas@users.sourceforge.net voegelas@users.sourceforge.net
Wed, 9 Oct 2002 20:13:54 +0200 (MET DST)


Full_Name: Andreas Voegele
Version: 1.6.0
OS: GNU/Linux
Submission from: (NULL) (136.206.1.18)


Here's a minor problem:

help-links.sh copies packages-head.html to ~/.R/doc/html/packages.html.
Afterwards the script tries to add more html code to the copy.
But if packages-head.html is not writable the copy won't be writable and
as a consequence the script cannot add its html code.

The following patch ensures that packages.html is writable:

diff -u -r R-1.6.0.orig/share/sh/help-links.sh R-1.6.0/share/sh/help-links.sh
--- R-1.6.0.orig/share/sh/help-links.sh 2002-07-30 18:42:56.000000000 +0200
+++ R-1.6.0/share/sh/help-links.sh      2002-10-09 19:10:45.000000000 +0200
@@ -42,6 +42,7 @@
 rm -f ${PKGLIST}
 rm -f ${SEARCHINDEX}
 cp ${R_HOME}/doc/html/packages-head.html ${PKGLIST}
+chmod u+w ${PKGLIST}

 get_unique () {
   if test -r ${1}; then



-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._