diff options
author | Bernhard Voelker <mail@bernhard-voelker.de> | 2017-10-30 21:18:49 +0100 |
---|---|---|
committer | Bernhard Voelker <mail@bernhard-voelker.de> | 2017-10-30 21:18:49 +0100 |
commit | 6d186665f594a66e2df4364ef7407029e78e3c29 (patch) | |
tree | 96de491659d830f88aec81a20bb61f46e4a65ced /locate/Makefile.am | |
parent | 657d6026890c42e0a53165c3f2720eb2acce270e (diff) | |
download | findutils-6d186665f594a66e2df4364ef7407029e78e3c29.tar.gz |
updatedb: use Copyright header of updatedb.sh
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'.
Diffstat (limited to 'locate/Makefile.am')
-rw-r--r-- | locate/Makefile.am | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/locate/Makefile.am b/locate/Makefile.am index e2d80da1..58e87de9 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 $@ |