Show PKGNAMES before importing, this might prevent some imports done with
bogus names. ok tb@
This commit is contained in:
parent
5a2a9b0c5e
commit
c3d0163748
@ -1,6 +1,6 @@
|
||||
#!/bin/ksh
|
||||
#
|
||||
# $OpenBSD: portimport,v 1.8 2020/02/18 15:26:48 paco Exp $
|
||||
# $OpenBSD: portimport,v 1.9 2020/02/18 21:55:49 sthen Exp $
|
||||
# Copyright (c) 2013 Robert Peichaer
|
||||
#
|
||||
# Permission to use, copy, modify, and distribute this software for any
|
||||
@ -59,6 +59,9 @@ portsdir=${portsdir:-${PWD%"/$pkgpath"}}
|
||||
timestamp=$(date '+%Y%m%d')
|
||||
cvsroot=$user@cvs.openbsd.org:/cvs
|
||||
|
||||
echo -n "Package name is: "
|
||||
make show=PKGNAMES
|
||||
|
||||
echo -n "Import would go into: "
|
||||
cvs -n -d$cvsroot import ports/$pkgpath $user ${user}_$timestamp 2>/dev/null | \
|
||||
grep Makefile | head -1 | awk '{print $2}' | xargs dirname
|
||||
|
Loading…
x
Reference in New Issue
Block a user