blob: eeeed85c9923cf5229fd5b8c74e1afcc2bf4179a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/sh
if [ $# -ne 2 ]; then
echo "usage: cprelsymln SOURCEDIR DESTDIR"
exit
fi
if ! which symlinks; then
echo "need to apt-get install symlinks"
exit
fi
find "$1" -type l -exec sh -c '
ln -s $(readlink -f "$0") '${2}'/"$(basename "$0")"
' {} ';'
symlinks -c $2
|