posaune
authorMichael Wagner <info@wagnertech.de>
Wed, 9 Mar 2016 13:03:51 +0000 (14:03 +0100)
committerMichael Wagner <info@wagnertech.de>
Wed, 9 Mar 2016 13:03:51 +0000 (14:03 +0100)
build/kivitendo-steckbrief.co [new file with mode: 0755]
build/kivitendo-steckbrief.pre [new file with mode: 0644]
build/kivitendo.co
build/start-build

diff --git a/build/kivitendo-steckbrief.co b/build/kivitendo-steckbrief.co
new file mode 100755 (executable)
index 0000000..3a7cf7d
--- /dev/null
@@ -0,0 +1,22 @@
+#!/bin/bash
+set -e
+
+# parameter: $1: git tag to build
+
+../kivitendo.co $1
+if [ -d GF ]
+then
+       pushd GF >/dev/null
+               svn up
+       popd >/dev/null
+else
+       svn co https://wagnertech.de/svn/verwaltung/GF
+fi
+
+pushd .. >/dev/null
+       ln -sf src/kivitendo-erp/doc/Steckbrief.tex .
+       ln -sf src/GF/wagner_tech_briefbogen_blau_fs1.pdf .
+       ln -sf kivitendo-steckbrief.pre make.pre
+       ln -sf projects/tools/tex/wallpaper.sty .
+       ln -s src/kivitendo-erp/image/Bildschirmfoto-kivitendo-steigmann-3.3.0-MozillaFirefox.png .
+popd >/dev/null
diff --git a/build/kivitendo-steckbrief.pre b/build/kivitendo-steckbrief.pre
new file mode 100644 (file)
index 0000000..c9660ff
--- /dev/null
@@ -0,0 +1 @@
+SOURCES = Steckbrief.pdf
index d9d1bcd..3d40317 100755 (executable)
@@ -2,6 +2,14 @@
 set -e
 
 # parameter: $1: git tag to build
-git clone https://github.com/wagner-tech/kivitendo-erp
-cd kivitendo-erp
-git checkout $1
+
+if [ -d kivitendo-erp ]
+then
+       pushd kivitendo-erp >/dev/null
+       git fetch
+else
+       git clone https://github.com/wagner-tech/kivitendo-erp
+       pushd kivitendo-erp >/dev/null
+fi
+       git checkout $1
+popd >/dev/null
index d12dd59..a26548c 100755 (executable)
@@ -8,4 +8,4 @@ fi
 
 ln -sf projects/tools/make/configure .
 
-echo "Nexr step: call 'configure <project> <tag>'"
+echo "Next step: call 'configure <project> <tag>'"