summaryrefslogtreecommitdiffstats
path: root/setup-symlinks.sh
blob: 1ad8c2cba1a3ab238239eb1fd9b15a65c654c1b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh -eu

targetdir=$1
shift
target=$1
shift

for file in "$@"; do
    rm -f "$targetdir/$file"
    ln -s "$target" "$targetdir/$file"
done