mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Roland Hieber <rhi@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: "Ulrich Ölmann" <u.oelmann@pengutronix.de>,
	"Roland Hieber" <rhi@pengutronix.de>
Subject: [ptxdist] [PATCH] template: src-meson-prog: replace year and author in COPYING too
Date: Thu, 20 Jun 2019 15:28:09 +0200	[thread overview]
Message-ID: <20190620132809.18298-1-rhi@pengutronix.de> (raw)

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

                 reply	other threads:[~2019-06-20 13:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20190620132809.18298-1-rhi@pengutronix.de \
    --to=rhi@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    --cc=u.oelmann@pengutronix.de \
    /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