[{"id":1761968,"web_url":"http://patchwork.ozlabs.org/comment/1761968/","msgid":"<3e83fff4-2a8d-f16b-51cd-9d99441f443d@amsat.org>","list_archive_url":null,"date":"2017-09-01T20:31:06","subject":"Re: [Qemu-devel] [PATCH v5 03/12] scripts: Add archive-source.sh","submitter":{"id":70924,"url":"http://patchwork.ozlabs.org/api/people/70924/","name":"Philippe Mathieu-Daudé","email":"f4bug@amsat.org"},"content":"On 08/31/2017 03:42 AM, Fam Zheng wrote:\n> Signed-off-by: Fam Zheng <famz@redhat.com>\n> ---\n>   scripts/archive-source.sh | 29 +++++++++++++++++++++++++++++\n>   1 file changed, 29 insertions(+)\n>   create mode 100755 scripts/archive-source.sh\n> \n> diff --git a/scripts/archive-source.sh b/scripts/archive-source.sh\n> new file mode 100755\n> index 0000000000..84e84961d4\n> --- /dev/null\n> +++ b/scripts/archive-source.sh\n> @@ -0,0 +1,29 @@\n> +#!/bin/sh\n> +#\n> +# Author: Fam Zheng <famz@redhat.com>\n> +#\n> +# Create archive of source tree, including submodules\n> +#\n\nIt seems you missed the license here.\n\n> +\n> +set -e\n> +\n> +if test $# -lt 1; then\n> +    echo \"Usage: $0 <output>\"\n> +    exit 1\n> +fi\n> +\n> +submodules=$(git submodule foreach --recursive --quiet 'echo $name')\n> +\n> +if test -n \"$submodules\"; then\n> +    {\n> +        git ls-files\n> +        for sm in $submodules; do\n> +            (cd $sm; git ls-files) | sed \"s:^:$sm/:\"\n> +        done\n> +    } | grep -x -v $(for sm in $submodules; do echo \"-e $sm\"; done) > $1.list\n> +else\n> +    git ls-files > $1.list\n> +fi\n> +\n> +tar -cf $1 -T $1.list\n> +rm $1.list\n>","headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"ZMhVQfy6\"; dkim-atps=neutral"],"Received":["from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xkW9q6c2Wz9s7M\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat,  2 Sep 2017 06:31:42 +1000 (AEST)","from localhost ([::1]:59180 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1dnsbM-0008DV-8z\n\tfor incoming@patchwork.ozlabs.org; Fri, 01 Sep 2017 16:31:40 -0400","from eggs.gnu.org ([2001:4830:134:3::10]:38823)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <philippe.mathieu.daude@gmail.com>)\n\tid 1dnsay-0008CM-T6\n\tfor qemu-devel@nongnu.org; Fri, 01 Sep 2017 16:31:22 -0400","from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <philippe.mathieu.daude@gmail.com>)\n\tid 1dnsau-0003Es-3F\n\tfor qemu-devel@nongnu.org; Fri, 01 Sep 2017 16:31:16 -0400","from mail-qk0-x241.google.com ([2607:f8b0:400d:c09::241]:34436)\n\tby eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)\n\t(Exim 4.71) (envelope-from <philippe.mathieu.daude@gmail.com>)\n\tid 1dnsat-0003E0-Uc\n\tfor qemu-devel@nongnu.org; Fri, 01 Sep 2017 16:31:12 -0400","by mail-qk0-x241.google.com with SMTP id a77so947272qkb.1\n\tfor <qemu-devel@nongnu.org>; Fri, 01 Sep 2017 13:31:11 -0700 (PDT)","from [192.168.1.10] ([181.93.89.178])\n\tby smtp.gmail.com with ESMTPSA id\n\to67sm704527qte.71.2017.09.01.13.31.08\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tFri, 01 Sep 2017 13:31:10 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=sender:subject:to:cc:references:from:message-id:date:user-agent\n\t:mime-version:in-reply-to:content-language:content-transfer-encoding; \n\tbh=ASsN2GQOjdaAtEkuAR6kIyOcYGMB2TRI1BW38TVlPio=;\n\tb=ZMhVQfy6+H+djklWLKkQAWIDMji+waL2/ZaG2YCWn03lOqy9uao3gWHiIWJx719kGf\n\tayYnC46/QlFZG4gRDtBg7lkTcoz03qgQ/WK66y7q4kar7gIU5W1g0L68CgqlzQtFet6A\n\tXBQxu7HUKBOYKa9wF3CQKihc0SmdvymCggRbrUrrb03jZXlZuoWOhKWlvEKPMmY5YFvb\n\ta6rt0rOdsfGITyn0CMsZhjEK3ZqcbpgQ8xzTLiP8M3USXPQUOJro8R1gyazvjzvmFtOf\n\tdrT9APgWoR4m86UORvmriy1ZwIPlcn+emvo38d7o5xPzyT5xRdzhCRHfgxCMXt6V7kVf\n\tH8nw==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:sender:subject:to:cc:references:from:message-id\n\t:date:user-agent:mime-version:in-reply-to:content-language\n\t:content-transfer-encoding;\n\tbh=ASsN2GQOjdaAtEkuAR6kIyOcYGMB2TRI1BW38TVlPio=;\n\tb=CKH1tdRGvFsGhu3p3x/j8ewbM5CHjdeM3+TfESMVvVlVoylDYNMH0sW+lmnh2AaiKD\n\t59ga7UWAYk5+eu+eSQVFZs6O+LHCLvrD4ph9z7Uw5f4XxeYLbp4ju7uFu0xWbAo4fxMg\n\t3m7C4m1NVi7c8DwtvVr1JZqRtMbOwrUu8yjq98agunOXmcgJucNF7fzj/hrfIarp3PJA\n\tywJlrhkPdfTAgzQoOk++zihwSVX0qk5OJ6B6pozJ8e5NWO5wScYNLMRSZdtAA8Hd1+L0\n\t/e2zl7zDhMKOwLpP15WiUIwRo2tV85sP/ApgxY6L1zROSc8NEUL1lqXmdQDVmP2Ti+jw\n\tXvfw==","X-Gm-Message-State":"AHPjjUiwdTBnCK+T3qiuCFWYQKkxJS4jY6SZVP6YILNOPdsTHtd9ePgn\n\thhKL7xjONPNVAA==","X-Google-Smtp-Source":"ADKCNb5V69/r9HRCxDAAjn1x7tlTDWmgfGiNLRmrIeMrdBfissRqdOJeKkcE9tnFDBD4YioAd0GZCQ==","X-Received":"by 10.55.4.1 with SMTP id 1mr4232062qke.325.1504297871228;\n\tFri, 01 Sep 2017 13:31:11 -0700 (PDT)","To":"Fam Zheng <famz@redhat.com>, qemu-devel@nongnu.org","References":"<20170831064302.14427-1-famz@redhat.com>\n\t<20170831064302.14427-4-famz@redhat.com>","From":"=?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <f4bug@amsat.org>","Message-ID":"<3e83fff4-2a8d-f16b-51cd-9d99441f443d@amsat.org>","Date":"Fri, 1 Sep 2017 17:31:06 -0300","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.3.0","MIME-Version":"1.0","In-Reply-To":"<20170831064302.14427-4-famz@redhat.com>","Content-Type":"text/plain; charset=utf-8; format=flowed","Content-Language":"en-US","Content-Transfer-Encoding":"7bit","X-detected-operating-system":"by eggs.gnu.org: Genre and OS details not\n\trecognized.","X-Received-From":"2607:f8b0:400d:c09::241","Subject":"Re: [Qemu-devel] [PATCH v5 03/12] scripts: Add archive-source.sh","X-BeenThere":"qemu-devel@nongnu.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Id":"<qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<http://lists.nongnu.org/archive/html/qemu-devel/>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Cc":"Peter Maydell <peter.maydell@linaro.org>, Kamil Rytarowski\n\t<kamil@netbsd.org>, stefanha@redhat.com, Cleber Rosa <crosa@redhat.com>,\n\tpbonzini@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?=\n\t<alex.bennee@linaro.org>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>"}},{"id":1762912,"web_url":"http://patchwork.ozlabs.org/comment/1762912/","msgid":"<20170905020325.GC22515@lemon.lan>","list_archive_url":null,"date":"2017-09-05T02:03:25","subject":"Re: [Qemu-devel] [PATCH v5 03/12] scripts: Add archive-source.sh","submitter":{"id":24872,"url":"http://patchwork.ozlabs.org/api/people/24872/","name":"Fam Zheng","email":"famz@redhat.com"},"content":"On Fri, 09/01 17:31, Philippe Mathieu-Daudé wrote:\n> On 08/31/2017 03:42 AM, Fam Zheng wrote:\n> > Signed-off-by: Fam Zheng <famz@redhat.com>\n> > ---\n> >   scripts/archive-source.sh | 29 +++++++++++++++++++++++++++++\n> >   1 file changed, 29 insertions(+)\n> >   create mode 100755 scripts/archive-source.sh\n> > \n> > diff --git a/scripts/archive-source.sh b/scripts/archive-source.sh\n> > new file mode 100755\n> > index 0000000000..84e84961d4\n> > --- /dev/null\n> > +++ b/scripts/archive-source.sh\n> > @@ -0,0 +1,29 @@\n> > +#!/bin/sh\n> > +#\n> > +# Author: Fam Zheng <famz@redhat.com>\n> > +#\n> > +# Create archive of source tree, including submodules\n> > +#\n> \n> It seems you missed the license here.\n\nI can add one.\n\nFam\n\n> \n> > +\n> > +set -e\n> > +\n> > +if test $# -lt 1; then\n> > +    echo \"Usage: $0 <output>\"\n> > +    exit 1\n> > +fi\n> > +\n> > +submodules=$(git submodule foreach --recursive --quiet 'echo $name')\n> > +\n> > +if test -n \"$submodules\"; then\n> > +    {\n> > +        git ls-files\n> > +        for sm in $submodules; do\n> > +            (cd $sm; git ls-files) | sed \"s:^:$sm/:\"\n> > +        done\n> > +    } | grep -x -v $(for sm in $submodules; do echo \"-e $sm\"; done) > $1.list\n> > +else\n> > +    git ls-files > $1.list\n> > +fi\n> > +\n> > +tar -cf $1 -T $1.list\n> > +rm $1.list\n> >","headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)","ext-mx08.extmail.prod.ext.phx2.redhat.com;\n\tdmarc=none (p=none dis=none) header.from=redhat.com","ext-mx08.extmail.prod.ext.phx2.redhat.com;\n\tspf=fail smtp.mailfrom=famz@redhat.com"],"Received":["from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xmVPy3H1Sz9sNr\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue,  5 Sep 2017 12:04:06 +1000 (AEST)","from localhost ([::1]:56382 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1dp3Dg-00016l-Kt\n\tfor incoming@patchwork.ozlabs.org; Mon, 04 Sep 2017 22:04:04 -0400","from eggs.gnu.org ([2001:4830:134:3::10]:58170)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <famz@redhat.com>) id 1dp3DE-00016E-UB\n\tfor qemu-devel@nongnu.org; Mon, 04 Sep 2017 22:03:41 -0400","from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <famz@redhat.com>) id 1dp3DA-0003hs-1m\n\tfor qemu-devel@nongnu.org; Mon, 04 Sep 2017 22:03:36 -0400","from mx1.redhat.com ([209.132.183.28]:42236)\n\tby eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)\n\t(Exim 4.71) (envelope-from <famz@redhat.com>) id 1dp3D9-0003hM-Ra\n\tfor qemu-devel@nongnu.org; Mon, 04 Sep 2017 22:03:31 -0400","from smtp.corp.redhat.com\n\t(int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby mx1.redhat.com (Postfix) with ESMTPS id DE288C0587D3;\n\tTue,  5 Sep 2017 02:03:30 +0000 (UTC)","from localhost (ovpn-12-97.pek2.redhat.com [10.72.12.97])\n\tby smtp.corp.redhat.com (Postfix) with ESMTP id 8C48713CAA7;\n\tTue,  5 Sep 2017 02:03:26 +0000 (UTC)"],"DMARC-Filter":"OpenDMARC Filter v1.3.2 mx1.redhat.com DE288C0587D3","Date":"Tue, 5 Sep 2017 10:03:25 +0800","From":"Fam Zheng <famz@redhat.com>","To":"Philippe =?iso-8859-1?q?Mathieu-Daud=E9?= <f4bug@amsat.org>","Message-ID":"<20170905020325.GC22515@lemon.lan>","References":"<20170831064302.14427-1-famz@redhat.com>\n\t<20170831064302.14427-4-famz@redhat.com>\n\t<3e83fff4-2a8d-f16b-51cd-9d99441f443d@amsat.org>","MIME-Version":"1.0","Content-Type":"text/plain; charset=iso-8859-1","Content-Disposition":"inline","In-Reply-To":"<3e83fff4-2a8d-f16b-51cd-9d99441f443d@amsat.org>","User-Agent":"Mutt/1.8.3 (2017-05-23)","X-Scanned-By":"MIMEDefang 2.79 on 10.5.11.13","X-Greylist":"Sender IP whitelisted, not delayed by milter-greylist-4.5.16\n\t(mx1.redhat.com [10.5.110.32]);\n\tTue, 05 Sep 2017 02:03:31 +0000 (UTC)","Content-Transfer-Encoding":"quoted-printable","X-detected-operating-system":"by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]\n\t[fuzzy]","X-Received-From":"209.132.183.28","Subject":"Re: [Qemu-devel] [PATCH v5 03/12] scripts: Add archive-source.sh","X-BeenThere":"qemu-devel@nongnu.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Id":"<qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<http://lists.nongnu.org/archive/html/qemu-devel/>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Cc":"Peter Maydell <peter.maydell@linaro.org>, qemu-devel@nongnu.org, Kamil\n\tRytarowski <kamil@netbsd.org>, stefanha@redhat.com, Cleber Rosa\n\t<crosa@redhat.com>, pbonzini@redhat.com, Alex =?iso-8859-1?q?Benn=E9e?=\n\t<alex.bennee@linaro.org>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>"}}]