ocracy.org

changeset 159:f770c6fb043c

Take the heads variant as parameter on the command line
author Emanuele Aina <em@nerd.ocracy.org>
date Fri Jan 15 11:29:48 2010 +0100 (6 months ago)
parents 6abbe0a5a76b
children c11c0f803587
files generate.py
line diff
     1.1 --- a/generate.py	Tue Dec 15 22:09:09 2009 +0000
     1.2 +++ b/generate.py	Fri Jan 15 11:29:48 2010 +0100
     1.3 @@ -4,6 +4,7 @@
     1.4  styles_dir = 'nerd.ocracy.org/styles'
     1.5  
     1.6  import os
     1.7 +import sys
     1.8  import re
     1.9  import glob
    1.10  import math
    1.11 @@ -16,6 +17,11 @@
    1.12      os.path.lexists = lambda path: os.path.exists(path) or os.path.islink(path)
    1.13  
    1.14  
    1.15 +def heads_dir():
    1.16 +    if len(sys.argv) > 1:
    1.17 +        return 'heads-' + sys.argv[1]
    1.18 +    return 'heads'
    1.19 +
    1.20  def read_map(map):
    1.21      m = {}
    1.22      fin = open(map)
    1.23 @@ -268,7 +274,7 @@
    1.24      pass
    1.25  
    1.26  for fn in ('bari', 'em', 'guido', 'doccd', 'fina', 'rambo', 'libe', 'pierlux', 'bari_cuoco'):
    1.27 -    svg2png('img/heads-xmas/%s_col.svg' % fn, 'nerd.ocracy.org/img/heads/%s.png' % fn, 90, 85)
    1.28 +    svg2png('img/' + heads_dir() + '/%s_col.svg' % fn, 'nerd.ocracy.org/img/heads/%s.png' % fn, 90, 85)
    1.29  
    1.30  os.chdir('planet-config')
    1.31  os.system('planet config.ini')

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.