The Artima Developer Community
Sponsored Link

Python Buzz Forum
M2Crypto API Docu Daily Build

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Ng Pheng Siong

Posts: 410
Nickname: ngps
Registered: Apr, 2004

Ng Pheng Siong is just another guy with a website.
M2Crypto API Docu Daily Build Posted: Sep 26, 2004 6:24 AM
Reply to this message Reply

This post originated from an RSS feed registered with Python Buzz by Ng Pheng Siong.
Original Post: M2Crypto API Docu Daily Build
Feed Title: (render-blog Ng Pheng Siong)
Feed URL: http://sandbox.rulemaker.net/ngps/rdf10_xml
Feed Description: Just another this here thing blog.
Latest Python Buzz Posts
Latest Python Buzz Posts by Ng Pheng Siong
Latest Posts From (render-blog Ng Pheng Siong)

Advertisement

I've been meaning to write a program to generate M2Crypto API docu from source daily; I just don't have the impetus to improve the docu if I can't get the gratification of near-instant publication of same.

So, finally I whipped up a Common Lisp program to do so. A straightforward script which "main" routine looks like this:

(defun make-m2-doc ()
  (setup-tmpdir)
  (svn-co)
  (build)
  (epydoc))

Tested okay on my desktop. Copied the script into the appropriate jail on the server. Building requires Python 2.3 and SWIG: ok, copied the relevant directories over. Epydoc requires its installation (already copied with Python) and a script in /usr/local/bin - easy, too. The binary svn gave a bit of a surprise, though:

$ ldd `which svn`
/usr/local/bin/svn:
  libsvn_client-1.so.0 => /usr/local/lib/libsvn_client-1.so.0 (0x28082000)
  libsvn_wc-1.so.0 => /usr/local/lib/libsvn_wc-1.so.0 (0x2809c000)
  libsvn_ra-1.so.0 => /usr/local/lib/libsvn_ra-1.so.0 (0x280ba000)
  libsvn_diff-1.so.0 => /usr/local/lib/libsvn_diff-1.so.0 (0x280bd000)
  libsvn_ra_local-1.so.0 => /usr/local/lib/libsvn_ra_local-1.so.0 (0x280c4000)
  libsvn_repos-1.so.0 => /usr/local/lib/libsvn_repos-1.so.0 (0x280c8000)
  libsvn_fs-1.so.0 => /usr/local/lib/libsvn_fs-1.so.0 (0x280d9000)
  libsvn_ra_dav-1.so.0 => /usr/local/lib/libsvn_ra_dav-1.so.0 (0x280f5000)
  libsvn_ra_svn-1.so.0 => /usr/local/lib/libsvn_ra_svn-1.so.0 (0x28106000)
  libsvn_delta-1.so.0 => /usr/local/lib/libsvn_delta-1.so.0 (0x28112000)
  libsvn_subr-1.so.0 => /usr/local/lib/libsvn_subr-1.so.0 (0x28119000)
  libaprutil-0.so.9 => /usr/local/lib/libaprutil-0.so.9 (0x28137000)
  libdb4.so.0 => /usr/local/lib/libdb4.so.0 (0x2814a000)
  libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x281d0000)
  libapr-0.so.9 => /usr/local/lib/libapr-0.so.9 (0x282a8000)
  libm.so.2 => /usr/lib/libm.so.2 (0x282c3000)
  libcrypt.so.2 => /usr/lib/libcrypt.so.2 (0x282de000)
  libneon.so.24 => /usr/local/lib/libneon.so.24 (0x282f7000)
  libssl.so.3 => /usr/lib/libssl.so.3 (0x28311000)
  libcrypto.so.3 => /usr/lib/libcrypto.so.3 (0x28340000)
  libz.so.2 => /usr/lib/libz.so.2 (0x28437000)
  libexpat.so.5 => /usr/local/lib/libexpat.so.5 (0x28444000)
  libc.so.4 => /usr/lib/libc.so.4 (0x28461000)
$

I'm not about to install all that gob into the jail. Ok, let's build a static binary then:

$ (configure --enable-all-static; make clean; make)

Better:

# ldd svn
ldd: svn: not a dynamic executable
# strip svn
# ls -l svn
-rwxr-xr-x  1 root  wheel  2923484 Sep 26 14:53 svn

Copied the binary over, tested the script in various settings -- yup, it worked! Fixed up crontab, set entry to run a minute in the future, twiddled thumbs, checked outcome, doh! missed out setting PATH, fixed, again... yes!

Generated by Epydoc 2.1 on Sun Sep 26 16:52:45 2004

The URL is http://sandbox.rulemaker.net/ngps/m2/api-daily.

Read: M2Crypto API Docu Daily Build

Topic: Olivia Newton Coleridge Previous Topic   Next Topic Topic: Prolog In Smalltalk

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use