Module Name:    src
Committed By:   uebayasi
Date:           Tue Apr 29 06:51:57 UTC 2014

Modified Files:
        src: build.sh

Log Message:
resolvepath: Resolve .. in absolute paths.


To generate a diff of this commit:
cvs rdiff -u -r1.278 -r1.279 src/build.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/build.sh
diff -u src/build.sh:1.278 src/build.sh:1.279
--- src/build.sh:1.278	Mon Mar 31 19:29:21 2014
+++ src/build.sh	Tue Apr 29 06:51:57 2014
@@ -1,5 +1,5 @@
 #! /usr/bin/env sh
-#	$NetBSD: build.sh,v 1.278 2014/03/31 19:29:21 martin Exp $
+#	$NetBSD: build.sh,v 1.279 2014/04/29 06:51:57 uebayasi Exp $
 #
 # Copyright (c) 2001-2011 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -889,6 +889,7 @@ resolvepath()
 		val="${TOP}/${val%/}"
 		;;
 	esac
+	val="$( /bin/mkdir -p ${val} && cd ${val} && /bin/pwd )"
 	eval ${var}=\"\${val}\"
 }
 
@@ -1746,7 +1747,7 @@ createmakewrapper()
 	eval cat <<EOF ${makewrapout}
 #! ${HOST_SH}
 # Set proper variables to allow easy "make" building of a NetBSD subtree.
-# Generated from:  \$NetBSD: build.sh,v 1.278 2014/03/31 19:29:21 martin Exp $
+# Generated from:  \$NetBSD: build.sh,v 1.279 2014/04/29 06:51:57 uebayasi Exp $
 # with these arguments: ${_args}
 #
 

Reply via email to