From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-4.0 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by dcvr.yhbt.net (Postfix) with ESMTP id 516DE1F45E for ; Thu, 20 Feb 2020 20:40:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728926AbgBTUk4 (ORCPT ); Thu, 20 Feb 2020 15:40:56 -0500 Received: from pb-smtp1.pobox.com ([64.147.108.70]:63872 "EHLO pb-smtp1.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728582AbgBTUk4 (ORCPT ); Thu, 20 Feb 2020 15:40:56 -0500 Received: from pb-smtp1.pobox.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 3927150F05; Thu, 20 Feb 2020 15:40:54 -0500 (EST) (envelope-from junio@pobox.com) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=OtdwxHqI/dBG4jdSkC3uS8an+Xw=; b=X9LCiQ oMp5QUHnfaWJAYjRDeFE78K80Y7hYBSz4179ol03m6/PEncxEHKdSpqL62adpm0f XMfmBT5I32gfrwpYAYUZnh5wa1c5jnbUNiwzAK9Qz4BWbN/sPKEZKD45lWhbIw2W iCfJL3PCy780kBsE5EmJea5bwNts9fuCKSkxc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=Hk91An1mFOulAjqHQv0e+HMEClPpRpqf itmIdkm4b93gIpJznz6IcJI6uMeF9nZ6ZjXVIUP3FK3auSywcH/iUqvt8gXsqJwV tkJ8cXXIhA4axWoP0Av/FK/KncNa3jW95Jex0sA6OyrE5RNTS15oE9snj7eVpwVu vCylznCvrrs= Received: from pb-smtp1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 3139050F04; Thu, 20 Feb 2020 15:40:54 -0500 (EST) (envelope-from junio@pobox.com) Received: from pobox.com (unknown [34.76.80.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp1.pobox.com (Postfix) with ESMTPSA id 8DA9850F03; Thu, 20 Feb 2020 15:40:53 -0500 (EST) (envelope-from junio@pobox.com) From: Junio C Hamano To: Emily Shaffer Cc: git@vger.kernel.org, =?utf-8?Q?Martin_=C3=85gren?= , Johannes Schindelin Subject: Re: [PATCH v8 09/15] bugreport: generate config safelist based on docs References: <20200220015858.181086-1-emilyshaffer@google.com> <20200220015858.181086-10-emilyshaffer@google.com> Date: Thu, 20 Feb 2020 12:40:51 -0800 In-Reply-To: <20200220015858.181086-10-emilyshaffer@google.com> (Emily Shaffer's message of "Wed, 19 Feb 2020 17:58:52 -0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: 49BC4972-5421-11EA-BAEC-C28CBED8090B-77302942!pb-smtp1.pobox.com Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Emily Shaffer writes: > --- /dev/null > +++ b/generate-bugreport-config-safelist.sh > @@ -0,0 +1,18 @@ > +#!/bin/sh > + > +cat < +/* Automatically generated by bugreport-generate-config-safelist.sh */ > + > + > +static const char *bugreport_config_safelist[] = { > +EOF > + > +# cat all regular files in Documentation/config > +find Documentation/config -type f -exec cat {} \; | > +# print the command name which matches the annotate-bugreport macro > +sed -n 's/^\([^ ]*\) *annotate:bugreport\[include\].* ::$/ "\1",/p' \ > + | sort > + End the first line with a pipe '|' instead of a backslash, and lose the pipe from the beginning of the second line. > +cat < +}; > +EOF