pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/pbulk/files/pbulk/scripts Add another check f...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/73d71e95ec32
branches:  trunk
changeset: 538158:73d71e95ec32
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed Jan 30 15:01:04 2008 +0000

description:
Add another check for the cross-compiling case.

diffstat:

 pkgtools/pbulk/files/pbulk/scripts/pre-build |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 528ef41c274c -r 73d71e95ec32 pkgtools/pbulk/files/pbulk/scripts/pre-build
--- a/pkgtools/pbulk/files/pbulk/scripts/pre-build      Wed Jan 30 14:20:54 2008 +0000
+++ b/pkgtools/pbulk/files/pbulk/scripts/pre-build      Wed Jan 30 15:01:04 2008 +0000
@@ -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@localhost>.
 # All rights reserved.
@@ -47,6 +47,10 @@
                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



Home | Main Index | Thread Index | Old Index