From: "Ara.T.Howard" Date: 2005-10-07T00:39:30+09:00 Subject: Re: traits question On Thu, 6 Oct 2005, Sean O'Halpin wrote: >> neither. the link exists in the lib directory when i tar up the package. >> what does it unpack as then? > > Just the traits-0.7.0.rb file. > > The traits.rb link isn't visible in Winzip (which I and I guess most > Windows users will be using to unpack tars). Actually, it's pretty > smart of Winzip to know that softlinks won't work. > > tar.exe (from the UnixWin32 project on SourceForge) lists trait.rb but > fails when you try to extract it. (It attempts to do a hardlink but > fails). > > I reckon the best way to handle this on Windows would be to copy the > file (and overwrite anything there with the same name). I'd be chary > about using hard links - they are available but a foreign concept to > most Windows users. cool. i tried cygwin and winrar and they both handle the link properly while unpacking and the install works. basically i need to tweak the install.rb script to do versioned = Dir[ 'lib/*-[0-9].[0-9].[0-9].rb' ] versioned.each{ |v| FileUtils::copy(v, v.gsub(%r/-\d+\.\d+\.\d+/,'')) } and it should work. i'll hack a fix and let you guys test.... gimmee 10 minutes or so. -a -- =============================================================================== | email :: ara [dot] t [dot] howard [at] noaa [dot] gov | phone :: 303.497.6469 | Your life dwells amoung the causes of death | Like a lamp standing in a strong breeze. --Nagarjuna ===============================================================================