#!/bin/sh # # AbiSource Unix Installer Program # Copyright (C) 1999-2000 AbiSource, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # INSTALL_DATA_FILE=`pwd`/data.tar DEFAULT_PREFIX=/usr/local DEFAULT_HOME=AbiSuite DEFAULT_LINK_DIR=/usr/local/bin # Test for SysV echo; NECHO is defined for "no newline" echos if [ "`echo 'echo\c'`" = "echo\c" ] then NECHO="echo -n" POSTNECHO="" else NECHO="echo" POSTNECHO="\c" fi ECHO="echo" # Program execution cat <$INSTALL_BASE/bin/AbiWord</dev/null 2>/dev/null fi # Figure out which binary to run if [ -f \$ABISUITE_HOME/bin/AbiWord-2.2 ] then \$ABISUITE_HOME/bin/AbiWord-2.2 "\$@" #elif [ -f \$ABISUITE_HOME/bin/AbiWord-2.2 ] #then # \$ABISUITE_HOME/bin/AbiWord-2.2 "\$@" else $ECHO "Error: can't find AbiWord executables:" $ECHO " \$ABISUITE_HOME/bin/AbiWord-2.2" # $ECHO " -or-" # $ECHO " \$ABISUITE_HOME/bin/AbiWord-2.2" $ECHO "" exit fi # Set post run-time font path if [ -d \$ABISUITE_FONT_HOME ] then xset fp- \$ABISUITE_FONT_PATH 1>/dev/null 2>/dev/null fi EOF chmod 755 $INSTALL_BASE/bin/AbiWord ######################################################################## # Ask the user if he would like to set up symlinks to the script # we just created. ######################################################################## cat <