From owner-svn-src-all@freebsd.org Tue Nov 20 23:27:16 2018 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 86EA01141F54; Tue, 20 Nov 2018 23:27:16 +0000 (UTC) (envelope-from bwidawsk@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2854C89E4D; Tue, 20 Nov 2018 23:27:16 +0000 (UTC) (envelope-from bwidawsk@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0920A1824A; Tue, 20 Nov 2018 23:27:16 +0000 (UTC) (envelope-from bwidawsk@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id wAKNRFmS003013; Tue, 20 Nov 2018 23:27:15 GMT (envelope-from bwidawsk@FreeBSD.org) Received: (from bwidawsk@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id wAKNRFKr003012; Tue, 20 Nov 2018 23:27:15 GMT (envelope-from bwidawsk@FreeBSD.org) Message-Id: <201811202327.wAKNRFKr003012@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bwidawsk set sender to bwidawsk@FreeBSD.org using -f From: Ben Widawsky Date: Tue, 20 Nov 2018 23:27:15 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r340712 - head/tools/tools/git X-SVN-Group: head X-SVN-Commit-Author: bwidawsk X-SVN-Commit-Paths: head/tools/tools/git X-SVN-Commit-Revision: 340712 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 2854C89E4D X-Spamd-Result: default: False [0.03 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_SHORT(-0.09)[-0.089,0]; NEURAL_HAM_LONG(-0.00)[-0.003,0]; NEURAL_SPAM_MEDIUM(0.13)[0.126,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Nov 2018 23:27:16 -0000 Author: bwidawsk Date: Tue Nov 20 23:27:15 2018 New Revision: 340712 URL: https://svnweb.freebsd.org/changeset/base/340712 Log: git-svn-init: Add docs to the choice of repos Modified: head/tools/tools/git/git-svn-init Modified: head/tools/tools/git/git-svn-init ============================================================================== --- head/tools/tools/git/git-svn-init Tue Nov 20 23:07:45 2018 (r340711) +++ head/tools/tools/git/git-svn-init Tue Nov 20 23:27:15 2018 (r340712) @@ -35,6 +35,10 @@ GIT_IN_PATH=$(which git) GIT=${GIT-${GIT_IN_PATH}} +GIT_DOCS_REPO=${GIT_DOCS_REPO-git://github.com/freebsd/freebsd-doc.git} +GIT_SVN_DOCS_ROOT_URI=${GIT_SVN_DOCS_ROOT_URI-svn.freebsd.org/doc} +GIT_SVN_DOCS_URI=${GIV_SVN_DOCS_URI-repo.freebsd.org/doc} + GIT_PORTS_REPO=${GIT_PORTS_REPO-git://github.com/freebsd/freebsd-ports.git} GIT_SVN_PORTS_ROOT_URI=${GIT_SVN_PORTS_ROOT_URI-svn.freebsd.org/ports} GIT_SVN_PORTS_URI=${GIT_SVN_PORTS_URI-repo.freebsd.org/ports} @@ -43,6 +47,7 @@ GIT_SRC_REPO=${GIT_SRC_REPO-git://github.com/freebsd/f GIT_SVN_SRC_ROOT_URI=${GIT_SVN_SRC_ROOT_URI-svn.freebsd.org/base} GIT_SVN_SRC_URI=${GIT_SVN_SRC_URI-repo.freebsd.org/base} +GIT_SVN_DOCS_PUSH_URI=$GIT_SVN_DOCS_URI GIT_SVN_PORTS_PUSH_URI=$GIT_SVN_PORTS_URI GIT_SVN_SRC_PUSH_URI=$GIT_SVN_SRC_URI @@ -58,6 +63,7 @@ both ports and src under freebsd in the current workin -n Dry run -p Exclude ports -s Exclude src +-d Exclude docs EOF } @@ -138,7 +144,11 @@ doit() local svn_root_uri=$GIT_SVN_SRC_ROOT_URI local svn_uri=$GIT_SVN_SRC_URI local svn_push_uri=$GIT_SVN_SRC_PUSH_URI - else + elif [ "$3" = "docs" ] ; then + local svn_root_uri=$GIT_SVN_DOCS_ROOT_URI + local svn_uri=$GIT_SVN_DOCS_URI + local svn_push_uri=$GIT_SVN_DOCS_PUSH_URI + elif [ "$3" = "ports" ] ; then local svn_root_uri=$GIT_SVN_PORTS_ROOT_URI local svn_uri=$GIT_SVN_PORTS_URI local svn_push_uri=$GIT_SVN_PORTS_PUSH_URI @@ -160,7 +170,8 @@ doit() ports=1 source=1 -while getopts "hb:nr:sp" opt; do +docs=1 +while getopts "hb:nr:sdp" opt; do case "$opt" in b) base_path="$OPTARG" @@ -174,6 +185,9 @@ while getopts "hb:nr:sp" opt; do s) source=0 ;; + d) + docs=0 + ;; h|*) usage exit 0 @@ -190,4 +204,8 @@ fi if [ "$ports" -eq 1 ]; then doit ${GIT_PORTS_REPO} ${base_path:-freebsd} "ports" +fi + +if [ "$docs" -eq 1 ]; then + doit ${GIT_DOCS_REPO} ${base_path:-freebsd} "docs" fi