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]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux