Handle '-' in uname output, needed for DragonFly. From Justin Sherrill in PR 44526.

This commit is contained in:
wiz 2011-02-07 10:32:32 +00:00
parent 5e6e1c2c42
commit 4e0907259f

View file

@ -1,4 +1,4 @@
# $NetBSD: bsd.pkg.mk,v 1.1975 2010/11/03 18:02:40 adam Exp $
# $NetBSD: bsd.pkg.mk,v 1.1976 2011/02/07 10:32:32 wiz Exp $
#
# This file is in the public domain.
#
@ -640,7 +640,7 @@ _BIN_INSTALL_FLAGS+= -A
.endif
_BIN_INSTALL_FLAGS+= ${PKG_ARGS_ADD}
_SHORT_UNAME_R= ${:!${UNAME} -r!:C@\.([0-9]*)[_.].*@.\1@} # n.n[_.]anything => n.n
_SHORT_UNAME_R= ${:!${UNAME} -r!:C@\.([0-9]*)[_.-].*@.\1@} # n.n[_.]anything => n.n
.include "install/bin-install.mk"