Changeset 207 for trunk


Ignore:
Timestamp:
Jan 18, 2007 9:47:37 AM (13 years ago)
Author:
andreasw
Message:

Lou's modification of run_autotools that looks at COIN_SKIP_PROJECTS with minor modifications

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/run_autotools

    r96 r207  
    5050fi
    5151
     52# Find directories which contain a file configure.ac. When all is said and
     53# done, each entry in dirs will be of the form `./path/to/directory'
     54
    5255if test $# != 0; then
    5356  dirs="$*"
     
    5861    if test -r $dir/configure.ac; then
    5962      dirs="$dirs $dir"
     63    else
     64      echo "$dir/configure.ac doesn't appear to be a regular file; skipping."
    6065    fi
    6166  done
    6267fi
     68
     69# Now compare against the skip entries in COIN_SKIP_PROJECTS. To match the
     70# entries we just collected, add `./' to the front of each skip entry.
     71
     72pos_dirs=$dirs
     73if test x${COIN_SKIP_PROJECTS+set} = xset ; then
     74  dirs=
     75  for dir in $COIN_SKIP_PROJECTS ; do
     76    skip_dirs="$skip_dirs ./$dir"
     77  done
     78  for dir in $pos_dirs ; do
     79    skip=0
     80    for skipdir in $skip_dirs ; do
     81      if test $dir = $skipdir ; then
     82        skip=1
     83        break
     84      fi
     85    done
     86    if test $skip = 0 ; then
     87      dirs="$dirs $dir"
     88    else
     89      echo "$dir listed in COIN_SKIP_PROJECTS; skipping."
     90    fi
     91  done
     92fi
     93
    6394echo Running autotools in $dirs
    6495
Note: See TracChangeset for help on using the changeset viewer.