summaryrefslogtreecommitdiff
path: root/scripts/portable_postbuild.sh
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2014-01-20 23:13:25 +0100
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2014-01-20 23:13:25 +0100
commit10f5b5be91e52017b2264e10cb2a300589635be1 (patch)
tree9d5204e571c11d1d1b592acec7d6f925e6c0a2f2 /scripts/portable_postbuild.sh
parenta7f49cce115de9ff8a35e94af7ef9c05bb0d7bc3 (diff)
i686 cross-compile fixes
Diffstat (limited to 'scripts/portable_postbuild.sh')
-rwxr-xr-xscripts/portable_postbuild.sh11
1 files changed, 9 insertions, 2 deletions
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