alpar@2171: #!/bin/bash
alpar@2171: 
alpar@2171: FILE_NAME=$1
alpar@2171: TMP_FILE=`mktemp`
alpar@2171: YEAR='2003-2006'
alpar@2171: 
alpar@2171: (echo "/* -*- C++ -*-
alpar@2171:  *
alpar@2171:  * This file is a part of LEMON, a generic C++ optimization library
alpar@2171:  *
alpar@2171:  * Copyright (C) "$YEAR"
alpar@2171:  * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
alpar@2171:  * (Egervary Research Group on Combinatorial Optimization, EGRES).
alpar@2171:  *
alpar@2171:  * Permission to use, modify and distribute this software is granted
alpar@2171:  * provided that this copyright notice appears in all copies. For
alpar@2171:  * precise terms see the accompanying LICENSE file.
alpar@2171:  *
alpar@2171:  * This software is provided \"AS IS\" with no warranty of any kind,
alpar@2171:  * express or implied, and with no claim as to its suitability for any
alpar@2171:  * purpose.
alpar@2171:  *
alpar@2171:  */
alpar@2171: "
alpar@2171: awk 'BEGIN { pm=0; }
alpar@2171:      pm==3 { print }
alpar@2171:      /\/\* / && pm==0 { pm=1;}
alpar@2171:      /[^:blank:]/ && (pm==0 || pm==2) { pm=3; print;}
alpar@2171:      /\*\// && pm==1 { pm=2;}
alpar@2171:     ' $1
alpar@2171: ) >$TMP_FILE
alpar@2171: rm $FILE_NAME
alpar@2171: mv $TMP_FILE $FILE_NAME