Changeset 243

Show
Ignore:
Timestamp:
04/25/08 14:06:05 (7 months ago)
Author:
conrad
Message:

add dir and ls options to build

Files:

Legend:

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

    r236 r243  
    2727  echo >&2 "  install                     Install built code" 
    2828  echo >&2 "  uninstall                   Uninstall built code" 
     29  echo >&2 
     30  echo >&2 "Utilities:" 
     31  echo >&2 
     32  echo >&2 "  dir                         Print name of build directory" 
     33  echo >&2 "  ls                          List files in build directory" 
    2934  echo >&2 
    3035  echo >&2 "Options:" 
     
    136141} 
    137142 
     143build_ls () { 
     144  builddir=$(build_get_dir) 
     145  case $1 in 
     146    -*) 
     147      ls $builddir $* 
     148      ;; 
     149    *) 
     150      ls $builddir/$* 
     151      ;; 
     152  esac 
     153} 
     154 
    138155############################################################ 
    139156## build make etc. 
     
    342359    build_help 
    343360    ;; 
     361  dir) 
     362    build_get_dir 
     363    ;; 
     364  ls) 
     365    build_ls $* 
     366    ;; 
    344367  clean) 
    345368    build_clean