Develop and Download Open Source Software

Browse CVS Repository

Diff of /samurai-graph/samurai-graph/build.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.2 by orrisroot, Mon Jun 7 08:21:06 2004 UTC revision 1.3 by orrisroot, Wed Jun 23 05:04:31 2004 UTC
# Line 54  clean_lib () { Line 54  clean_lib () {
54    
55  build_dist () {  build_dist () {
56    if [ ! -f $DONEFILE1 ]; then    if [ ! -f $DONEFILE1 ]; then
57      echo -n [samurai-graph] copying distfiles ...        echo -n [samurai-graph] copying distfiles to $DISTDIRNAME ...
58      rm -rf $DISTDIR      rm -rf $DISTDIR
59      # create dist directory      # create dist directory
60      mkdir -p $DISTDIR      mkdir -p $DISTDIR
# Line 109  build_zip () { Line 109  build_zip () {
109  }  }
110    
111  clean_dist () {  clean_dist () {
112    echo -n [samurai-graph] deleting distdir $DISTDIRNAME ...    DIR=`find . -name 'samurai-graph-*' -type d`
113    rm -rf $DISTDIRNAME    for i in $DIR; do
114    echo done      echo -n [samurai-graph] deleting distdir `basename $i` ...
115        rm -rf $i
116        echo done
117      done
118      rm -f $DONEFILE1
119  }  }
120    
121  clean_zip () {  clean_zip () {
122    echo -n [samurai-graph] deleting archive $DISTDIRNAME.zip ...    DIR=`find . -name 'samurai-graph-*.zip' -type f`
123    rm -f $DISTDIRNAME.zip    for i in $DIR; do
124    echo done      echo -n [samurai-graph] deleting archive `basename $i` ...
125        rm -rf $i
126        echo done
127      done
128      rm -f $DONEFILE2
129  }  }
130    
131  case "$1" in  case "$1" in
# Line 141  rebuild-all) Line 149  rebuild-all)
149    build_zip    build_zip
150    ;;    ;;
151  clean)  clean)
   rm -f $DONEFILE1 $DONEFILE2  
152    clean_sub    clean_sub
153    clean_dist    clean_dist
154    clean_zip    clean_zip

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26