More make_deb.sh tweaks - architecture detection.

This commit is contained in:
John MacFarlane 2014-12-19 20:49:02 -08:00
parent 9e95de6fcf
commit 70682a5328

View file

@ -1,13 +1,11 @@
#!/bin/bash -e #!/bin/bash -e
MACHINE=$(uname -m) MACHINE=$(uname -m)
if [ "$MACHINE" = "x86_64" ]; then case "$MACHINE" in
ARCHITECTURE=amd64 x86_64) ARCHITECTURE=amd64;;
elif [ "$MACHINE" = "i686" ]; then i686) ARCHITECTURE=i386;;
ARCHICTECTURE=i386 i386) ARCHITECTURE=i386;;
elif [ "$MACHINE" = "i386" ]; then esac
ARCHICTECTURE=i386
fi
SANDBOX=`pwd`/.cabal-sandbox SANDBOX=`pwd`/.cabal-sandbox
VERSION=$(grep -e '^Version' pandoc.cabal | awk '{print $2}') VERSION=$(grep -e '^Version' pandoc.cabal | awk '{print $2}')