From 776b2a6ab461874e2fa2534b1da95f6e1c4d0b48 Mon Sep 17 00:00:00 2001 From: landry Date: Sat, 6 Nov 2010 10:58:15 +0000 Subject: [PATCH] Return an error code in case the AUTO{CONF,MAKE}_VERSION variable is not found in environment instead of failing silently. Bump metaauto to 1.0. from Tobias Ulmer, ports failing with that diff (automake, cups, freetds, tremor-tools) fixed by sthen@ and myself, 'go ahead' espie@ --- devel/metaauto/Makefile | 4 ++-- devel/metaauto/files/meta.in | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/devel/metaauto/Makefile b/devel/metaauto/Makefile index d6cd58a8290..49bffcb332c 100644 --- a/devel/metaauto/Makefile +++ b/devel/metaauto/Makefile @@ -1,8 +1,8 @@ -# $OpenBSD: Makefile,v 1.14 2008/03/31 08:47:25 bernd Exp $ +# $OpenBSD: Makefile,v 1.15 2010/11/06 10:58:15 landry Exp $ COMMENT= wrapper for gnu auto* -VERSION= 0.9 +VERSION= 1.0 DISTNAME= metaauto-${VERSION} CATEGORIES= devel DISTFILES= pkg-config-0.21.tar.gz diff --git a/devel/metaauto/files/meta.in b/devel/metaauto/files/meta.in index d3f57cdbb64..e3ab88691c0 100644 --- a/devel/metaauto/files/meta.in +++ b/devel/metaauto/files/meta.in @@ -1,5 +1,5 @@ #! /bin/sh -# $OpenBSD: meta.in,v 1.5 2008/03/31 08:47:25 bernd Exp $ +# $OpenBSD: meta.in,v 1.6 2010/11/06 10:58:15 landry Exp $ # Copyright (c) 2003,2004 Marc Espie. # @@ -26,7 +26,8 @@ case "x$@PROG_VERSION" in x) # figure out manually what to do - echo "Provide an @PROG_VERSION environment variable, please" + echo "Provide an @PROG_VERSION environment variable, please" >&2 + exit 127 ;; x*) exec @LOCALBASE@/bin/@SCRIPT@-$@PROG_VERSION "$@"