Re: abiword script shouldn't add font when it already exists


Subject: Re: abiword script shouldn't add font when it already exists
From: Adrian Phillips (adrianp@powertech.no)
Date: Fri Jan 18 2002 - 06:11:21 CST


>>>>> "Adrian" == Adrian Phillips <adrianp@powertech.no> writes:

Adrian> Well, I don't believe so at least :-) Here is a patch to
Adrian> check to see if the font path exists before adding it
Adrian> (please excuse me if there is a better way to do this but
Adrian> my shell is appalling).

Sorry, I should be more careful. Here is a patch that works :-

Index: makewrapper.sh
===================================================================
RCS file: /usr/local/src/abiword.cvs/abi/src/pkg/common/unix/scripts/makewrapper.sh,v
retrieving revision 1.15
diff -c -r1.15 makewrapper.sh
*** makewrapper.sh 28 Dec 2001 10:03:40 -0000 1.15
--- makewrapper.sh 18 Jan 2002 12:08:20 -0000
***************
*** 101,107 ****
  fi
  #
  # Set run-time font path
! if [ -d \$ABISUITE_FONT_HOME ]
  then
      xset fp+ \$ABISUITE_FONT_PATH 1>/dev/null 2>/dev/null
  fi
--- 101,107 ----
  fi
  #
  # Set run-time font path
! if [ -d \$ABISUITE_FONT_HOME -a -z "\`xset -q | grep \$ABISUITE_FONT_PATH\`" ]
  then
      xset fp+ \$ABISUITE_FONT_PATH 1>/dev/null 2>/dev/null
  fi

Sincerely,

Adrian Phillips

-- 
Your mouse has moved.
Windows NT must be restarted for the change to take effect.
Reboot now?  [OK]



This archive was generated by hypermail 2b25 : Fri Jan 18 2002 - 06:11:56 CST