---------- Forwarded message ---------- From: Dominic Sisneros < dsisnerogmail.com">dsisnerogmail.com> Date: Nov 9, 2006 3:12 PM
Subject: windows xp package task To: Rake Development and Discussion < rake-develrubyforge.org">rake-develrubyforge.org>
Creating a zip package worked on the first try, but tar complained that it 'Cannot fork: Function not implemented'
.
It turns out that Cygwin's tar can't run gzip. So once again, it's time
to fix the Rake source code. This time we're talking about rake/packagetask.rb, line 117 that calls tar with the z option. I replaced that one line with a separate call to tar and gzip:
sh %{tar cvf #{package_name}.tar #{package_name}} if flag == 'z' sh %{gzip #{package_name}.tar} end
You'll need to be a bit more fancy if you want to support both
.tar.gz and .tgz suffixes, but this little fix will allow you to create
.tar.gz.