Harvesting GARNOME, the Legal Way



<vuntz> can you send a small mail about this to release-team?
<guenther> huh, about what?
<vuntz> your small script
<vuntz> elijah will love it and it'll be a reminder for me :-)


OK, so here goes. This was just a quick *hack* to help Vincent cross-
checking [1] versions tonight. It is by no means sophisticated, and sure
can be optimized. It isn't even a script, but a one line command. ;)

for d in desktop platform admin bindings; do
  grep ^GARVERSION $d/*/Makefile |
  sed -r -e 's,/Makefile.*= ?,:,' -e 's,/,:,' -e 's,$,:,'; done


Notes: This version includes the trailing command delimiter, though
always empty. Could be removed. Especially, since for better 'diff'
results, one should run both (the output of the script as well as your
versions file) through 'sort'. See the evolution* stuff for example.

Also, you would need to remove your comments (for the bindings).
Bindings are not divided into per language dirs in GARNOME currently,
but that is planned to change. Perl bindings are missing, we know.
Mono still needs some issues to be resolved, before we properly can move
it. Currently all of it in the mono/ meta-garball in GARNOME.


At any rate: Have fun with this snippet, hope you like it. :)

...guenther


[1] against GARNOME CVS [2] gnome-2-16 branch

[2] for those of you who might need help to check out GARNOME CVS to
    cross check [1] [3] versions yourself... ;)
    http://www.gnome.org/projects/garnome/devel.html

[3] yay recursive notes

-- 
char *t="\10pse\0r\0dtu\0  ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]