if [ -z "$PKG_INSTALL_ROOT" ]; then SERVICES=/etc/services else SERVICES=${PKG_INSTALL_ROOT}/etc/services fi if [ ! -f $SERVICES ]; then cp /dev/null $SERVICES chmod 644 $SERVICES fi PATH="/usr/xpg4/bin:/usr/bin:/usr/local/bin:$PATH" export PATH TMP=`egrep -c -e '^cvs.*/tcp' $SERVICES` if [ $TMP -eq 0 ]; then echo 'cvs 2401/tcp # CVS repository server' >>$SERVICES fi if [ -z "$PKG_INSTALL_ROOT" ]; then BASE=$CLIENT_BASEDIR else BASE=${PKG_INSTALL_ROOT}$CLIENT_BASEDIR fi PATH=${PATH}:/usr/sfw/bin:/sbin:/bin:/usr/bin:/usr/local/bin export PATH INSTINFO=`which install-info | cut -f1 -d\ ` if [ -z "$INSTINFO" -o "$INSTINFO" = "no" ]; then echo " " echo "WARNING: Unable to find install-info for adding info files" echo " to ${BASE}/share/info/dir. Use the following commands" echo " to do that manually: " echo " " INSTINFO='echo' fi echo "install-info ${BASE}/share/info/cvs.info.gz --dir-file=${BASE}/share/info/dir" $INSTINFO ${BASE}/share/info/cvs.info.gz --dir-file=${BASE}/share/info/dir echo "install-info ${BASE}/share/info/cvsclient.info.gz --dir-file=${BASE}/share/info/dir" $INSTINFO ${BASE}/share/info/cvsclient.info.gz --dir-file=${BASE}/share/info/dir