| 1 | #!/bin/sh |
|---|
| 2 | # |
|---|
| 3 | # Wrapper for sed to replace copyright strings |
|---|
| 4 | # |
|---|
| 5 | # PW, risoe, Mar. 2006 |
|---|
| 6 | # |
|---|
| 7 | # This file is part of the McStas neutron ray-trace simulation package |
|---|
| 8 | # Copyright (C) 1997-2006, All rights reserved |
|---|
| 9 | # Risoe National Laborartory, Roskilde, Denmark |
|---|
| 10 | # Institut Laue Langevin, Grenoble, France |
|---|
| 11 | # |
|---|
| 12 | # This program is free software; you can redistribute it and/or modify |
|---|
| 13 | # it under the terms of the GNU General Public License as published by |
|---|
| 14 | # the Free Software Foundation; version 2 of the License. |
|---|
| 15 | # |
|---|
| 16 | # This program is distributed in the hope that it will be useful, |
|---|
| 17 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 18 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 19 | # GNU General Public License for more details. |
|---|
| 20 | # |
|---|
| 21 | # You should have received a copy of the GNU General Public License |
|---|
| 22 | # along with this program; if not, write to the Free Software |
|---|
| 23 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|---|
| 24 | |
|---|
| 25 | |
|---|
| 26 | YEAR=`date +%Y` |
|---|
| 27 | sed 's/Copyright (C) 1997-..../Copyright (C) 1997-'$YEAR'/' $1 > $1.tmp |
|---|
| 28 | cat $1.tmp > $1 |
|---|
| 29 | rm -f $1.tmp |
|---|
| 30 | sed 's/Copyright 1997-..../Copyright (C) 1997-'$YEAR'/' $1 > $1.tmp |
|---|
| 31 | cat $1.tmp > $1 |
|---|
| 32 | rm -f $1.tmp |
|---|
| 33 | sed 's/Copyright (C) Risoe National Laboratory, 1997-..../Copyright (C) Risoe National Laboratory, 1997-'$YEAR'/' $1 > $1.tmp |
|---|
| 34 | cat $1.tmp > $1 |
|---|
| 35 | rm -f $1.tmp |
|---|
| 36 | sed 's/Additions (C) Institut Laue Langevin, 2003-..../Additions (C) Institut Laue Langevin, 2003-'$YEAR'/' $1 > $1.tmp |
|---|
| 37 | cat $1.tmp > $1 |
|---|
| 38 | rm -f $1.tmp |
|---|