<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.32.2">
</HEAD>
<BODY>
On Fri, 2011-10-07 at 13:28 -0700, Jeremy Huddleston wrote:<BR>
<BLOCKQUOTE TYPE=CITE>
<TT><FONT COLOR="#737373">>> I would prefer passing in paths to my local git checkouts over section/module. </FONT></TT><BR>
</BLOCKQUOTE>
I think I understand better now. The paths are relative paths to where the script is invoked.<BR>
The script can cd down to the last subdir and interrogate the git module for what it needs to know.<BR>
Hopefully it can find the section from there. This is what Alan was trying to do with the url and sed.<BR>
That would be fairly flexible and easy. It could even be an absolute path.<BR>
<BR>
The usage statement could be:<BR>
<BR>
Usage: $basename [options] path...<BR>
<BR>
Where "path" is a relative or absolute path to a git module.<BR>
<BR>
Options:<BR>
[...]<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
<TT><FONT COLOR="#737373">>> You should still be able to do the same -<version> foo by checking if the argument </FONT></TT><BR>
<TT><FONT COLOR="#737373">>> is a dir, if not, chop off the -* and check again.</FONT></TT><BR>
<TT><FONT COLOR="#737373">> </FONT></TT><BR>
<TT><FONT COLOR="#737373">> Sorry I don't get it. Can you give me an example?</FONT></TT><BR>
<BR>
<TT><FONT COLOR="#3c3c3c">$ git clone ssh://git.freedesktop.org/git/xorg/app/xedit</FONT></TT><BR>
<TT><FONT COLOR="#3c3c3c">$ git clone ssh://git.freedesktop.org/git/xorg/lib/libX11</FONT></TT><BR>
<BR>
<TT><FONT COLOR="#3c3c3c">do some stuff in both</FONT></TT><BR>
<BR>
<TT><FONT COLOR="#3c3c3c">publish.sh libX11 xedit</FONT></TT><BR>
<BR>
<TT><FONT COLOR="#3c3c3c">or</FONT></TT><BR>
<BR>
<TT><FONT COLOR="#3c3c3c">publish.sh libX11-1.10.0 libX11-1.9.4 libX11-1.8.8 xedit</FONT></TT><BR>
<BR>
<TT><FONT COLOR="#737373">> An entry such as lib/private_libX11 will work. I just need "lib" to get</FONT></TT><BR>
<TT><FONT COLOR="#737373">> the section and there should be</FONT></TT><BR>
<TT><FONT COLOR="#737373">> either no subdir or only one subdir. I am basically following the module</FONT></TT><BR>
<TT><FONT COLOR="#737373">> url:</FONT></TT><BR>
<TT><FONT COLOR="#737373">> </FONT></TT><BR>
<TT><FONT COLOR="#737373">> git://anongit.freedesktop.org/xorg/ ==> lib/libX11</FONT></TT><BR>
<TT><FONT COLOR="#737373">> or git://anongit.freedesktop.org/xorg/ ==> xserver</FONT></TT><BR>
<TT><FONT COLOR="#737373">> </FONT></TT><BR>
<TT><FONT COLOR="#737373">> What would be the structure of your "local git checkouts"?</FONT></TT><BR>
<BR>
<TT><FONT COLOR="#3c3c3c">As above. I just dump them all into one directory. I rename font/util to font-util and util/macros to util-macros to avoid confusion. I also have multiple xserver-*/ dirs at common checkouts to avoid rebuilding when going between versions.</FONT></TT>
</BLOCKQUOTE>
</BODY>
</HTML>