7 PROJECT = libcob-ocesql mconnect webssh
14 cat <<ANY_DEB >debian/$1.conf
15 # generated by configure
21 function write_changelog {
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
30 function write_eclipse_control {
32 cat <<CONTROL >debian/$1.control
36 Maintainer: Michael Wagner <michael@wagnertech.de>
37 Build-Depends: git, mbuild
40 Architecture: _DEB_HOST_ARCH
42 Description: http://eclipse.org
46 function write_eclipse_cp {
48 cat <<CP >debian/$1.cp
53 cp -a Downloads/eclipse/* \$1/opt/$1/
57 function write_eclipse_postinst {
59 cat <<POSTINST >debian/$1.postinst
63 for user in user nutzer kurs; do
64 if [ -d /home/\$user ]; then
65 echo "Install eclipse for user \$user"
66 pushd /home/\$user >/dev/null
68 if [ -d Schreibtisch ]; then
69 pushd Schreibtisch >/dev/null
70 su \$user -c "ln -sf /opt/eclipse-cpp/eclipse ."
74 if [ -d Desktop ]; then
75 pushd Desktop >/dev/null
76 su \$user -c "ln -sf /opt/eclipse-cpp/eclipse ."
85 function write_eclipse_prepare {
88 cat <<PREPARE >debian/$1.prepare
92 debian/eclipse.prepare $2
96 function configure_eclipse {
99 # $3: additional dependencies
103 write_eclipse_control $1 "$3"
105 chmod 755 debian/$1.cp
106 write_eclipse_postinst $1
107 chmod 755 debian/$1.postinst
108 write_eclipse_prepare $1 $2
109 chmod 755 debian/$1.prepare
121 configure_eclipse eclipse-cpp "eclipse-cpp*.tar.gz" "build-essential,gdb"
125 configure_eclipse eclipse-php "eclipse-php*.tar.gz" php
130 echo "supply version as 2nd parameter"
133 write_deb libcob-ocesql ANY
134 mconfigure -v $2 libcob-ocesql
138 write_deb mconnect ANY
148 echo "Invalid project."