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/gnuplot.info.gz --dir-file=${BASE}/share/info/dir" $INSTINFO ${BASE}/share/info/gnuplot.info.gz --dir-file=${BASE}/share/info/dir if [ "$CLIENT_BASEDIR" = "/usr" ]; then exit 0 fi echo " " echo "You may add the following library[s] to the default library search path" echo "of your system using the crle tool, so that other applications are able" echo "to find the installed libraries automatically:" echo " " LP="" for l in lib; do if [ -n "$l" ]; then if [ -z "$LP" ]; then LP="$CLIENT_BASEDIR/$l" else LP="${LP}:$CLIENT_BASEDIR/$l" fi fi done echo " $LP" echo " " echo "E.g.:" echo " crle -c /var/ld/ld.config -l /usr/lib:$LP" echo " " exit 0