summaryrefslogtreecommitdiff
path: root/scripts/portable_postbuild.sh
diff options
context:
space:
mode:
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