1
0
mirror of https://github.com/ovh/php-ovh.git synced 2023-11-05 03:20:26 +01:00

update copyrights to 2017

Signed-off-by: Jean-Tiare Le Bigot <jean-tiare.le-bigot@corp.ovh.com>
This commit is contained in:
Jean-Tiare Le Bigot 2017-01-02 13:03:30 +01:00
parent ed5207be27
commit 2bf008605c
9 changed files with 22 additions and 8 deletions

View File

@ -1,4 +1,4 @@
Copyright (c) 2013-2015, OVH SAS. Copyright (c) 2013-2017, OVH SAS.
All rights reserved. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without

14
scripts/update-copyright.sh Executable file
View File

@ -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]"

View File

@ -1,5 +1,5 @@
<?php <?php
# Copyright (c) 2013-2016, OVH SAS. # Copyright (c) 2013-2017, OVH SAS.
# All rights reserved. # All rights reserved.
# #
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without

View File

@ -1,5 +1,5 @@
<?php <?php
# Copyright (c) 2013-2016, OVH SAS. # Copyright (c) 2013-2017, OVH SAS.
# All rights reserved. # All rights reserved.
# #
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without

View File

@ -1,5 +1,5 @@
<?php <?php
# Copyright (c) 2013-2016, OVH SAS. # Copyright (c) 2013-2017, OVH SAS.
# All rights reserved. # All rights reserved.
# #
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without

View File

@ -1,5 +1,5 @@
<?php <?php
# Copyright (c) 2013-2016, OVH SAS. # Copyright (c) 2013-2017, OVH SAS.
# All rights reserved. # All rights reserved.
# #
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without

View File

@ -1,5 +1,5 @@
<?php <?php
# Copyright (c) 2013-2016, OVH SAS. # Copyright (c) 2013-2017, OVH SAS.
# All rights reserved. # All rights reserved.
# #
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without

View File

@ -1,5 +1,5 @@
<?php <?php
# Copyright (c) 2013-2016, OVH SAS. # Copyright (c) 2013-2017, OVH SAS.
# All rights reserved. # All rights reserved.
# #
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without

View File

@ -1,5 +1,5 @@
<?php <?php
# Copyright (c) 2013-2014, OVH SAS. # Copyright (c) 2013-2017, OVH SAS.
# All rights reserved. # All rights reserved.
# #
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without