Bugfix
Showing
1 changed file
with
4 additions
and
4 deletions
1 | #! /bin/sh | 1 | #! /bin/sh |
2 | 2 | ||
3 | if [ "$1" = "-r"]; then | 3 | if [ "$1" = "-r" ]; then |
4 | shift | 4 | shift |
5 | rm -rf $* | 5 | rm -rf $* |
6 | exit 0 | 6 | exit 0 |
... | @@ -31,12 +31,12 @@ do | ... | @@ -31,12 +31,12 @@ do |
31 | fi | 31 | fi |
32 | mkdirhier $DSTDIR | 32 | mkdirhier $DSTDIR |
33 | chmod -R u+w $DSTDIR | 33 | chmod -R u+w $DSTDIR |
34 | 34 | rm -rf $DSTDIR/* | |
35 | |||
35 | cat $SRCDIR/DISTFILES | | 36 | cat $SRCDIR/DISTFILES | |
36 | while read NAME | 37 | while read NAME |
37 | do | 38 | do |
38 | test -f $DSTDIR/$NAME && rm $DSTDIR/$NAME | ||
39 | cp $SRCDIR/$NAME $DSTDIR/$NAME | 39 | cp $SRCDIR/$NAME $DSTDIR/$NAME |
40 | chmod u+w $DSTDIR/$NAME | 40 | chmod u+w $DSTDIR/$NAME |
41 | done | 41 | done |
42 | done | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
42 | done | ... | ... |
-
Please register or sign in to post a comment