techn.ocracy.org-planet

changeset 1:274f5b2869a4

Use hgwebdir.cgi to get the repo list
author Emanuele Aina <em@nerd.ocracy.org>
date Mon Mar 16 23:16:54 2009 +0100 (16 months ago)
parents c5aba51549f1
children 836f5dadd542
files config/update.sh
line diff
     1.1 --- a/config/update.sh	Mon Jun 26 14:25:00 2006 +0200
     1.2 +++ b/config/update.sh	Mon Mar 16 23:16:54 2009 +0100
     1.3 @@ -5,16 +5,12 @@
     1.4      exit 1
     1.5  fi
     1.6  
     1.7 -if [ "x$1" = "x" ]; then
     1.8 -    echo "Syntax:"
     1.9 -    echo "  $0 HGWEB-FILE"
    1.10 -    exit 2
    1.11 -fi
    1.12 -
    1.13  cp config.ini.in config.ini
    1.14  
    1.15 -for repo in `cat $1 | grep = | sed -e 's/\s*=.*//g'`; do
    1.16 -    echo "[http://techn.ocracy.org/$repo?cl=tip;style=rss]" >> config.ini
    1.17 -    echo "name = $repo" >> config.ini
    1.18 +export QUERY_STRING='style=raw'
    1.19 +for link in `(cd /srv/hg && ./hgwebdir.cgi |grep '^/') 2> /dev/null`; do
    1.20 +    echo "[http://techn.ocracy.org${link}atom-log]" >> config.ini
    1.21 +    name=`echo "$link"|sed 's/\/\(.*\)\//\1/'`
    1.22 +    echo "name = $name" >> config.ini
    1.23      echo >> config.ini
    1.24  done

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.