#!/bin/bash # we do the snapshots the following way: # the pkgver is a date, up2date notifies you when a new change is available # in this case when you run this script, it'll create a snapshot for you, so # the date will not be the current date but the date of the latest # modification. see the svn log for info about what mutt-devel version do you # need for a given snapshot url="http://bereshit.synflood.at/svn/mutt-patches/trunk" ver=`svn log --limit 1 $url|sed -n 's/[^|]*|[^|]*| \([^ ]*\) .*/\1/;s/-//g;2p'` svn co $url mv trunk mutt-patches-$ver find . -name .svn -exec rm -rf {} \; tar cvzf mutt-patches-$ver.tar.gz mutt-patches-$ver rm -rf mutt-patches-$ver