* [PATCH] gen-copyright-years.sh skip native.c
@ 2022-07-13 12:49 Mark Wielaard
2022-11-03 15:10 ` Mark Wielaard
0 siblings, 1 reply; 2+ messages in thread
From: Mark Wielaard @ 2022-07-13 12:49 UTC (permalink / raw)
To: dwz; +Cc: Mark Wielaard
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-11-03 15:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-13 12:49 [PATCH] gen-copyright-years.sh skip native.c Mark Wielaard
2022-11-03 15:10 ` Mark Wielaard
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).