COIN-OR::LEMON - Graph Library

Ticket #245: scripts1-6b9c1f6eb1e5.patch

File scripts1-6b9c1f6eb1e5.patch, 702 bytes (added by Peter Kovacs, 15 years ago)
  • scripts/unify-sources.sh

    # HG changeset patch
    # User Peter Kovacs <kpeter@inf.elte.hu>
    # Date 1238135058 -3600
    # Node ID 6b9c1f6eb1e59df76872f7ea0cca2793553acf64
    # Parent  56a86a363c12173a5163e28960887eb8a0f3e04c
    Bug fix in unify-sources.sh (#245)
    
    diff --git a/scripts/unify-sources.sh b/scripts/unify-sources.sh
    a b  
    8888function check_action() {
    8989    if [ "$3" == 'tabs' ]
    9090    then
    91         PATTERN=$(echo -e '\t')
     91        if echo $2 | grep -q -v -E 'Makefile\.am$'
     92        then
     93            PATTERN=$(echo -e '\t')
     94        else
     95            PATTERN='        '
     96        fi
    9297    elif [ "$3" == 'trailing spaces' ]
    9398    then
    9499        PATTERN='\ +$'