From: Michael Wagner Date: Wed, 6 Apr 2016 10:46:09 +0000 (+0200) Subject: posaune X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=674cf5543a5be97f9b0c48c4fc938d3e7ea55129;p=kivitendo-erp.git posaune --- diff --git a/etc/kivitendo-mebil.cp b/etc/kivitendo-mebil.cp index f0935cf8d..2bed80257 100755 --- a/etc/kivitendo-mebil.cp +++ b/etc/kivitendo-mebil.cp @@ -3,5 +3,18 @@ set -e # parameter: $1: base dir for copy (optional) -mkdir -p $1/opt -cp -a src/kivitendo-erp $1/opt +function fcp +{ + rel_path=${3#$1} + + # create target dir, if necessary + rel_dir=${rel_path%/*} + mkdir -p $2/$rel_dir + cp -a $1/$rel_path $2/$rel_dir +} + +pushd src/kivitendo-erp >/dev/null + for file in $(git diff release-3.3.0 t3 --name-only |grep -v "^etc"); do + fcp . ../../$1/opt/kivitendo-mebil $file + done +popd >/dev/null