Skip to content

Commit 2bf0086

Browse files
author
Jean-Tiare Le Bigot
committed
update copyrights to 2017
Signed-off-by: Jean-Tiare Le Bigot <[email protected]>
1 parent ed5207b commit 2bf0086

9 files changed

+22
-8
lines changed

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2013-2015, OVH SAS.
1+
Copyright (c) 2013-2017, OVH SAS.
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without

scripts/update-copyright.sh

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
#
3+
# Usage: ./scripts/update-copyright.sh
4+
#
5+
6+
PCRE_MATCH_COPYRIGHT="Copyright \(c\) 2013-[0-9]{4}, OVH SAS."
7+
PCRE_MATCH_DEBIAN="Copyright: [-0-9]* OVH SAS"
8+
YEAR=$(date +%Y)
9+
10+
echo -n "Updating copyright headers to ${YEAR}... "
11+
grep -rPl "${PCRE_MATCH_COPYRIGHT}" | xargs sed -ri "s/${PCRE_MATCH_COPYRIGHT}/Copyright (c) 2013-${YEAR}, OVH SAS./g"
12+
grep -rPl "${PCRE_MATCH_DEBIAN}" | xargs sed -ri "s/${PCRE_MATCH_DEBIAN}/Copyright: 2013-${YEAR} OVH SAS/g"
13+
echo "[OK]"
14+

src/Api.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
# Copyright (c) 2013-2016, OVH SAS.
2+
# Copyright (c) 2013-2017, OVH SAS.
33
# All rights reserved.
44
#
55
# Redistribution and use in source and binary forms, with or without

src/Exceptions/ApiException.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
# Copyright (c) 2013-2016, OVH SAS.
2+
# Copyright (c) 2013-2017, OVH SAS.
33
# All rights reserved.
44
#
55
# Redistribution and use in source and binary forms, with or without

src/Exceptions/InvalidParameterException.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
# Copyright (c) 2013-2016, OVH SAS.
2+
# Copyright (c) 2013-2017, OVH SAS.
33
# All rights reserved.
44
#
55
# Redistribution and use in source and binary forms, with or without

src/Exceptions/NotLoggedException.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
# Copyright (c) 2013-2016, OVH SAS.
2+
# Copyright (c) 2013-2017, OVH SAS.
33
# All rights reserved.
44
#
55
# Redistribution and use in source and binary forms, with or without

tests/ApiFunctionalTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
# Copyright (c) 2013-2016, OVH SAS.
2+
# Copyright (c) 2013-2017, OVH SAS.
33
# All rights reserved.
44
#
55
# Redistribution and use in source and binary forms, with or without

tests/ApiTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
# Copyright (c) 2013-2016, OVH SAS.
2+
# Copyright (c) 2013-2017, OVH SAS.
33
# All rights reserved.
44
#
55
# Redistribution and use in source and binary forms, with or without

tests/bootstrap.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
# Copyright (c) 2013-2014, OVH SAS.
2+
# Copyright (c) 2013-2017, OVH SAS.
33
# All rights reserved.
44
#
55
# Redistribution and use in source and binary forms, with or without

0 commit comments

Comments
 (0)