]> wagnertech.de Git - projects.git/blobdiff - tools/make/configure
posaune
[projects.git] / tools / make / configure
index cb61a7585cb21a41847c3c4c32e96bf36121d3da..e27e9e2ab4d841679723bb9dcc90bf6ac861a482 100755 (executable)
@@ -23,6 +23,19 @@ build=$2
 ARCH=""
 cpp_build=0
 
+shift 2
+while getopts "b:a:" opt
+do
+       case $opt in
+       a) ARCH=$OPTARG
+               ;;
+       b) echo "branching not implemented"
+               ;;
+       *) exit 1
+               ;;
+       esac
+done
+
 # checkout build utilities
 if [ ! -d projects ]; then
        git clone https://github.com/wagner-tech/projects/
@@ -114,4 +127,5 @@ fi
 
 # append version to make.pre
 echo "version = $version" >> make.pre
+echo "build = $build" >> make.pre