From 2bf008605cb154df57a983591765a7cd72edbc6c Mon Sep 17 00:00:00 2001 From: Jean-Tiare Le Bigot Date: Mon, 2 Jan 2017 13:03:30 +0100 Subject: [PATCH] update copyrights to 2017 Signed-off-by: Jean-Tiare Le Bigot --- LICENSE | 2 +- scripts/update-copyright.sh | 14 ++++++++++++++ src/Api.php | 2 +- src/Exceptions/ApiException.php | 2 +- src/Exceptions/InvalidParameterException.php | 2 +- src/Exceptions/NotLoggedException.php | 2 +- tests/ApiFunctionalTest.php | 2 +- tests/ApiTest.php | 2 +- tests/bootstrap.php | 2 +- 9 files changed, 22 insertions(+), 8 deletions(-) create mode 100755 scripts/update-copyright.sh 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 @@