Re: sys/conf/newvers.sh vs. subversion-1.7

看板FB_current作者時間14年前 (2011/10/23 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串17/33 (看更多)
Olivier Smedts <olivier@gid0.org> writes: >> >> $(svn info | awk '/^Revision:/ {print $2}') >> >> is what I use in my installkernel wrapper script. Granted, I didn't know >> about svnversion some time later, but it appears that svnversion broke s= ome >> things by consolidating the .svn directories as Chris shows above with t= he >> 'exported' line. > > Won't work for localized builds : > $ echo $LANG > fr_FR.ISO8859-15 > $ pwd > /usr/src > $ $(svn info | awk '/^Revision:/ {print $2}') > $ svn info While you can try to set LC_MESSAGES to `C' locale subversion also supports XML output $ echo $(svn info --xml | awk -F\" '/revision/ && ++i > 1 { print $2 }') 226629 Unlike `svnversion' it doesn't show whether the checked out sources are `M' (modified) or not. Not that I found it useful compared to `svn st -q' though. > Chemin=C2=A0: . > Chemin racine de la copie de travail : /usr/src > URL=C2=A0: http://svn.freebsd.org/base/stable/9 > Racine du d=C3=A9p=C3=B4t=C2=A0: http://svn.freebsd.org/base > UUID du d=C3=A9p=C3=B4t=C2=A0: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f > R=C3=A9vision=C2=A0: 226629 > [...] _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1EemJZbT (FB_current)
討論串 (同標題文章)
文章代碼(AID): #1EemJZbT (FB_current)