Skip to content

Commit

Permalink
Use $PKGEDITOR or $EDITOR
Browse files Browse the repository at this point in the history
Requested by Martin Husemann <[email protected]>
  • Loading branch information
hubertf committed Apr 1, 2000
1 parent 30dc818 commit 173a714
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions pkgtools/url2pkg/files/url2pkg
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 173a714

Please sign in to comment.