mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-11 20:05:07 -05:00
Add make rule to update copyright years
Usage: make update-copyright OLD=2014 NEW=2015 Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
54c630f6ec
commit
bbac318d7a
@ -62,6 +62,11 @@ update-po:
|
||||
$(MAKE) -C scripts/po update-po
|
||||
$(MAKE) -C src/pacman/po update-po
|
||||
|
||||
.PHONY: update-po
|
||||
update-copyright:
|
||||
for file in $(shell sh -c 'git grep -l "Copyright .* Pacman Development" | grep -v "\.po"'); do \
|
||||
sed -i -e "/Copyright (/s/-$(OLD)/-$(NEW)/" -e "/Copyright (/s/ $(OLD)/ $(OLD)-$(NEW)/" "$$file"; \
|
||||
done
|
||||
|
||||
.PHONY: update-po update-copyright
|
||||
|
||||
# vim:set noet:
|
||||
|
Loading…
Reference in New Issue
Block a user