posaune mebil-0.1
authorMichael Wagner <info@wagnertech.de>
Wed, 6 Apr 2016 10:46:09 +0000 (12:46 +0200)
committerMichael Wagner <info@wagnertech.de>
Wed, 6 Apr 2016 10:46:09 +0000 (12:46 +0200)
etc/kivitendo-mebil.cp

index f0935cf..2bed802 100755 (executable)
@@ -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