#!/bin/sh
#
# ${RHOME}/etc/install-allhelp
# Should work from anywhere in the R source tree.

# FIXME when the new directory structure is here!

RHOME=`dirname $0`/..		# relative
RHOME=`cd ${RHOME}; pwd`	# absolute
PKGS=`cd ${RHOME}/src/library; ls | sed '
/^\./d
/CVS/d
/LIB*/d
/Makefile/d
/profile/d'`

mkdir -p ${RHOME}/help
cp /dev/null ${RHOME}/help/LibIndex

cd ${RHOME}/src/library
for pkg in ${PKGS}
do
    ${RHOME}/etc/install-help ${pkg}
done
