blob: 037dd6480b481ff80b44cec7886906320f31038a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/bash
getent passwd | cut -d: -f1,6 | while IFS=: read u h ; do
if [[ -d $h/.ccache ]] ; then
CCACHE_BASEDIR=$(sudo -u $u ccache -k cache_dir)
if [[ -e $CCACHE_BASEDIR ]] ; then
realpath $CCACHE_BASEDIR
fi
fi
done | sort -u | while read d ; do
echo "Hard linking $d..."
hardlink -mopt $d
done
|