Trivial script to add symlinks to EBI-like software repostitories.
authormdw <mdw>
Fri, 18 Jun 1999 18:59:17 +0000 (18:59 +0000)
committermdw <mdw>
Fri, 18 Jun 1999 18:59:17 +0000 (18:59 +0000)
sw-share.in [new file with mode: 0644]

diff --git a/sw-share.in b/sw-share.in
new file mode 100644 (file)
index 0000000..5e6866a
--- /dev/null
@@ -0,0 +1,18 @@
+#! /bin/sh
+
+# --- Configuration ---
+
+cd @prefix@
+
+# --- Go! ---
+
+archlist=`sw listarch`
+for i in *; do
+  case "$i" in sw-index) continue;; esac
+  for a in $archlist; do
+    target="arch/$a/$i"
+    [ -L "$target" ] && rm "$target"
+    [ -f "$target" -o -d "$target" ] && continue
+    ln -s ../../"$i" "$target"
+  done
+done