Commit | Line | Data |
---|---|---|
8cb2beca | 1 | #! /bin/sh |
2 | ||
3 | # --- Configuration --- | |
4 | ||
5 | cd @prefix@ | |
6 | ||
7 | # --- Go! --- | |
8 | ||
9 | archlist=`sw listarch` | |
10 | for i in *; do | |
11 | case "$i" in sw-index) continue;; esac | |
12 | for a in $archlist; do | |
13 | target="arch/$a/$i" | |
14 | [ -L "$target" ] && rm "$target" | |
15 | [ -f "$target" -o -d "$target" ] && continue | |
16 | ln -s ../../"$i" "$target" | |
17 | done | |
18 | done |