Changeset 3505


Ignore:
Timestamp:
Jun 22, 2016, 7:36:48 AM (6 years ago)
Author:
Peter
Message:

closes #864; yat-config: do not filter out duplicated flags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/build_support/yat-config.in

    r3382 r3505  
    22
    33# Copyright (C) 2008 Jari Häkkinen, Peter Johansson
    4 # Copyright (C) 2009, 2010, 2011, 2012, 2013, 2015 Peter Johansson
     4# Copyright (C) 2009, 2010, 2011, 2012, 2013, 2015, 2016 Peter Johansson
    55#
    66# This file is part of the yat library, http://dev.thep.lu.se/yat
     
    232232done
    233233
    234 # only keep last of replicates
    235 if test -n "$flags"; then
    236    reversed_flags=
    237    for opt in $flags; do
    238      reversed_flags="$opt $reversed_flags"
    239    done
    240    unique_flags=
    241    for opt in $reversed_flags; do
    242      unique=1;
    243      for opt2 in $unique_flags; do
    244        if test $opt = $opt2; then
    245          unique=0
    246        fi
    247      done
    248      if test $unique -eq 1; then
    249        unique_flags="$opt $unique_flags"
    250      fi
    251    done
    252    echo $unique_flags
    253 fi
    254 
     234echo $flags
    255235exit 0
Note: See TracChangeset for help on using the changeset viewer.