|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 5/5] make: Make "src-tarball" target actually make a source tarball
On 07/16/2014 04:06 PM, Ian Jackson wrote:
I'll add a "subtree-find" command (perhaps renaming the other to "subtree-force-update"; then as per IanC's suggestion, I'll make this depend on subtree-force-update unless some sensible parameter is set. diff --git a/tools/misc/mktarball b/tools/misc/mktarball... Ack. +trap finish EXITThe EXIT trap handler should probably `set +e'. Ack.
I'm not so much worried about concurrent invocation per se, but about dealing with stuff possibly left over from a previous run. If we use a fixed path, we have to always rm -rf the path before starting, which seems unnecessarily risky to me. (Or we could not rm -rf the path, which is even worse from a consistency point of view.) Creating a new temporary directory just seems like the cleanest, safest thing to do. It's not like it's that expensive. (Re concurrent invocation: The output filename may collide, but at least you'll get a consistent snapshot of that one particular tree. What I'd be more worried about is racing with make subdir-force-update and getting inconsisent subtree archives.) If you do that you can do away with the trap handler entirely. You should probably make git_archive_into delete the destination directory. I'm not sure what the fixed filename has to do with cleanup -- I would want to remove the temporary directory on a failure regardless. +GZIP=-9v tar cz -f $xen_root/dist/xen-$desc.tar.gz -C $tdir xen-$desc + +echo "Source tarball in $xen_root/dist/xen-$desc.tar.gz" \ No newline at end of fileNo newline at end of file. Ack. -George _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |