More make_deb.sh tweaks - architecture detection.
commit70682a53286964b3a6df8c9ddd6dd9942031261d
authorJohn MacFarlane <jgm@berkeley.edu>
dateFri 19 Dec 2014, 20:49 (12 years ago)
parent9e95de6
make_deb.sh+5−7
@@ -1,13 +1,11 @@
11#!/bin/bash -e
22
33MACHINE=$(uname -m)
4−if [ "$MACHINE" = "x86_64" ]; then
5− ARCHITECTURE=amd64
6−elif [ "$MACHINE" = "i686" ]; then
7− ARCHICTECTURE=i386
8−elif [ "$MACHINE" = "i386" ]; then
9− ARCHICTECTURE=i386
10−fi
4+case "$MACHINE" in
5+ x86_64) ARCHITECTURE=amd64;;
6+ i686) ARCHITECTURE=i386;;
7+ i386) ARCHITECTURE=i386;;
8+esac
119
1210SANDBOX=`pwd`/.cabal-sandbox
1311VERSION=$(grep -e '^Version' pandoc.cabal | awk '{print $2}')