Add -u option to portimport(1), allowing to specify your username in CVS.
BUGS section is gone now.
This commit is contained in:
parent
b673eff278
commit
7f00acb024
@ -1,6 +1,6 @@
|
||||
#!/bin/ksh
|
||||
#
|
||||
# $OpenBSD: portimport,v 1.1 2013/04/09 19:51:37 rpe Exp $
|
||||
# $OpenBSD: portimport,v 1.2 2013/04/11 15:18:00 zhuk Exp $
|
||||
# Copyright (c) 2013 Robert Peichaer
|
||||
#
|
||||
# Permission to use, copy, modify, and distribute this software for any
|
||||
@ -21,11 +21,20 @@
|
||||
|
||||
set -e
|
||||
|
||||
# XXX
|
||||
# XXX CHANGE if you login to cvs.openbsd.org with different user
|
||||
# XXX
|
||||
usage() {
|
||||
echo "usage: $(basename $0) [-u username]" >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
user=$(id -un)
|
||||
|
||||
while getopts "u:" OPT; do
|
||||
case $OPT in
|
||||
u) user="$OPTARG";;
|
||||
*) usage;;
|
||||
esac
|
||||
done
|
||||
|
||||
cvsroot=$user@cvs.openbsd.org:/cvs
|
||||
error=false
|
||||
fulldir=$(pwd)
|
||||
|
@ -1,4 +1,4 @@
|
||||
.\" $OpenBSD: portimport.1,v 1.1 2013/04/09 19:51:37 rpe Exp $
|
||||
.\" $OpenBSD: portimport.1,v 1.2 2013/04/11 15:18:00 zhuk Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2013 Robert Peichaer
|
||||
.\"
|
||||
@ -14,14 +14,15 @@
|
||||
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
.\"
|
||||
.Dd $Mdocdate: April 9 2013 $
|
||||
.Dd $Mdocdate: April 11 2013 $
|
||||
.Dt PORTIMPORT 1
|
||||
.Os
|
||||
.Sh NAME
|
||||
.Nm portimport
|
||||
.Nd import a new port to the ports cvs repository
|
||||
.Sh SYNOPSIS
|
||||
.Nm portimport
|
||||
.Nm
|
||||
.Op Fl u Ar username
|
||||
.Sh DESCRIPTION
|
||||
.Nm
|
||||
is used to import the directories and files of a new port to the
|
||||
@ -45,6 +46,15 @@ In the second step, the current ports directory is imported to the
|
||||
ports cvs repository.
|
||||
After the import, the new port is checked out in the respective directory
|
||||
of the local ports tree.
|
||||
.Pp
|
||||
The following options are available:
|
||||
.Bl -tag -width Ds
|
||||
.It Fl u Ar username
|
||||
Set the username used for
|
||||
.Xr ssh 1 ,
|
||||
and to compose vendor and release tags.
|
||||
Defaults to the local username.
|
||||
.El
|
||||
.Sh SEE ALSO
|
||||
.Xr cvs 1
|
||||
.Sh HISTORY
|
||||
@ -54,13 +64,3 @@ modified by Stuart Henderson and rewritten by Robert Peichaer.
|
||||
The
|
||||
.Ev CVSROOT
|
||||
environment variable is not used.
|
||||
.Sh BUGS
|
||||
The login name of the current user is used for the
|
||||
.Xr ssh 1
|
||||
connection to the
|
||||
.Ox
|
||||
cvs server, to compose the vendortag and the releasetag.
|
||||
The value of the
|
||||
.Va user
|
||||
variable has to be changed in the sourcecode if a different login name is
|
||||
used to connect to the cvs server.
|
||||
|
Loading…
x
Reference in New Issue
Block a user