des-testbed / libara

A framework for the implementation and evaluation of routing algorithms based on the Ant Colony Optimization (ACO) metaheuristic.
GNU General Public License v3.0
19 stars 11 forks source link

File License Header Update #2

Closed fgrosse closed 11 years ago

fgrosse commented 11 years ago

We need to agree on a file header. The current header is

/******************************************************************************
 Copyright 2012, The DES-SERT Team, Freie Universität Berlin (FUB).
 All rights reserved.

 These sources were originally developed by Friedrich Große
 at Freie Universität Berlin (http://www.fu-berlin.de/),
 Computer Systems and Telematics / Distributed, Embedded Systems (DES) group
 (http://cst.mi.fu-berlin.de/, http://www.des-testbed.net/)
 ------------------------------------------------------------------------------
 This program is free software: you can redistribute it and/or modify it under
 the terms of the GNU General Public License as published by the Free Software
 Foundation, either version 3 of the License, or (at your option) any later
 version.

 This program is distributed in the hope that it will be useful, but WITHOUT
 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

 You should have received a copy of the GNU General Public License along with
 this program. If not, see http://www.gnu.org/licenses/ .
 ------------------------------------------------------------------------------
 For further information and questions please use the web site
 http://www.des-testbed.net/
 *******************************************************************************/
mfrey commented 11 years ago

For now, we could set the license header to.

 /*
  * $FU-Copyright$
  */

I've wrote a bash script which allows us to replace it in the end (I will add it to the repository later that day).

fgrosse commented 11 years ago

Great idea. Let's do this until we have a real license header

fgrosse commented 11 years ago

Could we just use your script to replace all the existing occurrences of the old header with the placeholder you proposed? Would be much better to replace all existing old license information in a single commit but I failed at writing my own replacement script :(

mfrey commented 11 years ago

I've added the script to the repository. The remaining "problem" is the we have two different comment blocks right now (one only with your name and one with both our names) which means the scripts needs to changed (which should be easy). Adding the long comment block in the search/replace part of the substitute command of sed might be a bit cumbersome.

fgrosse commented 11 years ago

Yeah that just looks like the script that I have written. I failed at integrating the long comment block because it spans multiple lines and contains characters that need to be escaped.

fgrosse commented 11 years ago

I just pushed my version of the script in the new license branch 21e6509. Maybe you can get it working?

mfrey commented 11 years ago

Fixed this with the latest commit: https://github.com/des-testbed/Ara-Sim/commit/ec8a9164164eba2c410047bfb721aa521719dd5b