View | Details | Raw Unified | Return to bug 266479
Collapse All | Expand All

(-)b/Tools/scripts/distclean.sh (-2 / +2 lines)
Lines 63-75 P_SHA256_COUNT=`wc -l $FN_PORTS | sed "s| $FN_PORTS|| ; s| ||g"` Link Here
63
echo "Found $P_SHA256_COUNT sha256 entries in your ports directory."
63
echo "Found $P_SHA256_COUNT sha256 entries in your ports directory."
64
64
65
echo -n "Building distfiles sha256 index..."
65
echo -n "Building distfiles sha256 index..."
66
find ${DISTDIR}/ -type f | xargs sha256 | sed 's|'${DISTDIR}'/||' | sort > $FN_DISTFILES
66
find ${DISTDIR}/ -type f -print0 | xargs -0 sha256 | sed 's|'${DISTDIR}'/||' | sort > $FN_DISTFILES
67
echo "Done."
67
echo "Done."
68
D_SHA256_COUNT=`wc -l $FN_DISTFILES | sed "s| $FN_DISTFILES|| ; s| ||g"`
68
D_SHA256_COUNT=`wc -l $FN_DISTFILES | sed "s| $FN_DISTFILES|| ; s| ||g"`
69
echo "Found $D_SHA256_COUNT distfile(s) in your distfiles directory."
69
echo "Found $D_SHA256_COUNT distfile(s) in your distfiles directory."
70
70
71
echo -n "Comparing results..."
71
echo -n "Comparing results..."
72
diff -d $FN_DISTFILES $FN_PORTS | grep "^<" | sed 's|.*(|rm '$RM_FLAG' '${DISTDIR}'/| ; s|).*||' > $FN_RESULTS_SCRIPT
72
diff -d $FN_DISTFILES $FN_PORTS | grep "^<" | sed 's|.*(|rm '$RM_FLAG' "'${DISTDIR}'/| ; s|).*|"|' > $FN_RESULTS_SCRIPT
73
echo "Done."
73
echo "Done."
74
R_SHA256_COUNT=`wc -l $FN_RESULTS_SCRIPT | sed "s| $FN_RESULTS_SCRIPT|| ; s| ||g"`
74
R_SHA256_COUNT=`wc -l $FN_RESULTS_SCRIPT | sed "s| $FN_RESULTS_SCRIPT|| ; s| ||g"`
75
echo "$R_SHA256_COUNT distfile(s) doesn't have corresponding sha256 entries in ports directory."
75
echo "$R_SHA256_COUNT distfile(s) doesn't have corresponding sha256 entries in ports directory."

Return to bug 266479