summaryrefslogtreecommitdiff
path: root/make_deb.sh
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-12-19 20:49:02 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-12-19 20:49:02 -0800
commit70682a53286964b3a6df8c9ddd6dd9942031261d (patch)
tree2311f9d577bb47e107c4a824234a1e4ae39d5590 /make_deb.sh
parent9e95de6fcf8603c1e9f59b83f76c76fca7317bca (diff)
More make_deb.sh tweaks - architecture detection.
Diffstat (limited to 'make_deb.sh')
-rwxr-xr-xmake_deb.sh12
1 files changed, 5 insertions, 7 deletions
diff --git a/make_deb.sh b/make_deb.sh
index fc11a05c2..f94959f1e 100755
--- a/make_deb.sh
+++ b/make_deb.sh
@@ -1,13 +1,11 @@
#!/bin/bash -e
MACHINE=$(uname -m)
-if [ "$MACHINE" = "x86_64" ]; then
- ARCHITECTURE=amd64
-elif [ "$MACHINE" = "i686" ]; then
- ARCHICTECTURE=i386
-elif [ "$MACHINE" = "i386" ]; then
- ARCHICTECTURE=i386
-fi
+case "$MACHINE" in
+ x86_64) ARCHITECTURE=amd64;;
+ i686) ARCHITECTURE=i386;;
+ i386) ARCHITECTURE=i386;;
+esac
SANDBOX=`pwd`/.cabal-sandbox
VERSION=$(grep -e '^Version' pandoc.cabal | awk '{print $2}')