FLTK logo

STR #869

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

Return to Bugs & Features | Roadmap 1.1 | SVN ⇄ GIT ]

STR #869

Application:FLTK Library
Status:1 - Closed w/Resolution
Priority:2 - Low, e.g. a documentation error or undocumented side-effect
Scope:3 - Applies to all machines and operating systems
Subsystem:Core Library
Summary:"local" fltk-config can't cope with symlinks
Version:1.1-current
Created By:ianmacarthur
Assigned To:mike
Fix Version:1.1-current (SVN: v4477)
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

No files


Trouble Report Comments:


Name/Time/Date Text  
 
#1 ianmacarthur
13:13 May 17, 2005
If fltk-config is invoked from a "local" directory, but via a symlink, the "selfdir" variable gets the dir of the symlink *not* of the actual local installation.

Something like this might be better, as this will try and resolve the actual location of the fltk-config script, rather than the link itself...


selfdir=`readlink $0`

if test -n "$selfdir"; then
        selfdir=`dirname $selfdir`
else
        selfdir=`dirname $0`
fi

# echo $selfdir

--
Ian
 
 
#2 ianmacarthur
11:00 May 18, 2005
A revised version of this patch is now built in to my fltk-config patch at #868
--
Ian
 
 
#3 mike
18:09 Aug 07, 2005
Fixed in Subversion repository.  
     

Return to Bugs & Features ]

 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.