diff options
author | hubertf <hubertf@pkgsrc.org> | 2000-04-01 20:55:24 +0000 |
---|---|---|
committer | hubertf <hubertf@pkgsrc.org> | 2000-04-01 20:55:24 +0000 |
commit | 173a71456692103aa85e5a6469e0066df83ba07e (patch) | |
tree | 7ed954ff55ed7031ea3414119d2133f3d2cc25f9 /pkgtools/url2pkg | |
parent | 30dc8181c98d7ea6e8decad01534e6c1d7cdd72d (diff) | |
download | pkgsrc-173a71456692103aa85e5a6469e0066df83ba07e.tar.gz |
Use $PKGEDITOR or $EDITOR
Requested by Martin Husemann <martin@rumolt.teuto.de>
Diffstat (limited to 'pkgtools/url2pkg')
-rwxr-xr-x | pkgtools/url2pkg/files/url2pkg | 12 |
1 files changed, 10 insertions, 2 deletions
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 |