aboutsummaryrefslogtreecommitdiffstats
path: root/Tools/scripts
diff options
context:
space:
mode:
authorerwin <erwin@FreeBSD.org>2007-06-12 23:14:29 +0800
committererwin <erwin@FreeBSD.org>2007-06-12 23:14:29 +0800
commit75f9709e653a599ea86fe2ed7c11a81e19e92b92 (patch)
tree92cb5e39825f64b6398905110d0022dd024773ec /Tools/scripts
parent575f20c10ecb5d6584b6582a2a24048f44a1c356 (diff)
downloadfreebsd-ports-gnome-75f9709e653a599ea86fe2ed7c11a81e19e92b92.tar.gz
freebsd-ports-gnome-75f9709e653a599ea86fe2ed7c11a81e19e92b92.tar.zst
freebsd-ports-gnome-75f9709e653a599ea86fe2ed7c11a81e19e92b92.zip
ARCH may be set in the environment for cross building, so only
set it conditionally. Submitted by: kris
Diffstat (limited to 'Tools/scripts')
-rwxr-xr-xTools/scripts/tindex6
1 files changed, 4 insertions, 2 deletions
diff --git a/Tools/scripts/tindex b/Tools/scripts/tindex
index ffb02ab56ed6..c55bad1d8d0f 100755
--- a/Tools/scripts/tindex
+++ b/Tools/scripts/tindex
@@ -33,8 +33,10 @@ export SRCDIR5=${BASEDIR}/src.5
export SRCDIR6=${BASEDIR}/src.6
export SRCDIR7=${BASEDIR}/src.7
-# Target architecture
-export ARCH=i386
+# Target architecture if not set in the environment
+if [ "${ARCH}" = "" ]; then
+ export ARCH=i386
+fi
# SSH key to use for copying INDEXes to www host (if non-default)
export SSHKEY="-i /home/kris/.ssh/id_dsa-index"