Date: Sun, 10 Nov 2013 21:41:38 -0800 (PST) From: Sreeram BS <sreeramabs@yahoo.com> To: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: Source code version Message-ID: <1384148498.43725.YahooMailNeo@web125401.mail.ne1.yahoo.com>
next in thread | raw e-mail | index | archive | help
Hi,=0A=A0 =A0 =A0I have 2 questions related to source code of standard prog= rams(commands) of FreeBSD.=A0=0A=0A(1) Assuming I would like to get the sou= rce code of program 'tail', then I visit this URL=A0http://svnweb.freebsd.o= rg/base/head/usr.bin/=A0and enter the =A0'tail' sub-directory. Here I see t= he tail.c file, but there is a version number(revision-number) next to it a= nd that is the actual link for the program. Now, this version number is dif= ferent for different utilities. For example, the latest version of tail.c i= s 251565, whereas the latest version of another program, 'basename' is 2163= 70.=0A=A0 =A0 My question is, is there a common path which can take us to t= he latest version of these programs? For example:=A0http://svnweb.freebsd.o= rg/base/head/usr.bin/tail/tail.c?revision=3DLATEST ?=0A=0A(2) Is there a wa= y, where I can get the revision number of source code of a program shipped = in a particular release. For example, 'tail' is present in FreeBSD9 and Fre= eBSD8 also ('tail' is present in all FreeBSD releases, and so picking that = as an example). The source code for 'tail' in FreeBSD8 could be different f= rom the one in FreeBSD9. Is there a way to obtain the revision number of ta= il.c program that was shipped in FreeBSD8 (or FreeBSD9).=0A=0APlease sugges= t and inform.=0A=0ARegards,=0ASreeram From owner-freebsd-questions@FreeBSD.ORG Mon Nov 11 07:08:59 2013 Return-Path: <owner-freebsd-questions@FreeBSD.ORG> Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 17A60510 for <freebsd-questions@freebsd.org>; Mon, 11 Nov 2013 07:08:59 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 94B992ECF for <freebsd-questions@freebsd.org>; Mon, 11 Nov 2013 07:08:58 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.2.117.99]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.7/8.14.7) with ESMTP id rAB78qTC013264 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for <freebsd-questions@freebsd.org>; Mon, 11 Nov 2013 07:08:53 GMT (envelope-from m.seaman@infracaninophile.co.uk) DKIM-Filter: OpenDKIM Filter v2.8.3 smtp.infracaninophile.co.uk rAB78qTC013264 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1384153733; bh=WZ9a4efL7wed2zbg6KpgRE9LxRwDxuitKdddWIWmRZU=; h=Date:From:To:Subject:References:In-Reply-To; z=Date:=20Mon,=2011=20Nov=202013=2007:08:52=20+0000|From:=20Matthew =20Seaman=20<m.seaman@infracaninophile.co.uk>|To:=20freebsd-questi ons@freebsd.org|Subject:=20Re:=20Source=20code=20version|Reference s:=20<1384148498.43725.YahooMailNeo@web125401.mail.ne1.yahoo.com>| In-Reply-To:=20<1384148498.43725.YahooMailNeo@web125401.mail.ne1.y ahoo.com>; b=D4tcJBXA7yxTfoJP8lcwtk/2jISXsEvbumoaKxKbzrg4JG48KqjZ85szE7rL/2Tei zFz4721QKULB6zVKGOgR3/9VbZdzzbqiK3g7yEa06aqfMFmlApLf3Fgx8uyHWVqRee X72ESushevd+WVZ9UTH3Ab/Bvxb9U9hQITN+n7bs= Message-ID: <52808284.8070705@infracaninophile.co.uk> Date: Mon, 11 Nov 2013 07:08:52 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: Source code version References: <1384148498.43725.YahooMailNeo@web125401.mail.ne1.yahoo.com> In-Reply-To: <1384148498.43725.YahooMailNeo@web125401.mail.ne1.yahoo.com> X-Enigmail-Version: 1.6 OpenPGP: id=E7F39EBF Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="WuoU3fIn4GE39bDqXCGVNfn2Mbt5BsbUD" X-Virus-Scanned: clamav-milter 0.97.8 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions <freebsd-questions.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-questions>, <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions> List-Post: <mailto:freebsd-questions@freebsd.org> List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, <mailto:freebsd-questions-request@freebsd.org?subject=subscribe> X-List-Received-Date: Mon, 11 Nov 2013 07:08:59 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --WuoU3fIn4GE39bDqXCGVNfn2Mbt5BsbUD Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 11/11/2013 05:41, Sreeram BS wrote: > I have 2 questions related to source code of standard > programs(commands) of FreeBSD. >=20 > (1) Assuming I would like to get the source code of program 'tail', > then I visit this URL http://svnweb.freebsd.org/base/head/usr.bin/ and > enter the 'tail' sub-directory. Here I see the tail.c file, but there > is a version number(revision-number) next to it and that is the > actual link for the program. Now, this version number is different > for different utilities. For example, the latest version of tail.c is > 251565, whereas the latest version of another program, 'basename' is > 216370. > My question is, is there a common path which can take us to the > latest version of these programs? For example: > http://svnweb.freebsd.org/base/head/usr.bin/tail/tail.c?revision=3DLATE= ST ? >=20 > (2) Is there a way, where I can get the revision number of source > code of a program shipped in a particular release. For example, > 'tail' is present in FreeBSD9 and FreeBSD8 also ('tail' is present in > all FreeBSD releases, and so picking that as an example). The source > code for 'tail' in FreeBSD8 could be different from the one in > FreeBSD9. Is there a way to obtain the revision number of tail.c > program that was shipped in FreeBSD8 (or FreeBSD9). Conceptual misunderstanding. Individual programs in the FreeBSD base system do not have separate version numbers (except for certain vendor imports). Instead, the whole tree has an overall revision number[*]. The revision listed in any file is the version of the whole tree at the time that file was last changed. So to get the latest version of any file, just check out the latest version of the source tree. Cheers, Matthew [*] This is a consequence of the shift to svn(1). There used to be individual per-file version numbers under CVS, but that's something most modern VCSes have moved away from. --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey JID: matthew@infracaninophile.co.uk --WuoU3fIn4GE39bDqXCGVNfn2Mbt5BsbUD Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.20 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQJ8BAEBCgBmBQJSgIKEXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkAT3XYQAJtvfUzZ++3YilEVoUtT17mU PxN3YVS3GoM9Db7hW9wPbbtFPbS3NkAsUGNtOVpaeOE1eARF04qomwPdQvoQjzGJ YgFYuREph2SYRVgZW5ajY95TX5nAYGqrACXxyBcHrEam62fQz1sYeb9qoUq3Il2C PbEBQqnV29rvzLjtQdapZ6R8/xVQdXs/H9udNgpmUMVkXB5MKXxFekwwKQu7bjVE qniUce5B274b0oJIbkO43gKqc7y+Raf5mbl2KUM2iBfthzuRJk95GKxKKgrTia7q 0wwNJn3FBvsOeiq4yErKZjPxEVu6DFP4qUOFi8ilHY8oXfFLkG9fXhsL2aRWaLE9 sIwj+gxWkcJiuE8m1tToQc9gKkX8kc1+XtMIhgkctqZr/MhdP67FiPq4ziBacYKx Auy4bsNOv2bUe6kYfKEYHuiXdQyC6Gz6lUQff0tfVlzLYtaqDvz+iE8GIPFa0nr2 syEdhkMCoS4Ow7kgpANeElWn2eOEGl2hGRkDE0UZJnO+/oz72L6o3affmeQTh9jc bWf02iRDgeZuNuG771fllPxuOprE1icIY4xfs6mlrOarPz8LzyEhgYsAVfDi2yDK xz/43NIVKFDsnE2EIpQ3mjqFMVbMLp+3l0GIfaSQ03Ol0UeSUc4m311aujaBfnKo 29XNI1rqQp5WTWps/6F1 =rc4W -----END PGP SIGNATURE----- --WuoU3fIn4GE39bDqXCGVNfn2Mbt5BsbUD--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1384148498.43725.YahooMailNeo>