[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] build/win32/make_dist.sh supports the Ruby bindings

From: Joe Swatosh <joe.swatosh_at_gmail.com>
Date: 2007-03-17 17:42:50 CET

Hi,

I'm probably naive but I would have expected something more like

On 3/16/07, Daniel Rall <dlr@collab.net> wrote:
> Looks good to me. Someone on Windows want to test this out?
>
> On Fri, 16 Mar 2007, Kouhei Sutou wrote:
>

> > ===================================================================
> > --- build/win32/make_dist.py (revision 23865)
> > +++ build/win32/make_dist.py (working copy)
> > @@ -260,6 +260,21 @@
> > '%(bindsrc)s/java/javahl/classes'),
> > ),
> >
> > + 'ruby': None,
> > + 'ruby/lib': None,
> > + 'ruby/lib/svn': FileGlob('%(bindsrc)s/swig/ruby/svn/*.rb'),

These three lines deleted:
> > + 'ruby/ext': None,
> > + 'ruby/ext/svn': None,
> > + 'ruby/ext/svn/ext':

And the ext directory living right under svn:
                  'ruby/lib/svn/ext':
Plus the .rb files to dink the windows path for thr process and
require the corresponding dll directly.

> > + (FileGlob('%(binddir)s/swig/ruby/*.dll'),
> > + FileGlob('%(binddir)s/swig/ruby/*.pdb'),
> > + FileGlob('%(binddir)s/swig/ruby/libsvn_swig_ruby/*.dll'),
> > + FileGlob('%(binddir)s/swig/ruby/libsvn_swig_ruby/*.pdb'),
> > + FileGlob('%(blddir)s/libsvn_*/*.dll'),
> > + File('%(@apr)s/%(aprrel)s/libapr.dll'),
> > + File('%(@apr-iconv)s/%(aprrel)s/libapriconv.dll'),
> > + File('%(@apr-util)s/%(aprrel)s/libaprutil.dll')),
> > +
> > 'share': None,
> > 'share/locale': InstallMoFiles('%(srcdir)s/%(svnrel)s/mo'),
> > }
> > @@ -399,6 +414,8 @@
> > _make_zip('_pdb', ('',), '-i "*.pdb"')
> > _make_zip('_pl', ('/README.txt', '/perl'), xpdb)
> > _make_zip('_py', ('/README.txt', '/python'), xpdb)
> > + _make_zip('_rb', ('/README.txt', '/ruby', '/licenses', '/share/locale'),
> > + xpdb)
> >
> > except:
> > traceback.print_exc(None, _stderr)
>
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> > For additional commands, e-mail: dev-help@subversion.tigris.org
>
>

As I said, I'm probably missing something, but if ext is a subdir of
ruby/svn and it contains the path setting .rb files forwarding to the
.dll files, then as long as the top ruby directory is on the uses
loadpath (or specified with -I) wouldn't everything "just work" :-)

--
Joe
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Mar 17 17:43:06 2007

This is an archived mail posted to the Subversion Dev mailing list.