Merge commit 'b5be6201e00421a59e574a07b3d28cde5defff84'
[foam-extend-4.0.git] / bin / foamChangeCopyright
blob902e0740ef6941ba6ea0311c30f5d8e7e0361228
1 #!/bin/bash
3 perl -0777 -p -i -e '
4 s!(([#% ]*) *)License\n.*?\n[#%]*\n.*?\n[#%]*\n.*?\n[#%]*\n.*?\n[#%]*\n!$1License
5 $1 This file is part of foam-extend.
6 $2
7 $1 foam-extend is free software: you can redistribute it and/or modify it
8 $1 under the terms of the GNU General Public License as published by the
9 $1 Free Software Foundation, either version 3 of the License, or (at your
10 $1 option) any later version.
12 $1 foam-extend is distributed in the hope that it will be useful, but
13 $1 WITHOUT ANY WARRANTY; without even the implied warranty of
14 $1 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 $1 General Public License for more details.
17 $1 You should have received a copy of the GNU General Public License
18 $1 along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
20 !s;
21 s!^(([#%]*) *)\\\\ / F ield \|.*!$1\\\\ / F ield | foam-extend: Open Source CFD!m;
22 s!^(([#%]*) *) \\\\ / O peration \|.*!$1 \\\\ / O peration | Version: 3.2!m;
23 s!^(([#%]*) *) \\\\ / A nd \|.*!$1 \\\\ / A nd | Web: http://www.foam-extend.org!m;
24 s!^(([#%]*) *) \\\\/ M anipulation \|.*!$1 \\\\/ M anipulation | For copyright notice see file Copyright!m;
25 s!README file for version 3.[01]\*!README file for version 3.2*!;
26 s/[ \t]+$//mg;
27 ' $1