mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] template: src-meson-prog: replace year and author in COPYING too
@ 2019-06-20 13:28 Roland Hieber
  0 siblings, 0 replies; only message in thread
From: Roland Hieber @ 2019-06-20 13:28 UTC (permalink / raw)
  To: ptxdist; +Cc: Ulrich Ölmann, Roland Hieber

Fixes: 91749a01cd22dc2a7d72 ("templates: add src-meson-prog template")
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
---
 rules/templates/src-meson-prog/COPYING   | 2 +-
 rules/templates/src-meson-prog/wizard.sh | 9 +++++++--
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/rules/templates/src-meson-prog/COPYING b/rules/templates/src-meson-prog/COPYING
index 1844a019b31f..7120ee8f0932 100644
--- a/rules/templates/src-meson-prog/COPYING
+++ b/rules/templates/src-meson-prog/COPYING
@@ -1,4 +1,4 @@
-Copyright (C) 2006 by Rob Landley <rob@landley.net>
+Copyright (C) @YEAR@ by @AUTHOR@
 
 Permission to use, copy, modify, and/or distribute this software for any purpose
 with or without fee is hereby granted.
diff --git a/rules/templates/src-meson-prog/wizard.sh b/rules/templates/src-meson-prog/wizard.sh
index 3753d8d0e67d..90375e9788c7 100644
--- a/rules/templates/src-meson-prog/wizard.sh
+++ b/rules/templates/src-meson-prog/wizard.sh
@@ -15,10 +15,15 @@ fi
 mv "@name@.c" "${NAME}.c"
 
 for i in \
+	COPYING \
 	meson.build \
 	${NAME}.c \
 ; do
-	sed -i -e "s/\@name\@/${NAME}/g" \
-	       -e "s/\@version\@/${VERSION}/g" $i
+	sed -i \
+	       -e "s/\@AUTHOR\@/${AUTHOR}/g" \
+	       -e "s/\@YEAR\@/${YEAR}/g" \
+	       -e "s/\@name\@/${NAME}/g" \
+	       -e "s/\@version\@/${VERSION}/g" \
+	       $i
 done
 
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-06-20 13:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-20 13:28 [ptxdist] [PATCH] template: src-meson-prog: replace year and author in COPYING too Roland Hieber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox