Remove only the packages sub-directory before recreating it. Do not

remove the whole disc treei structure. This allows one to specify the
disc trees created by a prior release build (under R/cdrom) as the
destination without destroying the contents. This better integrates
with release building and makes further automation easier.

MFC after: 2 days
This commit is contained in:
Marcel Moolenaar 2005-05-03 04:19:07 +00:00
parent 9bae572bd7
commit 765bbb2127

View File

@ -27,7 +27,7 @@ echo "Generating trees for ${high_disc} discs"
# Second, initialize the trees for each disc
for disc in `jot $high_disc`; do
rm -rf ${DESTDIR}/disc${disc}
rm -rf ${DESTDIR}/disc${disc}/packages
mkdir -p ${DESTDIR}/disc${disc}/packages/All
cp ${INDEX} ${DESTDIR}/disc${disc}/packages/INDEX
done