From owner-freebsd-questions@freebsd.org Fri Jul 17 19:21:45 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AC3129A2075 for ; Fri, 17 Jul 2015 19:21:45 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from be-well.ilk.org (be-well.ilk.org [23.30.133.173]) by mx1.freebsd.org (Postfix) with ESMTP id 89F9A1B34 for ; Fri, 17 Jul 2015 19:21:45 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from lowell-desk.lan (router.lan [172.30.250.2]) by be-well.ilk.org (Postfix) with ESMTP id A3DDE33C24; Fri, 17 Jul 2015 15:21:33 -0400 (EDT) Received: by lowell-desk.lan (Postfix, from userid 1147) id 1F2C53983C; Fri, 17 Jul 2015 15:21:31 -0400 (EDT) From: Lowell Gilbert To: mfv Cc: freebsd-questions@freebsd.org Subject: Re: Sync Ports to Packages References: <20150717145356.612a3a1e@gecko4> Date: Fri, 17 Jul 2015 15:21:30 -0400 In-Reply-To: <20150717145356.612a3a1e@gecko4> (mfv@bway.net's message of "Fri, 17 Jul 2015 14:53:56 -0400") Message-ID: <44mvyulhdx.fsf@lowell-desk.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jul 2015 19:21:45 -0000 mfv writes: > Am trying to write a script to keep my packages and ports in sync but > have not been able to find a local file in the package system that > contains the revision number of my last upgrade. Once that number is > obtained it is possible to sync the port tree. > > The following script extracts the build number from the appropriate > server but needs Internet access: > > https://gist.github.com/reedacartwright/8622973baf89b263a6d7 > > Is it possible to extract the same revision number from a local file? svnversion(1)