diff options
author | Mark Linimon <linimon@FreeBSD.org> | 2010-12-01 02:28:19 +0000 |
---|---|---|
committer | Mark Linimon <linimon@FreeBSD.org> | 2010-12-01 02:28:19 +0000 |
commit | d072a14cd72c2e056300fee35f91d5167d4b8fb0 (patch) | |
tree | f8428f1d7e7906ab85c01535e6673714f5442789 /Tools | |
parent | 08037129f0ed49372832806f68394387b8cc7fb3 (diff) |
Notes
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/portbuild/scripts/dodistfiles | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Tools/portbuild/scripts/dodistfiles b/Tools/portbuild/scripts/dodistfiles index 018ab95917a1..8e5f549044fb 100755 --- a/Tools/portbuild/scripts/dodistfiles +++ b/Tools/portbuild/scripts/dodistfiles @@ -39,6 +39,7 @@ cd ${distdir} || exit 1 echo "Removing incomplete downloads" +# XXX MCL put an existance test here find ${distdir}/.pbtmp/ -name .done -depth 2 | sed -e 's,/.done$,/,' | sort > .done || exit 1 find -d ${distdir}/.pbtmp/ -type d -mindepth 1 |sed -E -e 's,([^/])$,\1/,' > .alldirs || exit 1 @@ -64,11 +65,12 @@ done cat .pkgsubdirs | xargs rmdir || exit 1 echo "Moving remaining distfiles" +# XXX MCL put an existance test here find ${distdir}/.pbtmp/ -type f -depth 2 \! -name .done | xargs -J % mv % ${distdir} echo "Cleaning up" sed -e 's,$,.done,' < .pkgdirs | xargs rm -f || exit 1 cat .pkgdirs | xargs rmdir || exit 1 -rmdir .pbtmp || exit 1 +rmdir -f .pbtmp || exit 1 rm -f .alldirs .done .pkgdirs .pkgsubdirs .subdirs || exit 1 |