summaryrefslogtreecommitdiff
path: root/pkgtools/url2pkg
diff options
context:
space:
mode:
authorhubertf <hubertf>2000-04-01 20:55:24 +0000
committerhubertf <hubertf>2000-04-01 20:55:24 +0000
commit1ebfe37254474e834cd3074280a98a6e5577cfc5 (patch)
tree7ed954ff55ed7031ea3414119d2133f3d2cc25f9 /pkgtools/url2pkg
parentbb5c12e83fbfba0d7d41627f202637254dfb59ed (diff)
downloadpkgsrc-1ebfe37254474e834cd3074280a98a6e5577cfc5.tar.gz
Use $PKGEDITOR or $EDITOR
Requested by Martin Husemann <martin@rumolt.teuto.de>
Diffstat (limited to 'pkgtools/url2pkg')
-rwxr-xr-xpkgtools/url2pkg/files/url2pkg12
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