diff options
Diffstat (limited to 'tools/packages/arch.sh')
-rwxr-xr-x | tools/packages/arch.sh | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tools/packages/arch.sh b/tools/packages/arch.sh index 47f54a8e..8f2e5c3e 100755 --- a/tools/packages/arch.sh +++ b/tools/packages/arch.sh @@ -1,10 +1,17 @@ -#!/bin/sh +#!/bin/bash PWD=`pwd` VERSION=`cat PORTABLE_VERSION | perl -ne 'chomp and print'` ARCH_VERSION=`cat PORTABLE_VERSION | perl -ne 'chomp and print' | sed 's/-//'` BUILD=`cat PORTABLE_BUILD | perl -ne 'chomp and print'` -ARCH=`uname -m | perl -ne 'chomp and print'` +if [[ "$ARCH" == "i686" ]]; then + echo +elif [[ "$ARCH" == "x86_64" ]]; then + echo +else + echo unknown arch $ARCH + exit -1 +fi INDIR=$PWD/static/$ARCH/deadbeef-$VERSION TEMPDIR=$PWD/package_temp/$ARCH/arch-$VERSION PKGINFO=$TEMPDIR/.PKGINFO |