From: ajacoutot Date: Thu, 21 Aug 2014 16:50:11 +0000 (+0000) Subject: Unbreak when "SRCDIR=." X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e4f7a387554235598074ed6392a4be55d383a0c8;p=openbsd Unbreak when "SRCDIR=." reported by phessler@ --- diff --git a/usr.sbin/sysmerge/sysmerge.sh b/usr.sbin/sysmerge/sysmerge.sh index 269dcc90320..bc9850acf19 100644 --- a/usr.sbin/sysmerge/sysmerge.sh +++ b/usr.sbin/sysmerge/sysmerge.sh @@ -1,6 +1,6 @@ #!/bin/ksh - # -# $OpenBSD: sysmerge.sh,v 1.150 2014/08/11 09:03:27 ajacoutot Exp $ +# $OpenBSD: sysmerge.sh,v 1.151 2014/08/21 16:50:11 ajacoutot Exp $ # # Copyright (c) 2008-2014 Antoine Jacoutot # Copyright (c) 1998-2003 Douglas Barton @@ -853,7 +853,7 @@ while getopts bdpSs:x: arg; do usage error_rm_wrkdir "conflicting options" fi - SRCDIR="${OPTARG}" + SRCDIR="$(readlink -f ${OPTARG})" [[ -f ${SRCDIR}/etc/Makefile ]] || \ error_rm_wrkdir "${SRCDIR}: invalid \"src\" tree, missing ${SRCDIR}/etc/Makefile" continue