Changeset 3505 for trunk/build_support/yat-config.in
- Timestamp:
- Jun 22, 2016, 7:36:48 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/build_support/yat-config.in
r3382 r3505 2 2 3 3 # Copyright (C) 2008 Jari Häkkinen, Peter Johansson 4 # Copyright (C) 2009, 2010, 2011, 2012, 2013, 2015 Peter Johansson4 # Copyright (C) 2009, 2010, 2011, 2012, 2013, 2015, 2016 Peter Johansson 5 5 # 6 6 # This file is part of the yat library, http://dev.thep.lu.se/yat … … 232 232 done 233 233 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 234 echo $flags 255 235 exit 0
Note: See TracChangeset
for help on using the changeset viewer.