summaryrefslogtreecommitdiffstats
path: root/pkgs/stdenv/freebsd/linkBootstrap.sh
blob: 73f984d1f1f09357e73af472e88ce581bca3eb2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env bash

for path in $paths; do
    if ! [ -e "$src/$path" ]; then
        echo "Error: $path does not exist"
        exit 1
    fi
    mkdir -p $out/$(dirname $path)
    if [[ -d $src/$path ]]; then
        ln -s $src/$path $out/$path
    else
        cp -RL $src/$path $out/$path
    fi
done