#!/bin/bash hangar[path]=$HOME/.fgfs/flightgear-fgaddon/Aircraft hangar[name]=FGADDON hangar[source]=sourceforge hangar[type]=svn hangar[url]=https://svn.code.sourceforge.net/p/flightgear/fgaddon/trunk/Aircraft hangar[active]=1 function getfromrepo () { svn cat ${hangar[url]}/$1 } function on_exit () { rm -f $aircrafts $aircraft } function parse_repo_history () { function getaircraftinfo () { # $1 = aircraft svn list --xml --depth files ${hangar[url]}/$1 > $aircraft unset xmlgetnext_empty_tag while xmlgetnext; do if test "$TAG" = 'name' && test "${VALUE/%-set.xml}" != "$VALUE"; then add_setxml_for_aircraft $1 ${VALUE/%-set.xml} fi done < $aircraft } aircrafts=$temppath/Aircraft-$tempid aircraft=$temppath/aircraft-$tempid if test $latest_revision -eq 1; then echo getting repository list if ! svn list --xml --depth immediates ${hangar[url]} > $aircrafts; then echo "error while retrieving list" exit fi total=$(grep -c ' $aircrafts; then echo "error while retrieving history" exit fi total=$(grep -c '