Hi Marc,

metaauto should IMHO return an error code instead of failing silently.

Index: Makefile
===================================================================
RCS file: /srv/boron/data/vcs/cvs/openbsd/ports/devel/metaauto/Makefile,v
retrieving revision 1.14
diff -u -p -r1.14 Makefile
--- Makefile    31 Mar 2008 08:47:25 -0000      1.14
+++ Makefile    25 Oct 2010 21:16:39 -0000
@@ -2,7 +2,7 @@
 
 COMMENT=       wrapper for gnu auto*
 
-VERSION=       0.9
+VERSION=       1.0
 DISTNAME=      metaauto-${VERSION}
 CATEGORIES=    devel
 DISTFILES=     pkg-config-0.21.tar.gz
Index: files/meta.in
===================================================================
RCS file: /srv/boron/data/vcs/cvs/openbsd/ports/devel/metaauto/files/meta.in,v
retrieving revision 1.5
diff -u -p -r1.5 meta.in
--- files/meta.in       31 Mar 2008 08:47:25 -0000      1.5
+++ files/meta.in       25 Oct 2010 21:16:39 -0000
@@ -26,9 +26,10 @@
 
 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*)    
+x*)
        exec @LOCALBASE@/bin/@scr...@-$@PROG_VERSION "$@"
        ;;
 esac

Reply via email to