~ubuntu-branches/ubuntu/saucy/deal.ii/saucy

« back to all changes in this revision

Viewing changes to common/misc/head_cc.pl

  • Committer: Bazaar Package Importer
  • Author(s): Adam C. Powell, IV
  • Date: 2009-05-08 23:13:50 UTC
  • Revision ID: james.westby@ubuntu.com-20090508231350-rrh1ltgi0tifabwc
Tags: upstream-6.2.0
ImportĀ upstreamĀ versionĀ 6.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
$/='this should not appear in any of these stupid files';
 
2
 
 
3
$fn = $ARGV;
 
4
 
 
5
$head = << 'EOT'
 
6
//----------------------------  XXX  ---------------------------
 
7
//    $Id: head_cc.pl 5351 2002-01-07 09:48:43Z wolf $
 
8
//    Version: $Name$
 
9
//
 
10
//    Copyright (C) 2002 by the deal.II authors
 
11
//
 
12
//    This file is subject to QPL and may not be  distributed
 
13
//    without copyright and license information. Please refer
 
14
//    to the file deal.II/doc/license.html for the  text  and
 
15
//    further information on this license.
 
16
//
 
17
//----------------------------  XXX  ---------------------------
 
18
 
 
19
 
 
20
EOT
 
21
    ;
 
22
 
 
23
$head =~ s/XXX/$fn/g;
 
24
 
 
25
s/^[^\#]+/$head\n\n\n/s;
 
26
s/\/\*-+\s+$fn\s+-+\*\/\n//g;
 
27
s/\/\*\s*end of.*H\s*\*\///g;
 
28
s/\n[ \t]*\n[ \t]*\n\s*\n*/\n\n\n/g;