Magnus Henoch <[EMAIL PROTECTED]> writes:
> tla-update-ids --id-hint-tree doesn't recurse into subdirectories for
> me. That is, top-level files and directories in the target tree get
> the same ids as in the source tree, but files in subdirectories don't.
This patch makes my test case work:
--- orig/tla-update-ids.shpp
+++ mod/tla-update-ids.shpp
@@ -633,7 +633,13 @@
# We use "system" instead of run_cmd so we can look at the
# command exit-status. An exit-status of 0 or 1 is OK,
# anything else means there was an error.
- sub_command_status = system(make_cmd("'"$0"'"))
+ if (num_hint_trees == 0) {
+ sub_command_status = system(make_cmd("'"$0"'"))
+ } else if (num_hint_trees == 1) {
+ sub_command_status = system(make_cmd("'"$0"'", "--id-hint-tree",
hint_tree[0]))
+ } else {
+ print "* ERROR: cannot recurse into subdirectories with more than one
hint tree"
+ }
ok = (sub_command_status == 0 || sub_command_status == 1)
}
Maybe there's a more general solution, but I don't know awk well
enough to find it.
Magnus
_______________________________________________
Gnu-arch-users mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnu-arch-users
GNU arch home page:
http://savannah.gnu.org/projects/gnu-arch/