From e24c1fb8808a072bf21711ff8935c35ec52f074d Mon Sep 17 00:00:00 2001 From: hubertf Date: Sat, 1 Apr 2000 20:55:24 +0000 Subject: Use $PKGEDITOR or $EDITOR Requested by Martin Husemann --- pkgtools/url2pkg/files/url2pkg | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'pkgtools') diff --git a/pkgtools/url2pkg/files/url2pkg b/pkgtools/url2pkg/files/url2pkg index 00dee217cd9..ef2757efc22 100755 --- a/pkgtools/url2pkg/files/url2pkg +++ b/pkgtools/url2pkg/files/url2pkg @@ -1,11 +1,19 @@ #!/bin/sh # -# $NetBSD: url2pkg,v 1.7 2000/01/06 02:03:51 hubertf Exp $ +# $NetBSD: url2pkg,v 1.8 2000/04/01 20:55:24 hubertf Exp $ # # url2pkg # (c) 1999 Hubert Feyrer # +if [ "$PKGEDITOR" != "" ]; then + editor="$PKGEDITOR" +elif [ "$EDITOR" != "" ]; then + editor="$EDITOR" +else + editor="vi" +fi + if [ "$PKGMAINTAINER" != "" ]; then email_maintainer="$PKGMAINTAINER" elif [ "$REPLYTO" != "" ]; then @@ -66,7 +74,7 @@ if [ ! -f w*/.extract_done ]; then mkdir pkg echo '@comment $'NetBSD'$' >pkg/PLIST - vi +/FILLTHISINPLEASE Makefile + ${editor} +5 Makefile echo "Running 'make makesum' ..." make makesum -- cgit v1.2.3