Re: TRY AGAIN, error running Maple 7 on Fedora 10

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 05 Jul 2009 21:04:40 -0400
"William M. Quarles" <walrus@xxxxxxxxxxxxx> wrote:


> 
> #####################################
> #!/bin/sh
> 
> # Copyright (c) 1993-2001 by Waterloo Maple Inc.
> # All rights reserved. Unauthorized duplication prohibited.
> # Permission is granted to modify this file to be appropriate
> # for use at the installation for which Maple was purchased.
> 
> # This script runs Maple 7 with a Motif interface.
> 
> export LD_ASSUME_KERNEL=2.4.1
> 
> case $0 in
>          */*)    exec `dirname $0`/maple -x $*
> 	;;
>          *)      exec maple -x $*
> 	;;
> esac
> ######################################
> 

Could you change the script to something like this?  Is it necessary to
run dirname under the old kernel version?  Seems the output should be
the same over versions of the library.

 DIR_NAME = `dirname $0` 

 export LD_ASSUME_KERNEL=2.4.1
 
 case $0 in
          */*)    exec $DIR_NAME/maple -x $*
 	;;
          *)      exec maple -x $*
 	;;
 esac

In fact, I'm not sure why you have the case statement, since dirname
returns a . if there is no directory path.

Should just be able to do

 DIR_NAME=`dirname $0` 

 export LD_ASSUME_KERNEL=2.4.1
 
 exec $DIR_NAME/maple -x $*
 
Is this way off the wall?  Seems like it should work.

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux