[Geoserver-devel] update headers search/replace?

So what is the best way to update headers for OpenPlans → OSGeo change?

Search and replace may do the trick, but chances are we want to put a date range into the mix.

BEFORE:

/* Copyright (c) 2012 - 2013 OpenPlans - www.openplans.org. All rights reserved.

  • This code is licensed under the GPL 2.0 license, available at the root
  • application directory.
    */

AFTER:

/* (c) 2014 Open Source Geospatial Foundation - all rights reserved

  • (c) 2012 - 2013 OpenPlans
  • This code is licensed under the GPL 2.0 license, available at the root
  • application directory.
    */

I think we could get away with two searches and preserve the existing header date ranges

  1. search for “^^/* Copyright (c)” replace … as above
  2. search for “OpenPlans - www.openplans.org. All rights reserved.” replace “OpenPlans”

Reference:

Jody Garnett

This went fairly smoothly, updated CONTRIBUTING.md, developers guide and doc guide.

( There are few odd files in the mix such as NCUtilities and CoverageIdConverterTest have generic GeoBatch headers. Not sure if this is left over from a developers settings or if the content has actually been ported from GeoBatch.

  • The docguide instructions dated from svn days, and could use a review.
···

Jody Garnett

On Fri, Aug 29, 2014 at 5:30 PM, Jody Garnett <jody.garnett@anonymised.com> wrote:

So what is the best way to update headers for OpenPlans → OSGeo change?

Search and replace may do the trick, but chances are we want to put a date range into the mix.

BEFORE:

/* Copyright (c) 2012 - 2013 OpenPlans - www.openplans.org. All rights reserved.

  • This code is licensed under the GPL 2.0 license, available at the root
  • application directory.
    */

AFTER:

/* (c) 2014 Open Source Geospatial Foundation - all rights reserved

  • (c) 2012 - 2013 OpenPlans
  • This code is licensed under the GPL 2.0 license, available at the root
  • application directory.
    */

I think we could get away with two searches and preserve the existing header date ranges

  1. search for “^^/* Copyright (c)” replace … as above
  2. search for “OpenPlans - www.openplans.org. All rights reserved.” replace “OpenPlans”

Reference:

Jody Garnett