diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:02:40 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:02:40 -0400 |
commit | b7d5240bb7a04c269e92abaae54a9b6eefc0919b (patch) | |
tree | 2031a007f77ebc744d28282c3bfc4b0727b89c39 /development/django/django.SlackBuild | |
parent | 4620775653b82e7de5998eba452c81838a966aa8 (diff) |
development/django: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'development/django/django.SlackBuild')
-rw-r--r-- | development/django/django.SlackBuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/development/django/django.SlackBuild b/development/django/django.SlackBuild index d7db78179444..f29f24ff7277 100644 --- a/development/django/django.SlackBuild +++ b/development/django/django.SlackBuild @@ -25,10 +25,19 @@ PKGNAM=django SRCNAM=Django VERSION=${VERSION:-1.1.1} -ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) ARCH=$( uname -m ) ;; + esac +fi + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PKGNAM |