Bugfix
Showing
1 changed file
with
2 additions
and
2 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,11 +31,11 @@ do | ... | @@ -31,11 +31,11 @@ do |
31 | fi | 31 | fi |
32 | mkdirhier $DSTDIR | 32 | mkdirhier $DSTDIR |
33 | chmod -R u+w $DSTDIR | 33 | chmod -R u+w $DSTDIR |
34 | rm -rf $DSTDIR/* | ||
34 | 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 | ... | ... |
-
Please register or sign in to post a comment