Changeset 246

Show
Ignore:
Timestamp:
04/29/08 13:28:59 (7 months ago)
Author:
conrad
Message:

add --in-tree option to force in-tree build

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • home/bin/build

    r245 r246  
    185185build_intree_only () { 
    186186  # MPlayer can't be built out-of-tree 
    187   test -e mplayer.c 
     187  [ $BUILD_IN_TREE -o -e mplayer.c ] 
    188188} 
    189189 
     
    320320BUILD_DRY_RUN="" 
    321321BUILD_VERBOSE="" 
     322BUILD_IN_TREE="" 
    322323 
    323324GETOPTEST=`getopt --version` 
     
    326327case $GETOPTEST in 
    327328  getopt*) # GNU getopt 
    328     TEMP=`getopt -l dry-run -l help -l verbose -l arch:: -- +$SHORTOPTS $@` 
     329    TEMP=`getopt -l dry-run -l help -l verbose -l arch:: -l in-tree -- +$SHORTOPTS $@` 
    329330    ;; 
    330331  *) # POSIX getopt ? 
     
    354355      shift 
    355356      build_set_arch $1 
     357      ;; 
     358    --in-tree) 
     359      BUILD_IN_TREE="y" 
    356360      ;; 
    357361  esac