author | deba |
Mon, 12 Feb 2007 10:27:03 +0000 | |
changeset 2359 | 97a5cd10ca16 |
child 2391 | 14a343be7a5a |
permissions | -rwxr-xr-x |
alpar@2171 | 1 |
#!/bin/bash |
alpar@2171 | 2 |
|
alpar@2171 | 3 |
FILE_NAME=$1 |
alpar@2171 | 4 |
TMP_FILE=`mktemp` |
alpar@2171 | 5 |
YEAR='2003-2006' |
alpar@2171 | 6 |
|
alpar@2171 | 7 |
(echo "/* -*- C++ -*- |
alpar@2171 | 8 |
* |
alpar@2171 | 9 |
* This file is a part of LEMON, a generic C++ optimization library |
alpar@2171 | 10 |
* |
alpar@2171 | 11 |
* Copyright (C) "$YEAR" |
alpar@2171 | 12 |
* Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport |
alpar@2171 | 13 |
* (Egervary Research Group on Combinatorial Optimization, EGRES). |
alpar@2171 | 14 |
* |
alpar@2171 | 15 |
* Permission to use, modify and distribute this software is granted |
alpar@2171 | 16 |
* provided that this copyright notice appears in all copies. For |
alpar@2171 | 17 |
* precise terms see the accompanying LICENSE file. |
alpar@2171 | 18 |
* |
alpar@2171 | 19 |
* This software is provided \"AS IS\" with no warranty of any kind, |
alpar@2171 | 20 |
* express or implied, and with no claim as to its suitability for any |
alpar@2171 | 21 |
* purpose. |
alpar@2171 | 22 |
* |
alpar@2171 | 23 |
*/ |
alpar@2171 | 24 |
" |
alpar@2171 | 25 |
awk 'BEGIN { pm=0; } |
alpar@2171 | 26 |
pm==3 { print } |
alpar@2171 | 27 |
/\/\* / && pm==0 { pm=1;} |
alpar@2171 | 28 |
/[^:blank:]/ && (pm==0 || pm==2) { pm=3; print;} |
alpar@2171 | 29 |
/\*\// && pm==1 { pm=2;} |
alpar@2171 | 30 |
' $1 |
alpar@2171 | 31 |
) >$TMP_FILE |
alpar@2171 | 32 |
rm $FILE_NAME |
alpar@2171 | 33 |
mv $TMP_FILE $FILE_NAME |