]> wagnertech.de Git - projects.git/blob - Configure
eclipse-cpp added
[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 function write_deb {
12         # $1: package name
13         # $2: compile_typ
14         cat <<ANY_DEB >debian/$1.conf
15 # generated by configure
16 compile_type=$2
17 target_type=DEB
18 ANY_DEB
19 }
20
21 function write_changelog {
22         # $1: package name
23         cat <<CHANGELOG >debian/$1.changelog
24 projects (%VERSION%-%BUILD%) unstable; urgency=medium
25   * generated by configure
26  -- Michael Wagner <info@wagnertech.de>  Fri, 05 Dec 2025 20:03:04 +0100
27 CHANGELOG
28 }
29
30 if [ -z "$1" ]; then
31         usage
32         exit 7
33 fi
34
35 case $1 in
36
37 eclipse-cpp)
38         write_deb eclipse-cpp NONE
39         write_changelog eclipse-cpp
40         mconfigure -V eclipse-cpp
41         ;;
42         
43 libcob-ocesql)
44         write_deb libcob-ocesql ANY
45         mconfigure -v 1.4 libcob-ocesql
46         ;;
47
48 mconnect)
49         write_deb mconnect ANY
50         mconfigure mconnect
51         ;;
52
53 webssh)
54         write_deb webssh ANY
55         mconfigure -V webssh
56         ;;
57
58 *)
59         echo "Invalid project."
60         usage
61         exit 25
62         ;;
63 esac
64