]> git.llucax.com Git - software/dgc/cdgc.git/commitdiff
Add a wrapper script to run programs using CDGC
authorLeandro Lucarella <llucax@gmail.com>
Thu, 24 Dec 2009 23:16:01 +0000 (20:16 -0300)
committerLeandro Lucarella <llucax@gmail.com>
Thu, 24 Dec 2009 23:16:01 +0000 (20:16 -0300)
cdgcrun [new file with mode: 0755]

diff --git a/cdgcrun b/cdgcrun
new file mode 100755 (executable)
index 0000000..85a0bf7
--- /dev/null
+++ b/cdgcrun
@@ -0,0 +1,10 @@
+#!/bin/sh
+# This is a small wrapper script to run a D program using the CDGC.
+#
+# Just run: ./cdgcrun myprogram my arguments
+#
+# To run "myprogram my arguments" using the CDGC.
+
+export LD_PRELOAD=./cdgc.so
+
+exec "$@"