autobuild: Use cp --recursive --link --archive
authorAndrew Bartlett <abartlet@samba.org>
Mon, 4 Jan 2016 01:20:54 +0000 (14:20 +1300)
committerStefan Metzmacher <metze@samba.org>
Tue, 5 Jan 2016 08:10:24 +0000 (09:10 +0100)
commitcce16123feedfbf0e325182c6e301377d8a60749
treea8777a7c0ec9b9993785445dee8cdc62399a5b22
parent9a91fce2deccfe0445363b2a35f2cfb72fdff766
autobuild: Use cp --recursive --link --archive

This works on waf based builds as source files are not modified during the build

TODO: In order to make sure build doesn't influence each other,
we need to add something like:

         try:
             if options.rebase is not None:
                 rebase_tree(options.rebase, rebase_branch=options.branch)
+            run_cmd("find -type f | xargs chmod -w", show=True, dir=test_master)
         except Exception:

But that means we need to change the way 'make distcheck' works for the
standalone libraries.

For now this will help to reduce the (mem)disk usage of an autobuild a lot.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
script/autobuild.py