ocracy.org

changeset 149:7c7a1d76627e

Port generate.py from the old, unmaintained svg2png to rsvg
author Emanuele Aina <em@nerd.ocracy.org>
date Fri Dec 26 22:37:25 2008 +0100 (19 months ago)
parents 78fc2f3f6900
children 6ca13d6158f8
files generate.py
line diff
     1.1 --- a/generate.py	Fri Dec 26 22:36:47 2008 +0100
     1.2 +++ b/generate.py	Fri Dec 26 22:37:25 2008 +0100
     1.3 @@ -226,7 +226,8 @@
     1.4      os.symlink(src, dest)
     1.5  
     1.6  def svg2png(src, dest, width, height):
     1.7 -    os.system('svg2png -w %d -h %d %s %s' % (width, height, src, dest))
     1.8 +    if os.path.isfile(src):
     1.9 +        os.system('rsvg -w %d -h %d %s %s' % (width, height, src, dest))
    1.10  
    1.11  
    1.12  parse_css('styles/main.css', 'styles/main.map')

To download these repositories, get Mercurial and then type something like:

hg clone http://techn.ocracy.org/repository-name/

You can also click the "zip" or "gz" links to get an archive of the latest revision without installing anything.

The change logs of the repositories are aggregated at techn.ocracy.org/planet.

We have also some darcs repositories at techn.ocracy.org/darcs.