projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55a2b61
)
posaune
mebil-0.1
author
Michael Wagner
<info@wagnertech.de>
Wed, 6 Apr 2016 10:46:09 +0000
(12:46 +0200)
committer
Michael Wagner
<info@wagnertech.de>
Wed, 6 Apr 2016 10:46:09 +0000
(12:46 +0200)
etc/kivitendo-mebil.cp
patch
|
blob
|
history
diff --git
a/etc/kivitendo-mebil.cp
b/etc/kivitendo-mebil.cp
index
f0935cf
..
2bed802
100755
(executable)
--- 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