Infra: Rudimentary setup system.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 5 Feb 2008 13:25:45 +0000 (13:25 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 2 Jan 2009 23:55:42 +0000 (23:55 +0000)
The script setup.sh creates the `systems' directory of symlinks, and
I've added a .gitignore to keep GIT from pokng its nose in.

.gitignore [new file with mode: 0644]
setup.sh [new file with mode: 0755]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..e0b8fd9
--- /dev/null
@@ -0,0 +1 @@
+systems
diff --git a/setup.sh b/setup.sh
new file mode 100755 (executable)
index 0000000..772577d
--- /dev/null
+++ b/setup.sh
@@ -0,0 +1,8 @@
+#! /bin/sh
+set -e
+
+rm -rf systems
+mkdir systems
+find . ! -type l -name '*.asd' | sed 's:^./::' | while read sys; do
+  ln -s ../$sys systems
+done