posaune
authorMichael Wagner <info@wagnertech.de>
Wed, 6 Apr 2016 10:54:39 +0000 (12:54 +0200)
committerMichael Wagner <info@wagnertech.de>
Wed, 6 Apr 2016 10:54:39 +0000 (12:54 +0200)
build/kivitendo-mebil.co [new file with mode: 0755]
build/kivitendo.co
build/kivitendo.cp [deleted file]
build/start-build

diff --git a/build/kivitendo-mebil.co b/build/kivitendo-mebil.co
new file mode 100755 (executable)
index 0000000..da0def4
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/bash
+set -e
+
+./kivitendo.co $*
+
index 3d40317..e8474d2 100755 (executable)
@@ -2,13 +2,21 @@
 set -e
 
 # parameter: $1: git tag to build
+# options: -g <alternative repository>
+
+repos="https://github.com/wagner-tech"
+if getopts "g:" opt; then
+       repos=$OPTARG
+       shift 2
+fi
 
 if [ -d kivitendo-erp ]
 then
        pushd kivitendo-erp >/dev/null
-       git fetch
+       branch=$(git rev-parse --abbrev-ref HEAD)
+       git pull origin $branch
 else
-       git clone https://github.com/wagner-tech/kivitendo-erp
+       git clone $repos/kivitendo-erp
        pushd kivitendo-erp >/dev/null
 fi
        git checkout $1
diff --git a/build/kivitendo.cp b/build/kivitendo.cp
deleted file mode 100755 (executable)
index f0935cf..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/bash
-set -e
-
-# parameter: $1: base dir for copy (optional)
-
-mkdir -p $1/opt
-cp -a src/kivitendo-erp $1/opt
index a26548c..23256ac 100755 (executable)
@@ -2,10 +2,16 @@
 set -e
 
 # checkout build utilities
-if [ ! -d projects ]; then
+if [ -d projects ]; then
+       pushd projects >/dev/null
+               git pull origin master
+       popd >/dev/null
+else
        git clone https://github.com/wagner-tech/projects/
 fi
 
 ln -sf projects/tools/make/configure .
 
 echo "Next step: call 'configure <project> <tag>'"
+echo "Available are:"
+ls *.co