Opened on 03/12/2014 at 12:19:47 PM

Closed on 03/12/2014 at 01:18:29 PM

#102 closed change (fixed)

Update year in license headers

Reported by: greiner Assignee: trev
Priority: Unknown Milestone:
Module: Unknown Keywords:
Cc: Blocked By:
Blocking: Platform:
Ready: Confidential: no
Tester: Verified working: no
Review URL(s):

Description

Background

Currently, the license headers in all projects contain the line Copyright (C) 2006-2013 Eyeo GmbH.

What to change

This should be changed to Copyright (C) 2006-2014 Eyeo GmbH.

Attachments (0)

Change History (2)

comment:1 Changed on 03/12/2014 at 12:39:31 PM by trev

  • Owner set to trev
  • Status changed from new to assigned

Ah, thanks to the switch from MPLv2 to GPLv3 we have to do this every year again...

comment:2 Changed on 03/12/2014 at 01:18:29 PM by trev

  • Resolution set to fixed
  • Status changed from assigned to closed

From what I can tell, all repositories with GPLv3 headers have been updated. Only exception is the adblockplusopera repository, this one is only being kept around for historical reasons:

https://hg.adblockplus.org/jshydra/rev/deae612c66cc
https://hg.adblockplus.org/buildtools/rev/976b546d8ffc
https://hg.adblockplus.org/adblockplus/rev/54a556959f91
https://hg.adblockplus.org/adblockplusandroid/rev/485cbab3bcfd
https://hg.adblockplus.org/adblockplustests/rev/a31ac2df545c
https://hg.adblockplus.org/adblockpluschrome/rev/b1fb99213d7c
https://hg.adblockplus.org/libadblockplus/rev/f1353543562f
https://hg.adblockplus.org/adblockplusie/rev/e5e844630e52
https://hg.adblockplus.org/infrastructure/rev/410cd50219f0
https://hg.adblockplus.org/sitescripts/rev/74e0489c820c
https://hg.adblockplus.org/urlfixer/rev/185a7184536b

The following script has been used, might be useful next year:

#!/usr/bin/python
# coding: utf-8

import sys, os

year = int(sys.argv[1])
fromStr = "Copyright (C) 2006-%i Eyeo GmbH" % (year - 1)
toStr = "Copyright (C) 2006-%i Eyeo GmbH" % (year)

def processDir(path):
  for name in os.listdir(path):
    if name.startswith("."):
      continue
    filepath = os.path.join(path, name)
    if os.path.isdir(filepath):
      if not os.path.exists(os.path.join(filepath, ".hg")):
        processDir(filepath)
    else:
      with open(filepath, "rb+") as file:
        data = file.read()
        if data.find(fromStr) >= 0:
          data = data.replace(fromStr, toStr)
          file.seek(0)
          file.truncate()
          file.write(data)

processDir(".")

Add Comment

Modify Ticket

Change Properties
Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from trev.
 
Note: See TracTickets for help on using tickets.