From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gnu.wildebeest.org (gnu.wildebeest.org [45.83.234.184]) by sourceware.org (Postfix) with ESMTPS id C770938582B7 for ; Wed, 13 Jul 2022 12:49:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C770938582B7 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=klomp.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=klomp.org Received: from tarox.wildebeest.org (83-87-18-245.cable.dynamic.v4.ziggo.nl [83.87.18.245]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by gnu.wildebeest.org (Postfix) with ESMTPSA id 6A0F9302AB2C; Wed, 13 Jul 2022 14:49:49 +0200 (CEST) Received: by tarox.wildebeest.org (Postfix, from userid 1000) id 29B24413CBBB; Wed, 13 Jul 2022 14:49:49 +0200 (CEST) From: Mark Wielaard To: dwz@sourceware.org Cc: Mark Wielaard Subject: [PATCH] gen-copyright-years.sh skip native.c Date: Wed, 13 Jul 2022 14:49:43 +0200 Message-Id: <20220713124943.27835-1-mark@klomp.org> X-Mailer: git-send-email 2.18.4 X-Spam-Status: No, score=-11.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: dwz@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Dwz mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jul 2022 12:49:53 -0000 And generate the native.c file so we don't need to keep it in git. --- .gitignore | 1 + Makefile | 4 +++- contrib/release/gen-copyright-years.sh | 2 ++ native.c | 5 ----- 4 files changed, 6 insertions(+), 6 deletions(-) delete mode 100644 native.c diff --git a/.gitignore b/.gitignore index bc78b47..d2d0a8a 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ dwz dwz.sum dwz.log +native.c testsuite/dwz.tests/execs diff --git a/Makefile b/Makefile index e9193f9..591a0f6 100644 --- a/Makefile +++ b/Makefile @@ -40,8 +40,10 @@ install: dwz install -D -m 644 $(srcdir)/dwz.1 $(DESTDIR)$(mandir)/man1/dwz.1 clean: rm -f $(OBJECTS) *~ core* dwz $(TEST_EXECS) $(DWZ_TEST_OBJECTS) \ - dwz.log dwz.sum native.o + dwz.log dwz.sum native.c native.o rm -Rf testsuite-bin tmp.* +native.c: + echo "int main (void) { return 0; }" > $@ native.o: native.c $(CC) -o $@ $< -c -g diff --git a/contrib/release/gen-copyright-years.sh b/contrib/release/gen-copyright-years.sh index d081cd2..f97691a 100755 --- a/contrib/release/gen-copyright-years.sh +++ b/contrib/release/gen-copyright-years.sh @@ -128,6 +128,8 @@ main () tmp=$(mktemp) for f in *.c *.h *.def; do + if test "$f" = "native.c"; then continue; fi + if ! grep -q "Copyright (C)" $f; then echo "error: found file without copyright marker: $f" exit 1 diff --git a/native.c b/native.c deleted file mode 100644 index 398ec67..0000000 --- a/native.c +++ /dev/null @@ -1,5 +0,0 @@ -int -main (void) -{ - return 0; -} -- 2.18.4