]> wagnertech.de Git - projects.git/blob - Configure
325f710c5eb07951b0c95e674d6739b82298cb3c
[projects.git] / Configure
1 #!/bin/bash
2 set -e
3
4 function usage {
5         cat <<USAGE
6 configure PROJECT
7 PROJECT = libcob-ocesql mconnect webssh
8 USAGE
9 }
10
11 if [ -z "$1" ]
12 then
13         usage
14         exit 7
15 fi
16
17 case $1 in
18
19 mconnect)
20         cat <<MCONNECT >debian/mconnect.conf
21 # generated by configure
22 compile_type=NONE
23 target_type=DEB
24 MCONNECT
25         mconfigure mconnect
26         ;;
27
28 libcob-ocesql)
29         cat <<OCESQL >debian/libcob-ocesql.conf
30 # generated by configure
31 compile_type=ANY
32 target_type=DEB
33 OCESQL
34         mconfigure -v 1.4 libcob-ocesql
35         ;;
36
37 webssh)
38         cat <<WEBSSH >debian/webssh.conf
39 # generated by configure
40 compile_type=ANY
41 target_type=DEB
42 WEBSSH
43         mconfigure -V webssh
44         ;;
45
46 *)
47         echo "Invalid project."
48         usage
49         exit 25
50         ;;
51 esac