WSTester updated to work plus hopefully all the other changes that need to go into...
[jabaws.git] / binaries / src / ViennaRNA / man / cmdlopt.sh.in
diff --git a/binaries/src/ViennaRNA/man/cmdlopt.sh.in b/binaries/src/ViennaRNA/man/cmdlopt.sh.in
new file mode 100644 (file)
index 0000000..3622fbd
--- /dev/null
@@ -0,0 +1,15 @@
+#/bin/sh
+# this is a wrapper for help2man
+# it enables it to obtain help, detailed-help and version information
+# directly from a given .ggo file.
+#
+# the first argument passed to this script must be the .ggo file which
+# should be parsed, while the second argument may be one of the following
+# options
+
+
+case $2 in
+  --help)           gengetopt --show-help --set-version=@VERSION@ < $1;;
+  --version)        echo @VERSION@;;
+  --detailed-help)  gengetopt --show-detailed-help --set-version=@VERSION@ < $1;;
+esac