<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,4 +1,5 @@
 #!/usr/bin/perl
+$|=1;	# Flush writes as soon as print finishes.
 
 use strict;
 use warnings;
@@ -11,22 +12,29 @@ my $cwd = cwd;
 my $in_git = 0;
 my $scriptpath = dirname($0);
 my $outfile = $ARGV[0];
+# NOTE: ToFix: This breaks if the full path to the file contains a space character.
 
 my $releasever;
 
-$releasever = `cat $scriptpath/release_ver`;
+my $Win32 = 0;
 
+$Win32 = 1 if ($^O =~ /MSWin/i);
+open RELEASEVER, &quot;$scriptpath/release_ver&quot; || die (&quot;Can't open release_ver:$!&quot;);
+$releasever = &lt;RELEASEVER&gt;;
+close RELEASEVER;
 mkdir dirname($outfile);
 
 print &quot;Is this project under Git? &quot;;
 if (-d &quot;$scriptpath/../.git&quot; ) {
 	print &quot;Yes\n&quot;;
 	print &quot;Is Git installed? &quot;;
-	if ( `which git` ) {
+	if ( !$Win32 &amp;&amp; `which git` ) {
 		print &quot;Yes\n&quot;;
 		$in_git = 1;
 	} else {
-		print &quot;No\n&quot;;
+		print &quot;No&quot;;
+		print &quot; - can't check on Win32.&quot; if ($Win32);
+		print &quot;\n&quot;;
 		$in_git = 0;
 	}
 } else {</diff>
      <filename>tools/gen_buildnum_h.pl</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b47dd24f37828376ad948630e629a883b6afd37c</id>
    </parent>
  </parents>
  <author>
    <name>Dan Linder</name>
    <email>dan@linder.org</email>
  </author>
  <url>http://github.com/tycho/crisscross/commit/050ccffc41c55f33f0ff1c3643d4d61737369c2a</url>
  <id>050ccffc41c55f33f0ff1c3643d4d61737369c2a</id>
  <committed-date>2009-10-22T13:31:27-07:00</committed-date>
  <authored-date>2009-10-22T13:31:27-07:00</authored-date>
  <message>Remove dependancy on external 'cat' command to preference Perl code.</message>
  <tree>c4cfa6d09a2f6702e44331d6dc1ddcc8cfc44082</tree>
  <committer>
    <name>Dan Linder</name>
    <email>dan@linder.org</email>
  </committer>
</commit>
