scripts/update-copyright-header
author deba
Tue, 17 Oct 2006 10:50:57 +0000
changeset 2247 269a0dcee70b
child 2391 14a343be7a5a
permissions -rwxr-xr-x
Update the Path concept
Concept check for paths

DirPath renamed to Path
The interface updated to the new lemon interface
Make difference between the empty path and the path from one node
Builder interface have not been changed
// I wanted but there was not accordance about it

UPath is removed
It was a buggy implementation, it could not iterate on the
nodes in the right order
Right way to use undirected paths => path of edges in undirected graphs

The tests have been modified to the current implementation
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