From 10f5b5be91e52017b2264e10cb2a300589635be1 Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Mon, 20 Jan 2014 23:13:25 +0100 Subject: i686 cross-compile fixes --- scripts/portable_postbuild.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'scripts/portable_postbuild.sh') diff --git a/scripts/portable_postbuild.sh b/scripts/portable_postbuild.sh index 09937bf9..d0ecde41 100755 --- a/scripts/portable_postbuild.sh +++ b/scripts/portable_postbuild.sh @@ -1,7 +1,14 @@ -#!/bin/sh +#!/bin/bash VERSION=`cat PORTABLE_VERSION | perl -ne 'chomp and print'` OSTYPE=`uname -s` -ARCH=`uname -m | perl -ne 'chomp and print'` +if [[ "$ARCH" == "i686" ]]; then + echo arch: $ARCH +elif [[ "$ARCH" == "x86_64" ]]; then + echo arch: $ARCH +else + echo unknown arch $ARCH + exit -1 +fi OUTDIR=portable/$ARCH/deadbeef-$VERSION PLUGDIR=$OUTDIR/plugins DOCDIR=$OUTDIR/doc -- cgit v1.2.3