summaryrefslogtreecommitdiff
path: root/pkgtools/pbulk
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2008-01-30 15:01:04 +0000
committerjoerg <joerg@pkgsrc.org>2008-01-30 15:01:04 +0000
commitdca74e43ddab4f441436a347beb945ff26c3aea3 (patch)
tree268f3ffec469334edca4b2d834f6266ed4754c7c /pkgtools/pbulk
parent98eb79c256e249c6731b5535e490022e441cb5cd (diff)
downloadpkgsrc-dca74e43ddab4f441436a347beb945ff26c3aea3.tar.gz
Add another check for the cross-compiling case.
Diffstat (limited to 'pkgtools/pbulk')
-rwxr-xr-xpkgtools/pbulk/files/pbulk/scripts/pre-build6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgtools/pbulk/files/pbulk/scripts/pre-build b/pkgtools/pbulk/files/pbulk/scripts/pre-build
index 041db534d9a..ce605efd5c9 100755
--- a/pkgtools/pbulk/files/pbulk/scripts/pre-build
+++ b/pkgtools/pbulk/files/pbulk/scripts/pre-build
@@ -1,5 +1,5 @@
#!@SH@
-# $NetBSD: pre-build,v 1.7 2008/01/26 23:44:09 joerg Exp $
+# $NetBSD: pre-build,v 1.8 2008/01/30 15:01:04 joerg Exp $
#
# Copyright (c) 2007 Joerg Sonnenberger <joerg@NetBSD.org>.
# All rights reserved.
@@ -47,6 +47,10 @@ if [ "$cross_compile" != "no" ]; then
echo "target_destdir must not be / for cross-compiling."
exit 1
fi
+ if [ -z "${target_arch}" ]; then
+ echo "target_arch must be specified for cross-compiling."
+ exit 1
+ fi
fi
if [ -d "${bulklog}/meta" ]; then