From: Mark Wielaard <mark@klomp.org>
To: dwz@sourceware.org
Cc: Mark Wielaard <mark@klomp.org>
Subject: [PATCH] gen-copyright-years.sh skip native.c
Date: Wed, 13 Jul 2022 14:49:43 +0200 [thread overview]
Message-ID: <20220713124943.27835-1-mark@klomp.org> (raw)
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
next reply other threads:[~2022-07-13 12:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-13 12:49 Mark Wielaard [this message]
2022-11-03 15:10 ` Mark Wielaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220713124943.27835-1-mark@klomp.org \
--to=mark@klomp.org \
--cc=dwz@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).