From: Michael Wagner Date: Fri, 12 Aug 2022 14:42:24 +0000 (+0200) Subject: epic-ts X-Git-Tag: kivitendo-mebil_0.1-0~7 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=711e6c99a7057aa79b306e9cbd789d88d4b022a2;p=kivitendo-erp.git epic-ts --- diff --git a/debian/kivitendo-mebil.changelog b/debian/kivitendo-mebil.changelog new file mode 100644 index 000000000..d84e814bd --- /dev/null +++ b/debian/kivitendo-mebil.changelog @@ -0,0 +1,4 @@ +kivitendo-erp (0.1-%BUILD%) unstable; urgency=medium + * start of mebil mapping + -- Michael Wagner Tue, 08 Feb 2022 20:03:04 +0100 + diff --git a/debian/kivitendo-mebil.control b/debian/kivitendo-mebil.control new file mode 100644 index 000000000..adf2607e6 --- /dev/null +++ b/debian/kivitendo-mebil.control @@ -0,0 +1,13 @@ +Source: kivitendo-erp +Section: main +Priority: optional +Maintainer: Michael Wagner +Build-Depends: git,mbuild + +Package: kivitendo-mebil +Section: main +Priority: optional +Architecture: all +Depends: kivitendo +Description: kivitendo-ERP + diff --git a/debian/kivitendo-mebil.cp b/debian/kivitendo-mebil.cp new file mode 100755 index 000000000..634c28213 --- /dev/null +++ b/debian/kivitendo-mebil.cp @@ -0,0 +1,23 @@ +#!/bin/bash +set -e + +# parameter: $1: base dir for copy (optional) + +. debian/setenv.sh +mkdir -p $1/opt/kivitendo-mebil + +ov=$(head -1 VERSION) + +# test release tag for original version +git diff --stat release-$ov >git.tmp +cat git.tmp | grep -v debian |grep -v "files changed"| grep -v ".dummy" |sed "s/ //" | sed "s/ .*//" >git.diff + +while read line +do + path=${line%.*} + mkdir -p $1/opt/kivitendo-mebil/$path + cp $line $1/opt/kivitendo-mebil/$path/ +done $1/opt/kivitendo-mebil/VERSION_mebil + diff --git a/debian/kivitendo-mebil.postinst b/debian/kivitendo-mebil.postinst new file mode 100755 index 000000000..62e3bf4c1 --- /dev/null +++ b/debian/kivitendo-mebil.postinst @@ -0,0 +1,15 @@ +#!/bin/bash +set -ex + +rsync -av /opt/kivitendo-mebil/ /opt/kivitendo-erp + +mv=$(head -1 /opt/kivitendo-mebil/VERSION_mebil) +if grep ":" /opt/kivitendo-erp/VERSION >/dev/null +then + # kivitendo-mebil ist bereits mal installiert worden + sed -i "s/-.*/-$mv/" /opt/kivitendo-erp/VERSION +else + # erstmalige Installation + sed -i "s/\([0-9].*\)/\1-$mv/" /opt/kivitendo-erp/VERSION +fi +