Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fvbe.git;a=commitdiff;h=1297a2a6ace7d87c483a5c50f042f6b2c1e4c7a5

commit 1297a2a6ace7d87c483a5c50f042f6b2c1e4c7a5
Author: James Buren <r...@frugalware.org>
Date:   Thu May 5 10:41:30 2011 -0500

initial draft of build script

diff --git a/build.sh b/build.sh
new file mode 100755
index 0000000..bd3c25f
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+arch="$(uname -m)"
+
+error()
+{
+       echo "$1"
+       exit 1
+}
+
+check_arch()
+{
+       local match=0
+
+       for i in i686 x86_64; do
+               if [ "$i" == "$arch" ]; then
+                       match=1
+                       break
+               fi
+       done
+
+       [ "$match" -ne 1 ] && error "Unsupported arch: $arch"
+}
+
+check_arch
\ No newline at end of file
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to