Date: Sat, 12 May 2018 19:41:31 -0700 From: Eitan Adler <lists@eitanadler.com> To: FreeBSD Hackers <freebsd-hackers@freebsd.org> Subject: including a checksum of the diff in uname Message-ID: <CAF6rxgmL559nLMT8WeEQhscHjVgO8O0Nr-sA7Jf5pvtUKk7T_Q@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi all, I often have several variants of the same revision that I'm testing or working on at any given time. What do you y'all think of something like this: Index: sys/conf/newvers.sh =================================================================== --- sys/conf/newvers.sh (revision 333575) +++ sys/conf/newvers.sh (working copy) @@ -203,6 +203,8 @@ if [ -n "$svnversion" ] ; then [0-9]*[MSP]|*:*) svn=" r${svn}" modified=true + ck="$(svn diff | cksum | cut -w -f 1)" + svn="$svn-$ck" ;; [0-9]*) svn=" r${svn}" to help differentiate. You end up with a version that looks like: r333575M-4294967295? -- Eitan Adler
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAF6rxgmL559nLMT8WeEQhscHjVgO8O0Nr-sA7Jf5pvtUKk7T_Q>