summaryrefslogtreecommitdiffstats
path: root/cleanlogs.sh
blob: 79bfee10e1cbb88ed9722bfbb101b342ff52743b (plain)
1
2
3
4
5
d1=$1
d2=$2
[ -n $1 -a -d ./$1 ] || exit 1
[ -n $2 -a -d ./$2 ] || exit 1
for d in $(sort $d1/status.core.log $d2/status.core.log | uniq -d | grep -v this_arch | cut -d: -f1); do rm -rf $d1/$d; ln -s ../$d2/$d $d1/$d; done