diff --git a/LICENSE b/LICENSE index 7dd891f..1e2f2e1 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2013-2015, OVH SAS. +Copyright (c) 2013-2017, OVH SAS. All rights reserved. Redistribution and use in source and binary forms, with or without diff --git a/scripts/update-copyright.sh b/scripts/update-copyright.sh new file mode 100755 index 0000000..3bffa1a --- /dev/null +++ b/scripts/update-copyright.sh @@ -0,0 +1,14 @@ +#!/bin/bash +# +# Usage: ./scripts/update-copyright.sh +# + +PCRE_MATCH_COPYRIGHT="Copyright \(c\) 2013-[0-9]{4}, OVH SAS." +PCRE_MATCH_DEBIAN="Copyright: [-0-9]* OVH SAS" +YEAR=$(date +%Y) + +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" +grep -rPl "${PCRE_MATCH_DEBIAN}" | xargs sed -ri "s/${PCRE_MATCH_DEBIAN}/Copyright: 2013-${YEAR} OVH SAS/g" +echo "[OK]" + diff --git a/src/Api.php b/src/Api.php index dd7d10c..54f5b47 100644 --- a/src/Api.php +++ b/src/Api.php @@ -1,5 +1,5 @@