From owner-freebsd-current Wed Jan 29 21: 0: 4 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2FE5237B401 for ; Wed, 29 Jan 2003 21:00:03 -0800 (PST) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB6D443F3F for ; Wed, 29 Jan 2003 21:00:02 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.12.6/8.12.6) with ESMTP id h0U4xvXv047197; Wed, 29 Jan 2003 20:59:57 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.12.6/8.12.6/Submit) id h0U4xvuo047196; Wed, 29 Jan 2003 20:59:57 -0800 (PST) Date: Wed, 29 Jan 2003 20:59:57 -0800 From: Steve Kargl To: Garance A Drosihn Cc: Sheldon Hearn , current@FreeBSD.ORG Subject: Re: Seat-belt for source upgrades from stable to current Message-ID: <20030130045957.GA47151@troutmask.apl.washington.edu> References: <20030129191822.GO78848@starjuice.net> <20030130040542.GA46905@troutmask.apl.washington.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Jan 29, 2003 at 11:21:39PM -0500, Garance A Drosihn wrote: > At 8:05 PM -0800 1/29/03, Steve Kargl wrote: > > >uname(1) works on both 4.7 and 5.0. This seems > >like a trivial problem to fix. > > If you use something fixed like uname, then what does one do once > they *DO* want to switch from one branch to another one? > Compare output from /usr/bin/uname -r to ${OBJDIR}/usr.bin/uname/uname -r. If the strings are the same, then install. If the strings are different or an error occurs either abort the install or wait for keyboard input to continue the installation. You don't need a special file to indicate what version of FreeBSD you have. uname -r tells you. -- Steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message