]> wagnertech.de Git - projects.git/blobdiff - Configure
eclipse-cpp added
[projects.git] / Configure
index 325f710c5eb07951b0c95e674d6739b82298cb3c..9eddd7dbca49dc7f24f61334f6cc597976300344 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -8,38 +8,50 @@ PROJECT = libcob-ocesql mconnect webssh
 USAGE
 }
 
-if [ -z "$1" ]
-then
+function write_deb {
+       # $1: package name
+       # $2: compile_typ
+       cat <<ANY_DEB >debian/$1.conf
+# generated by configure
+compile_type=$2
+target_type=DEB
+ANY_DEB
+}
+
+function write_changelog {
+       # $1: package name
+       cat <<CHANGELOG >debian/$1.changelog
+projects (%VERSION%-%BUILD%) unstable; urgency=medium
+  * generated by configure
+ -- Michael Wagner <info@wagnertech.de>  Fri, 05 Dec 2025 20:03:04 +0100
+CHANGELOG
+}
+
+if [ -z "$1" ]; then
        usage
        exit 7
 fi
 
 case $1 in
 
-mconnect)
-       cat <<MCONNECT >debian/mconnect.conf
-# generated by configure
-compile_type=NONE
-target_type=DEB
-MCONNECT
-       mconfigure mconnect
+eclipse-cpp)
+       write_deb eclipse-cpp NONE
+       write_changelog eclipse-cpp
+       mconfigure -V eclipse-cpp
        ;;
-
+       
 libcob-ocesql)
-       cat <<OCESQL >debian/libcob-ocesql.conf
-# generated by configure
-compile_type=ANY
-target_type=DEB
-OCESQL
+       write_deb libcob-ocesql ANY
        mconfigure -v 1.4 libcob-ocesql
        ;;
 
+mconnect)
+       write_deb mconnect ANY
+       mconfigure mconnect
+       ;;
+
 webssh)
-       cat <<WEBSSH >debian/webssh.conf
-# generated by configure
-compile_type=ANY
-target_type=DEB
-WEBSSH
+       write_deb webssh ANY
        mconfigure -V webssh
        ;;
 
@@ -49,3 +61,4 @@ WEBSSH
        exit 25
        ;;
 esac
+