From patchwork Wed May 31 15:51:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Moore X-Patchwork-Id: 9757491 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D1FDF60390 for ; Wed, 31 May 2017 15:55:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C4145284BF for ; Wed, 31 May 2017 15:55:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B809D282E8; Wed, 31 May 2017 15:55:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from emsm-gh1-uea11.nsa.gov (smtp.nsa.gov [8.44.101.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 47B54282E8 for ; Wed, 31 May 2017 15:55:31 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.38,424,1491264000"; d="scan'208";a="6234648" IronPort-PHdr: =?us-ascii?q?9a23=3A9IkZ2hBqh5e6BNe0rKwlUyQJP3N1i/DPJgcQr6Af?= =?us-ascii?q?oPdwSPr6psmwAkXT6L1XgUPTWs2DsrQf2rWQ7/6rCDVIyK3CmUhKSIZLWR4BhJ?= =?us-ascii?q?detC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+?= =?us-ascii?q?KPjrFY7OlcS30P2594HObwlSijewZbF/IA+5oAjQucUbhZZuIbstxxXUpXdFZ/?= =?us-ascii?q?5Yzn5yK1KJmBb86Maw/Jp9/ClVpvks6c1OX7jkcqohVbBXAygoPG4z5M3wqBnM?= =?us-ascii?q?VhCP6WcGUmUXiRVHHQ7I5wznU5jrsyv6su192DSGPcDzULs5Vyiu47ttRRT1hi?= =?us-ascii?q?gHLTo5+3zJhMJ2gqxQvRatqwViz4LIZY2YMud1cKHActMAXWdPQ8ZfWTJPDI2/?= =?us-ascii?q?YYQAAPYOM+lAr4T/ulcDowWxBRK3CePzyDJFnGP60bEg3ukjFwzNwQwuH8gJsH?= =?us-ascii?q?TRtNj7Lr0dUf2xzKLVyjvDaPRW2S3j54PVdR0hufSMXbV3ccrL10YiDBnFgUuN?= =?us-ascii?q?pozlJTyVyv4BvHSc7+plTO+ijXMspQJpojW328shhYbEipgVx1zZ7yl13ok4Kc?= =?us-ascii?q?OiREJmedKoDodcuiWAO4drTM4uXXtktDs5x7AIo5K3YisHxZI6zBDFcfOHaZKH?= =?us-ascii?q?4hf7WeaUJjd3mWxqdaqkhxa37Uig0ur8VtSo0FpSripKjN3MtncV2hzP8MeHUP?= =?us-ascii?q?p9/lq62TqVywDS6v1LIUAzlabBLZ4u3qUwmYYJvUTGHy/2nF36jK6Qdko65uil?= =?us-ascii?q?8/nrb7rpq5OGN4J4lxvyProhl8ChG+g0LxACX22B9uS90L3j81f5QLJPjvAuia?= =?us-ascii?q?nWrpTaJcUdpq6kDA5Zy50s6xGiDzegzNsXg2IHIUlZeBOHk4fpO1bOLOr+Dfek?= =?us-ascii?q?mVugijhrx/fYPrH5GJXCMmDDkKv9fbZ680Ncyg0zzdZF6JJICrEOOvTzV1TztN?= =?us-ascii?q?zfCB85Nha7w/37CNpjzIMeQniDAqiDMKPdqVWI/P4gI/GQZI8JvzbwM/ol5/z0?= =?us-ascii?q?gnAlml8dZq6p3Z0WaHCmBflmLUGZYWfjg9gaDGcKuBY+TPHwhF2FSz5TaG64X7?= =?us-ascii?q?gg6TEjFIKmEYDDS5ijgbyA2Ce7G4NZZnpdB1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i0k8waXE+wYggvlRul4UL6yLZA?= =?us-ascii?q?pKlkNWbcX11Ify/sI2FlSKuwuaKIY9RT55MwrSVXTOO8bEiESr78vxQazyTjH3?= =?us-ascii?q?FEyD8ndzGqvZP5nxNhhWKZLXZzqmDWedt3xRvF49zcX/FR1CIcRCZkkTnXGkS8?= =?us-ascii?q?P96x8NWQlpfDqfy+W3u6VpJNdSnrzIWAtDa05GBxGh2/h/GzmtvmEQcmyi/3zd?= =?us-ascii?q?9qWjvUrBzkeInky7y6Mf57fklvHFL88c16GoV6koQunpEfxX8ah5uO8HocjGf8?= =?us-ascii?q?Lc5b1bj5bHoXSj4B28TV7xT92E1/MnKJwJr0Vm2Hzct8Y9m2eHkZ1jgm4MBNDK?= =?us-ascii?q?eU8LtEnS1ur1q9sQ7RZ/99kSsHxfso9nEan/kDuBAxwSWFHrASAU5YMDTvlxuW?= =?us-ascii?q?6dC+t75aZGWxfri2z0p+m86uDK2YrgFbQnb5dY8oHTVs4cVnLFLMzHrz55n6eN?= =?us-ascii?q?nWcN0erQOUkxHdgOhVMp4xkOQFhTZ/M2LnoXIl0/I7jQBp3ZyipIiIMXht/Kai?= =?us-ascii?q?DxFENz31e8MS9ijjjalEmMaaxYevHo9uGj8TRpvnUeqoEC4OtfTgLwuOCiAzpW?= =?us-ascii?q?qAFLrQGA+e511qr3TRHJC3L3uXPmUWzc1+RBmBI0xSmBgUUy8nnp49CA+q3Nbu?= =?us-ascii?q?cEFl5j8P/F71sQZMyvl2OBnlSWfTvhyoajApSJiFMBVZ8A9C50DPMcyR8O1/BS?= =?us-ascii?q?dY8YO9rAaVMGyUexxIDX0VWkyDH13jMKOh5d/c8+ifA+qzNPXObquTpuxZTfeH?= =?us-ascii?q?34qv0pFh/zaOKMqAImViA+c82kpZUnBzA97ZlCkXSywLiyLNaNaWpBKm9S1zqs?= =?us-ascii?q?Cw7ujrWB716oSVELZSN8tg+wytgaifLeGQnDh2JSxe1pwS2X/C0KIf00IKiyFy?= =?us-ascii?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GdrE?= =?us-ascii?q?1ZkEp1OS6j1ZVcM91N4iILXDVXuzqdpsaySMtZ1c91FJIMI9Z/u3bhGKxfIpSR?= =?us-ascii?q?pWM5uqD3wH/D5z88qEu6xCm0G6KgTuJZ+XEeFRstJ2uAr0kgEfcs8n3S813WtV?= =?us-ascii?q?B05/lUBr6KjUproTZ9GotBBjFG1Hy/KFRzVnZGuf1AKKvJa8xcX+UyZRi3Nhwx?= =?us-ascii?q?D/4pxUqJ/V1vkHf4ZCxzuA1a+zzdXwYqVCkVhKvtliMEqs29Pz8VVY5IZy07by?= =?us-ascii?q?jZMwKbhTxXvBFHZkF2XJAZB81I+60H0YtR5cXOU0CsJj8ZXBZ6LAI3zeJflVJf?= =?us-ascii?q?sEWfYS3dDRCndezVvR1zYMict9OmI+rh/AdflIzntP43978ZS32hgw2tTsjUr5?= =?us-ascii?q?Xgud2SqkuOaKD4PvW+YX/GUjfBlg2/iqk/D5bU5SjTLBRUJIRgxXoif5fhFXbB?= =?us-ascii?q?PQ5aKKIDO0pbSad6ZM1dreBUe8BoZKQE9bJjCx+cWhzvH4mvo+VcIVbIWTTSNS?= =?us-ascii?q?OB/fKjoYjL97zSVfDgZtCQx3bAW693JIl15iT7G7jwzY9T4U722vBz9kxkV1TJ?= =?us-ascii?q?LyeBo8n/KQ8R4smtaFfitIUzHTzKGJdwjGbtxkZYesoPWC2q7I4Xx45F6HvrUu?= =?us-ascii?q?J41VXzsPdO+LZ674k3/6ppxt2wJavILvRaq0BnCACOBgp27pUtHHR/R2dJb+8N?= =?us-ascii?q?MvfeY7oWgt31puDqE6wX9AeV9PZHadvGIEHBntewCi2GRRxDhgcBpiYQLhGA2P?= =?us-ascii?q?6dh690VcGlqPD72k03+Vi+KQUGzLR36oea4aeIofLXbx/NzbgFRqfqR9n8rrI3?= =?us-ascii?q?u0+I4v0kjrEOcHRvYwK7COgdStIdxmD4wKAo1y0sFc3DH6jn+PFeSX00hS7glI?= =?us-ascii?q?p7H1UNHfMYB7yL8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?us-ascii?q?L23x7r17LBtvcg7NY7S5msfqqfyPZptVv3/Z8Ek9LSbdux0Gz/y7UxZ7b5S0iH?= =?us-ascii?q?noJ5AwXD1BpcV3ChR6BItPB98Arw2/Dp+agKG7kd6x9F9ktOIRtKrwC+zK1M6n?= =?us-ascii?q?0IlrWJha/0OLNi7LBKZ3mkRlkviygvDY35n2DcPtZ8gJVPB/QmHfcb/GAoS/JS?= =?us-ascii?q?6SOsLmZUFJ7aSQ0LRnXRWNfCr5RbaJtDW4NPV45kU20oh4fOvVzDww4LDXwd/y?= =?us-ascii?q?Z2BApie/tn6EL5pf40bMBezZRR5UTuCF8Gl9F60NcYT07PsOMcAlwNWE+Al88j?= =?us-ascii?q?BC0MqDI6i8oU7A3U11dY7bLET3wSY2R5EKLw6kPEsvn2DZsHLdDmpYLse/NMlt?= =?us-ascii?q?j8yZDhv350l+gWstfHJOGnL0RdeNPmgWw8e+axeW+wJLDtYDmem3dFUmtq2zT+?= =?us-ascii?q?lnJJFFmeSstLUantdlMSbPRNJVPyvINr95IiJRDvnTpFgvehMEsaI6WoQyZZeV?= =?us-ascii?q?O04HLUGAyT/yzQvFzE30eNys1LqTLCYQ7HpH06rP0SJQqAmhpfaZnsrjXajWbJ?= =?us-ascii?q?7sR/HSKislWS+eRTkpD0ap/U2ru+EFvPqFO2sfpE4bYj6KAg4Juq9vtcTQDnPU?= =?us-ascii?q?meB7fp0KgfeaWzrqSC15j6o/HSBLulqJQ/UdFAnadXjhgHBTuAa6PP9D4Wrlb6?= =?us-ascii?q?GExqpSQ+EWGYVMcviFTNbZev1TPCkomSsDOOa9ftzcqLA53kjOTWQHD6mbvGGZ?= =?us-ascii?q?GVWbRv2a2iLDQZQev49yvDEhvN3XgHxZCaPNao6Wujrm14m/livQ7fXbUW43bm?= =?us-ascii?q?Qvje4CCXXHyx5FfjJXQ+oJsV3gF/bTL31H02gk3Kc3gxI=3D?= X-IPAS-Result: =?us-ascii?q?A2FiDAAa5i5Z/wHyM5BdGgEBAQECAQEBAQgBAQEBFQEBAQE?= =?us-ascii?q?CAQEBAQgBAQEBgwEmA2WBCoNyhn+EDJBbjRyLBiiFfgOCalcBAQEBAQEBAQIBA?= =?us-ascii?q?mgogjMkgkkCIFkDCQIXCAUCIgQCAgMBQykFiFOBUqxFgiYmAotcgQuFVoIWimS?= =?us-ascii?q?CYAEEiUeGYo16niMQF4ZVlE5YgQowIQgbFYdkWolTAQEB?= Received: from unknown (HELO tarius.tycho.ncsc.mil) ([144.51.242.1]) by emsm-gh1-uea11.nsa.gov with ESMTP; 31 May 2017 15:54:56 +0000 Received: from prometheus.infosec.tycho.ncsc.mil (prometheus [192.168.25.40]) by tarius.tycho.ncsc.mil (8.14.4/8.14.4) with ESMTP id v4VFpHTt027493; Wed, 31 May 2017 11:52:08 -0400 Received: from tarius.tycho.ncsc.mil (tarius.infosec.tycho.ncsc.mil [144.51.242.1]) by prometheus.infosec.tycho.ncsc.mil (8.15.2/8.15.2) with ESMTP id v4VFpBAV069104 for ; Wed, 31 May 2017 11:51:11 -0400 Received: from goalie.tycho.ncsc.mil (goalie [144.51.242.250]) by tarius.tycho.ncsc.mil (8.14.4/8.14.4) with ESMTP id v4VFpB9l027490 for ; Wed, 31 May 2017 11:51:11 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A1CmDABu5S5Zhxy3hNFdHAEBBAEBCgEBgywmaIEKg3KGf4QMkFuNHIsNHIhwVwECAQEBAQECEwEBAQoLCQgohXGBBgUCJgJJKYhYgVKcN5ALgiaMBIELhVaCFopkgmAFiUeGYo16niMQhmyUToFhMCEIGxWEeQxUggskNolTAQEB X-IPAS-Result: A1CmDABu5S5Zhxy3hNFdHAEBBAEBCgEBgywmaIEKg3KGf4QMkFuNHIsNHIhwVwECAQEBAQECEwEBAQoLCQgohXGBBgUCJgJJKYhYgVKcN5ALgiaMBIELhVaCFopkgmAFiUeGYo16niMQhmyUToFhMCEIGxWEeQxUggskNolTAQEB X-IronPort-AV: E=Sophos;i="5.38,424,1491278400"; d="scan'208";a="6072944" Received: from emsm-gh1-uea10.corp.nsa.gov (HELO emsm-gh1-uea10.nsa.gov) ([10.208.41.36]) by goalie.tycho.ncsc.mil with ESMTP; 31 May 2017 11:51:07 -0400 IronPort-PHdr: =?us-ascii?q?9a23=3AiiGcMRPSkZ8ByIDPtOQl6mtUPXoX/o7sNwtQ0KIM?= =?us-ascii?q?zox0LPr8rarrMEGX3/hxlliBBdydsKMbzbaI+PG5EUU7or+5+EgYd5JNUxJXwe?= =?us-ascii?q?43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRp?= =?us-ascii?q?OOv1BpTSj8Oq3Oyu5pHfeQtFiT6/bL9oIxi7rArdu80LjYB/Nqs/1xzFr2dSde?= =?us-ascii?q?9L321oP1WTnxj95se04pFu9jlbtuwi+cBdT6j0Zrw0QrNEAjsoNWA1/9DrugLY?= =?us-ascii?q?TQST/HscU34ZnQRODgPY8Rz1RJbxsi/9tupgxCmXOND9QL4oVTi+6apgVRnlgz?= =?us-ascii?q?oFOTEk6mHaktF+gqJFrhyvpBJwzYHbb52aOvdlYqPQf8kXSXZdUstLVSFMBJ63?= =?us-ascii?q?YYsVD+oGOOZVt5PzqEETrRu6GAKiA+TvyjhShnDowKY31PwhEQTB3AwnBdIBrm?= =?us-ascii?q?/ZrM/rO6gPUeC61rXIwS/fYPNR3Dfw8Y7FeQ0ir/GURb98b9bdxE01Gw/YgFic?= =?us-ascii?q?t5bpMy6W2+kDqWSX8eltWOSygGA9sQ5xuCKgxsI0h4nJmI0VzlfE+D18wIc6ON?= =?us-ascii?q?G0UlR7bsC5H5tQrS6aK5F6Td8lQ2FtoCo6y7sGtoCnfCUS1pgr2xrSZ+aaf4WG?= =?us-ascii?q?/B7vTvudLDR2iX5/Zr6yhA6+8U26xe39Usm03kxKri1AktTUrnAN0hvT6s+dSv?= =?us-ascii?q?Rj5UqhwyiA2B3T6u5ePUA4j7bUK5kkwrIojJocrVzDHjPqmEXxlKKWbVsr+uyp?= =?us-ascii?q?6+Thf7XnqYSRN5N0iw7iMqQundazAeIjMgcURWSb9uO81KOwtXH+Fa5Hivwwj7?= =?us-ascii?q?nxrIHRJcNdoLWwRQBSzNUN8RG6Wg+vzdBQuH4ANl8NLAqCiI/zNnnULfz4BOv5?= =?us-ascii?q?iFOpxmQ4j8vaN6HsV82eZkPIl63sKO5w?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0FNCQA05S5Zhxy3hNFdHAEBBAEBCgEBF?= =?us-ascii?q?wEBBAEBCgEBgwEmaIEKg3KGf4QMkFuNHIsNHIhwVwEBAQEBAQEBAgECEAEBAQo?= =?us-ascii?q?LCQgoL4IzIoJtgQYFAiYCSSmIWIFSnDaQC4ImjASBC4VWghaKZIJgBYlHhmKNe?= =?us-ascii?q?p4jEIZslE6BYjAhCBsVhHkMVIILJDaJUwEBAQ?= X-IPAS-Result: =?us-ascii?q?A0FNCQA05S5Zhxy3hNFdHAEBBAEBCgEBFwEBBAEBCgEBgwE?= =?us-ascii?q?maIEKg3KGf4QMkFuNHIsNHIhwVwEBAQEBAQEBAgECEAEBAQoLCQgoL4IzIoJtg?= =?us-ascii?q?QYFAiYCSSmIWIFSnDaQC4ImjASBC4VWghaKZIJgBYlHhmKNep4jEIZslE6BYjA?= =?us-ascii?q?hCBsVhHkMVIILJDaJUwEBAQ?= X-IronPort-AV: E=Sophos;i="5.38,424,1491264000"; d="scan'208";a="7604803" X-IronPort-Outbreak-Status: No, level 0, Unknown - Unknown Received: from mx1.redhat.com ([209.132.183.28]) by emsm-gh1-uea10.nsa.gov with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 May 2017 15:51:06 +0000 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 090EA80E7B for ; Wed, 31 May 2017 15:51:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 090EA80E7B Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=pmoore@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 090EA80E7B Received: from [127.0.0.1] (ovpn-121-192.rdu2.redhat.com [10.10.121.192]) by smtp.corp.redhat.com (Postfix) with ESMTP id B12565DC1F; Wed, 31 May 2017 15:51:04 +0000 (UTC) Subject: [PATCH v2] tools: add perltidy to the syntax checker/fixer From: Paul Moore To: selinux@tycho.nsa.gov Date: Wed, 31 May 2017 11:51:04 -0400 Message-ID: <149624586416.16947.1791692521620960783.stgit@sifl> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Wed, 31 May 2017 15:51:05 +0000 (UTC) X-BeenThere: selinux@tycho.nsa.gov X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Security-Enhanced Linux \(SELinux\) mailing list" List-Post: List-Help: Errors-To: selinux-bounces@tycho.nsa.gov Sender: "Selinux" X-Virus-Scanned: ClamAV using ClamSMTP From: Paul Moore Signed-off-by: Paul Moore Signed-off-by: Paul Moore --- tools/check-syntax | 87 ++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 67 insertions(+), 20 deletions(-) diff --git a/tools/check-syntax b/tools/check-syntax index 72cb06b..7f9768d 100755 --- a/tools/check-syntax +++ b/tools/check-syntax @@ -13,6 +13,9 @@ CHK_C_LIST="$(find tests/ -name "*.c") $(find tests/ -name "*.h")" CHK_C_EXCLUDE="" +CHK_PERL_LIST="$(find tests/ -name "*.pl") $(find tests/ -name "test")" +CHK_PERL_EXCLUDE="" + #### # functions @@ -66,50 +69,93 @@ function tool_c_style() { } # -# Check the formatting on a C source/header file +# Generate a properly formatted Perl source file # # Arguments: -# 1 File to check +# 1 Source file # -function tool_c_style_check() { - [[ -z "$1" || ! -r "$1" ]] && return +function tool_perl_style() { + perltidy < "$1" +} - tool_c_style "$1" | diff -pu --label="$1.orig" "$1" --label="$1" - +# +# Check the formatting on a file +# +# Arguments: +# 1 Language +# 2 File to check +# +function style_check() { + [[ -z "$1" ]] && return + [[ -z "$2" || ! -r "$2" ]] && return + + case "$1" in + c|C) + tool_c_style "$2" | \ + diff -pu --label="$2.orig" "$2" --label="$2" - + ;; + perl|Perl) + tool_perl_style "$2" | \ + diff -pu --label="$2.orig" "$2" --label="$2" - + ;; + esac } # -# Fix the formatting on a C source/header file +# Fix the formatting on a file # # Arguments: -# 1 File to fix +# 1 Language +# 2 File to check # -function tool_c_style_fix() { - [[ -z "$1" || ! -r "$1" ]] && return +function style_fix() { + [[ -z "$1" ]] && return + [[ -z "$2" || ! -w "$2" ]] && return - tmp="$(mktemp --tmpdir=$(dirname "$1"))" - tool_c_style "$1" > "$tmp" - mv "$tmp" "$1" + tmp="$(mktemp --tmpdir=$(dirname "$2"))" + case "$1" in + c|C) + tool_c_style "$2" > "$tmp" + ;; + perl|Perl) + tool_perl_style "$2" > "$tmp" + ;; + esac + cat "$tmp" > "$2" + rm "$tmp" } # -# Perform all known syntax checks for the configured C sources/headers +# Perform all known syntax checks for the configured files # -function check_c() { +function check() { for i in $CHK_C_LIST; do echo "$CHK_C_EXCLUDE" | grep -q "$i" && continue echo "Differences for $i" - tool_c_style_check "$i" + style_check c "$i" + done + + for i in $CHK_PERL_LIST; do + echo "$CHK_PERL_EXCLUDE" | grep -q "$i" && continue + echo "Differences for $i" + style_check perl "$i" done } # -# Perform all known syntax fixes for the configured C sources/headers +# Perform all known syntax fixes for the configured files # -function fix_c() { +function fix() { for i in $CHK_C_LIST; do echo "$CHK_C_EXCLUDE" | grep -q "$i" && continue echo "Fixing $i" - tool_c_style_fix "$i" + style_fix c "$i" + done + + for i in $CHK_PERL_LIST; do + echo "$CHK_PERL_EXCLUDE" | grep -q "$i" && continue + echo "Fixing $i" + style_fix perl "$i" done } @@ -117,6 +163,7 @@ function fix_c() { # main verify_deps astyle +verify_deps perltidy opt_fix=0 @@ -136,9 +183,9 @@ done echo "=============== $(date) ===============" echo "Code Syntax Check Results (\"check-syntax $*\")" if [[ $opt_fix -eq 1 ]]; then - fix_c + fix else - check_c + check fi echo "============================================================"