mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-02 06:03:50 +00:00
Make an rm command quieter; add some debug comments.
This commit is contained in:
parent
08037129f0
commit
d072a14cd7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=265486
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user