for f in *.$PRODUCED; do
ORIGINAL=${f/.$PRODUCED/.$SOURCE}
if [ -f "${ORIGINAL}" ]; then
- if [ "${f}" -nt "${ORIGINAL}" ]; then
+ # if [ "${f}" -nt "${ORIGINAL}" ]; then
echo "Moving file $f to ${TRASH} ($ORIGINAL exists)"
mv $f ${TRASH}
- else
- echo "File $f is older than $ORIGINAL. Keeping both."
- fi
+ # else
+ # echo "File $f is older than $ORIGINAL. Keeping both."
+ # fi
fi
done
done
for f in $(find -type f -executable); do
if [ -f ${f}.cc ] || [ -f ${f}.c ]; then
- echo "move $f to ${TRASH} (source code exists)"
+ echo "Moving $f to ${TRASH} (source code exists)"
mv $f ${TRASH}
fi
done