From patchwork Mon Dec 22 05:50:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kabe@sra-tohoku.co.jp X-Patchwork-Id: 5526051 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Original-To: patchwork-dash@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 25188BEEA8 for ; Mon, 22 Dec 2014 06:06:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4FE1320160 for ; Mon, 22 Dec 2014 06:06:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B591F2015A for ; Mon, 22 Dec 2014 06:06:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752057AbaLVGGF (ORCPT ); Mon, 22 Dec 2014 01:06:05 -0500 Received: from vega.sra-tohoku.jp ([58.12.125.173]:58631 "EHLO vega.sra-tohoku.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751024AbaLVGGE (ORCPT ); Mon, 22 Dec 2014 01:06:04 -0500 X-Greylist: delayed 938 seconds by postgrey-1.27 at vger.kernel.org; Mon, 22 Dec 2014 01:06:04 EST Received: from vega.sra-tohoku.jp (localhost4 [127.0.0.1]) by vega.sra-tohoku.jp (8.13.8/8.13.4/vega) with SMTP id sBM5oNBj024105; Mon, 22 Dec 2014 14:50:23 +0900 (JST) (envelope-from kabe@sra-tohoku.co.jp) From: Message-ID: <2410222201414.mjQV5WR4491251$@sra-tohoku.co.jp.msg> To: dash@vger.kernel.org Cc: kabe@sra-tohoku.co.jp Subject: [PATCH] create builtins.c properly on old cpp X-Mailer: mnews [version 1.22PL5] 2002-11-27(Wed) Date: Mon, 22 Dec 2014 14:50:23 +0900 Sender: dash-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dash@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Encontered this on ancient gcc-2.95.3 environment; src/builtins.def.in -> src/builtins.def generation emitted ^ $ lines (likely by /* */), which where NOT ignored by src/mkbuiltins and generating bogus builtins.c. -- kabe --- To unsubscribe from this list: send the line "unsubscribe dash" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff -U6 -p dash-0.5.8/src/mkbuiltins.dist dash-0.5.8/src/mkbuiltins --- dash-0.5.8/src/mkbuiltins.dist Sun Sep 28 17:19:32 2014 +++ dash-0.5.8/src/mkbuiltins Mon Dec 22 14:36:43 2014 @@ -66,13 +66,13 @@ cat <<\! */ #include "shell.h" #include "builtins.h" ! -< $builtins sed '/^#/d; /^$/d' > $temp +< $builtins sed '/^#/d; /^ *$/d' > $temp awk '{ printf "int %s(int, char **);\n", $1}' $temp echo ' const struct builtincmd builtincmd[] = {' awk '{ for (i = 2 ; i <= NF ; i++) { line = $i "\t" $1 if ($i ~ /^-/)