summaryrefslogtreecommitdiffstats
path: root/gen_links.sh.inc
diff options
context:
space:
mode:
Diffstat (limited to 'gen_links.sh.inc')
-rw-r--r--gen_links.sh.inc12
1 files changed, 12 insertions, 0 deletions
diff --git a/gen_links.sh.inc b/gen_links.sh.inc
new file mode 100644
index 0000000..2fcb9d1
--- /dev/null
+++ b/gen_links.sh.inc
@@ -0,0 +1,12 @@
+#!dont_run_this
+# This file is sourced by */gen_links.sh
+
+gen_links() {
+ DIR=$1
+ shift
+ FILES=$*
+ for f in $FILES; do
+ echo "Linking $f"
+ ln -sf $DIR/$f $f
+ done
+}