[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] updatedb: use Copyright header of updatedb.sh
From: |
Bernhard Voelker |
Subject: |
[PATCH] updatedb: use Copyright header of updatedb.sh |
Date: |
Mon, 30 Oct 2017 21:25:56 +0100 |
Previously, the Copyright header output by 'updatedb --version' was
not updated by 'make update-copyright', so it still showed 2010 as
the Copyright year.
* locate/updatedb.sh (version): Replace the Copyright header by
the placeholder "@COPYRIGHT@" ...
* locate/Makefile.am (updatedb): ... set here from the Copyright line
extracted from 'updatedb.sh'.
---
locate/Makefile.am | 3 +++
locate/updatedb.sh | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/locate/Makefile.am b/locate/Makefile.am
index e2d80da..58e87de 100644
--- a/locate/Makefile.am
+++ b/locate/Makefile.am
@@ -46,6 +46,8 @@ updatedb: updatedb.sh Makefile
rm -f $@
find=`echo find|sed '$(transform)'`; \
frcode=`echo frcode|sed '$(transform)'`; \
+ copyright=`sed -n '/^# Copyright /{s/^..//;p;q}' $(srcdir)/updatedb.sh \
+ grep .` || exit 1; \
sed \
-e "s,@""bindir""@,$(bindir)," \
-e "s,@""libexecdir""@,$(libexecdir)," \
@@ -59,6 +61,7 @@ updatedb: updatedb.sh Makefile
-e "s,@""frcode""@,$${frcode}," \
-e "s,@""SORT""@,$(SORT)," \
-e "s,@""SORT_SUPPORTS_Z""@,$(SORT_SUPPORTS_Z)," \
+ -e "s/@""COPYRIGHT""@/$${copyright}/" \
$(srcdir)/updatedb.sh > $@
chmod +x $@
diff --git a/locate/updatedb.sh b/locate/updatedb.sh
index 88bfd86..70cb493 100644
--- a/locate/updatedb.sh
+++ b/locate/updatedb.sh
@@ -22,7 +22,7 @@
version='
updatedb (@PACKAGE_NAME@) @VERSION@
-Copyright (C) 2007,2008,2009,2010 Free Software Foundation, Inc.
address@hidden@
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
--
2.1.4
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] updatedb: use Copyright header of updatedb.sh,
Bernhard Voelker <=