#!/bin/sh
#
# (c) Eduard Bloch <blade@debian.org>, 2003
# generic maintainer script for module-assistant controled packages
# to be sourced or copied as example code

# autodetecting values. They may be overriden by the caller.

MA_DIR=${MA_DIR:-/usr/share/modass}

. $MA_DIR/packages/generic.sh

update () {
   LANG=C svn log -r HEAD svn://svn.linux1394.org/ieee1394/trunk | perl -pe 's/^r(\d+).*lines$/$1/ || undef $_'  > $MA_VARDIR/$sourcepkg.avail_version
   ( LANG=C svn info "$MODULE_LOC/linux1394-svn" || echo "Revision: 1") | grep Revision: | cut -f2 -d ' ' > $MA_VARDIR/$sourcepkg.cur_version
   #ls linux1394-svn-*-*.tgz | cut -f3 -d- | sort -n | tail -n1 > $MA_VARDIR/$sourcepkg.cur_version
}


$1 "$@"
