<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,6 +1,7 @@
 # -*- coding: utf-8 -*-
 require &quot;#{File.dirname(__FILE__)}/../../lib/handsoap/parser.rb&quot;
 require &quot;#{File.dirname(__FILE__)}/../../lib/handsoap/compiler.rb&quot;
+require 'pathname'
 
 # TODO
 # options:
@@ -75,11 +76,7 @@ module Handsoap #:nodoc:
         def file_contents(relative_destination, &amp;block)
           destination = destination_path(relative_destination)
           temp_file = Tempfile.new(&quot;handsoap_generator&quot;)
-          if RUBY_PLATFORM =~ /linux/
-            canonical_path = `readlink -fn '#{source_path(&quot;/.&quot;)}'`
-          else
-            canonical_path = File.expand_path(source_path(&quot;/.&quot;))
-          end
+          canonical_path = Pathname.new(source_path(&quot;/.&quot;)).realpath.to_s
           temp_file_relative_path = relative_path(temp_file.path, canonical_path)
           begin
             yield temp_file</diff>
      <filename>generators/handsoap/handsoap_generator.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e406c4abd4a5d1c49ffe831bc3e70251e0a9ad09</id>
    </parent>
  </parents>
  <author>
    <name>Troels</name>
    <email>tkn@tkn-laptop.(none)</email>
  </author>
  <url>http://github.com/troelskn/handsoap/commit/202ea55d4de7ec837b15c62a2be26ada1737a95e</url>
  <id>202ea55d4de7ec837b15c62a2be26ada1737a95e</id>
  <committed-date>2009-07-12T04:45:09-07:00</committed-date>
  <authored-date>2009-07-12T04:45:09-07:00</authored-date>
  <message>Replaced shell call to readlink with library pathname.realpath</message>
  <tree>6d913576d71e8344a5aafed6573370eee6ee97da</tree>
  <committer>
    <name>Troels</name>
    <email>tkn@tkn-laptop.(none)</email>
  </committer>
</commit>
