Ruby headers?
Darren Weber
dweber at macports.org
Mon May 11 11:23:34 PDT 2009
> ruby -r rbconfig -e 'puts Config::CONFIG["archdir"]'
>
> So if you write a build script you might want to reference
> it using this variable, to make it usable on systems other
> the your current one.
>
> Florian
>
How do you wrap this in tcl for macports? I've tried all of the following:
% exec ruby -r rbconfig -e 'puts Config::CONFIG["archdir"]'
invalid command name "archdir"
% exec "ruby -r rbconfig -e 'puts Config::CONFIG["archdir"]'"
invalid command name "archdir"
% exec "ruby -r rbconfig -e 'puts Config::CONFIG[\"archdir\"]'"
invalid command name ""archdir""
% exec ruby -r rbconfig -e 'puts Config::CONFIG[\"archdir\"]'
invalid command name ""archdir""
% exec ruby -r rbconfig -e 'puts Config::CONFIG[\'archdir\']'
invalid command name "'archdir'"
% exec ruby -r rbconfig -e 'puts Config::CONFIG[archdir]'
invalid command name "archdir"
% exec ruby -r rbconfig -e 'puts Config::CONFIG\[archdir\]'
-e:1: unterminated string meets end of file
% exec ruby -r rbconfig -e 'puts Config::CONFIG\[\"archdir\"\]'
-e:1: unterminated string meets end of file
% exec "ruby -r rbconfig -e 'puts Config::CONFIG\[\"archdir\"\]'"
couldn't execute "ruby -r rbconfig -e 'puts Config::CONFIG["archdir"]'": no
such file or directory
Darren
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20090511/4719c60f/attachment.html>
More information about the macports-dev
mailing list