mirror of
https://github.com/ovh/python-ovh.git
synced 2026-01-16 23:00:21 +00:00
14 lines
358 B
Bash
Executable file
14 lines
358 B
Bash
Executable file
#!/bin/bash
|
|
#
|
|
# Usage: ./scripts/update-copyright.sh
|
|
#
|
|
|
|
PCRE_MATCH_COPYRIGHT="Copyright \(c\) 2013-[0-9]{4}, OVH SAS."
|
|
YEAR=$(date +%Y)
|
|
|
|
grep -rPl "${PCRE_MATCH_COPYRIGHT}"
|
|
|
|
echo -n "Updating copyright headers to ${YEAR}... "
|
|
grep -rPl "${PCRE_MATCH_COPYRIGHT}" | xargs sed -ri "s/${PCRE_MATCH_COPYRIGHT}/Copyright (c) 2013-${YEAR}, OVH SAS./g"
|
|
echo "[OK]"
|
|
|