Does just the last .bash* file get copied if it is newer?<div><br></div><div>I believe you keep redefining the task over and over so it is only dependent on one file.</div><div><br></div><div>-jacob</div><div><br><div class="gmail_quote">
On Tue, Dec 6, 2011 at 7:08 PM, David L. Anselmi <span dir="ltr"><<a href="mailto:anselmi@anselmi.us">anselmi@anselmi.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">Lorin Ricker wrote:<br>
> Are there any Rake/Ruby experts here in CLUE who'd be willing to look at<br>
> the above posting and give my question/problem a shot?<br>
<br>
</div>I don't know anything about rake so I have some questions about the code. If they're worth<br>
answering maybe that will help.<br>
<br>
tarDir = File.join BUPDIR, tarDirSuffix<br>
directory tarDir<br>
<br>
What's "directory tarDir" and why does it come after the assignment?<br>
<br>
desc "Backup #{fn} to .../#{tarDirSuffix}"<br>
<br>
What does this do? It (and the lines after) doesn't seem to run. Is that a hint?<br>
<br>
file tar => [src] do |t|<br>
<br>
This seems badly formed. tar seems to be a variable containing the full path to the backup file.<br>
src seems to be a variable containing the path to the source file. What's file? Does it make sense<br>
to say "file => [src]"?<br>
<br>
So I think your problem is not in the "is the file newer" logic but in your "file tar ..." loop.<br>
<br>
HTH,<br>
Dave<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
clue mailing list: <a href="mailto:clue@cluedenver.org">clue@cluedenver.org</a><br>
For information, account preferences, or to unsubscribe see:<br>
<a href="http://cluedenver.org/mailman/listinfo/clue" target="_blank">http://cluedenver.org/mailman/listinfo/clue</a><br>
</div></div></blockquote></div><br></div>