summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-09-26 13:16:43 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-09-26 13:16:43 +0900
commit986ae7e70f46d8ca33d97a09bedc83a8443d0a72 (patch)
treeec63fc6d66dcf899132055f3e23bbfde2095c51a
parent53179bbcdc5e9f5e3e27c09bfc1f1ffe3f239c6f (diff)
makr mrk bguild script actually work
-rwxr-xr-xmrk-srv-build.sh13
1 files changed, 7 insertions, 6 deletions
diff --git a/mrk-srv-build.sh b/mrk-srv-build.sh
index af650fb..09a248c 100755
--- a/mrk-srv-build.sh
+++ b/mrk-srv-build.sh
@@ -13,6 +13,7 @@ export CC=gcc
13export CFLAGS="-O3 -ffast-math" 13export CFLAGS="-O3 -ffast-math"
14export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig" 14export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
15export NAME=`grep "^PROJ:" Marrakesh.mrk | tail -1 | sed -e 's/PROJ://g' | sed -e 's/ *$//' -e 's/^ *//'` 15export NAME=`grep "^PROJ:" Marrakesh.mrk | tail -1 | sed -e 's/PROJ://g' | sed -e 's/ *$//' -e 's/^ *//'`
16export VERSION=`grep "^VERSION:" Marrakesh.mrk | tail -1 | sed -e 's/VERSION://g' | sed -e 's/ *$//' -e 's/^ *//'`
16 17
17## this is a sample - you need to do this N times, once per arch 18## this is a sample - you need to do this N times, once per arch
18export MRKARCH="x86_64" 19export MRKARCH="x86_64"
@@ -21,19 +22,19 @@ mrk build
21mrk bin 22mrk bin
22export D="$2"/"$MRKOS-$MRKARCH" 23export D="$2"/"$MRKOS-$MRKARCH"
23mkdir -p "$D" || true 24mkdir -p "$D" || true
24cp *.mkb "$D" 25cp "$NAME"-"$VERSION".mkb "$D"
25pushd "$D" 26pushd "$D"
26rm -f "$D"/"$NAME" || true 27rm -f "$NAME" || true
27ln -sf *.mkb "$D"/"$NAME" 28ln -s "$NAME"-"$VERSION".mkb "$NAME"
28popd 29popd
29 30
30## # copy src to right place 31## # copy src to right place
31export D="$2"/"src" 32export D="$2"/"src"
32mkdir -p "$D" || true 33mkdir -p "$D" || true
33cp *.mks "$D" 34cp "$NAME"-"$VERSION".mks "$D"
34pushd "$D" 35pushd "$D"
35rm -f "$D"/"$NAME" || true 36rm -f "$NAME" || true
36ln -sf *.mkb "$D"/"$NAME" 37ln -s "$NAME"-"$VERSION".mks "$NAME"
37popd 38popd
38 39
39cd /tmp 40cd /tmp