]> wagnertech.de Git - projects.git/blobdiff - Configure
Merge branch 'master' of http://wagnertech.de/git/projects
[projects.git] / Configure
diff --git a/Configure b/Configure
new file mode 100755 (executable)
index 0000000..9e8badc
--- /dev/null
+++ b/Configure
@@ -0,0 +1,31 @@
+#!/bin/bash
+set -e
+
+function usage {
+       cat <<USAGE
+configure PROJECT
+PROJECT = webssh
+USAGE
+}
+
+if [ -z "$1" ]
+then
+       usage
+       exit 7
+fi
+
+case $1 in
+webssh)
+       cat <<WEBSSH >debian/webssh.conf
+# generated by configure
+compile_type=ANY
+target_type=DEB
+WEBSSH
+       mconfigure -V webssh
+       ;;
+*)
+       echo "Invalid project."
+       usage
+       exit 25
+       ;;
+esac