(1) Make extra files fatal errors only if they are files -- extra

directories are still included in the list of "extra stuff", but
    are not considered fatal (for now).

(2) Use ls's -a flag to print out list of all files in ${PREFIX}, for
    obvious reasons.
This commit is contained in:
Satoshi Asami 2000-07-02 09:32:30 +00:00
parent 248fb0cf95
commit f20bd10615
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=30062

View file

@ -95,14 +95,21 @@ else
if [ "x${mtreefile}" != "x" ]; then
mtree -f ${mtreefile} -p ${prefix} > /tmp/list3
if [ -s /tmp/list3 ]; then
if [ "x${NOPLISTCHECK}" = "x" ]; then
for path in $(awk '/^extra:/ {print $2}' /tmp/list3); do
if [ ! -d ${prefix}/${path} ]; then
echo "1" > /tmp/status
fi
done
fi
echo "================================================================"
echo "list of extra files and directories in ${prefix}"
cat /tmp/list3
echo "list of all files and directories in ${prefix}"
cd ${prefix}
find . -exec echo -n 'path: ' \; -exec ls -1d \{} \; | sort
echo "ls -lR ${prefix}"
ls -lR ${prefix}
echo "ls -alR ${prefix}"
ls -alR ${prefix}
fi
fi
else