@missing_log = ();
# these files are considered unimportant and won't be included in the archive.
-@junk_file_list = ("*~", "*.$$$", "3rdparty", "*.aps", "*.bak", "binaries",
+@junk_file_list = ("*~", "*.$$$", "*.aps", "*.bak", "binaries",
"*.bsc", "*.cgl", "*.csm", "CVS", "Debug", "*.dll", "*.err", "*.exe",
"generated_*", "*.git", "*.glb", "inprogress", "ipch", "*.llm",
"*.log", "*.lnk",
# generic versions work on sane OSes.
$find_tool = which('find');
-$tar_tool = which('tar');
+# for mac, try to match gnu tar first.
+$tar_tool = which('gtar');
+if ( ! -f "$tar_tool" ) {
+ # fall back to regular tar.
+ $tar_tool = which('tar');
+}
#print "find tool: $find_tool\n";
#print "tar tool: $tar_tool\n";