]> git.llucax.com Git - software/dgc/dgcbench.git/commitdiff
Add a simple script to generate Dil arguments to parse Tango
authorLeandro Lucarella <llucax@gmail.com>
Sun, 14 Nov 2010 21:57:56 +0000 (18:57 -0300)
committerLeandro Lucarella <llucax@gmail.com>
Sun, 14 Nov 2010 21:57:56 +0000 (18:57 -0300)
Generating the Tango docs using Dil involves a lot of arguments passing to
Dil, so adding this trivial script simplifies a lot doing that. Just run:

dil `./dil-args.sh`

dil-args.sh [new file with mode: 0755]

diff --git a/dil-args.sh b/dil-args.sh
new file mode 100755 (executable)
index 0000000..abb3ae3
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+echo -n "ddoc /tmp/tangodoc -hl --kandil -version=Tango -version=TangoDoc -version=Posix -version=linux "
+files=`find ../tango/tango -name '*.d' -o -name '*.di' | grep -v invariant`
+test -n "$1" &&
+       files=`echo $files | cut -d' ' -f1-$1`
+echo $files
+