chiark / gitweb /
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, 22 Mar 2013 00:52:55 +0000 (00:52 +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
setup.sh [new file with mode: 0755]

index be303db03207df9fc05ba0ae7d7166e49d95740d..f71b83065e877e45df2616471870840df54a8cd5 100644 (file)
@@ -1 +1,2 @@
 *.fasl
+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