Browse CVS Repository
Diff of /samurai-graph/samurai-graph/build.sh
Parent Directory
| Revision Log
| Revision Graph
| Patch
| 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 |
| 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 |
| 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 |
|
|
|