File update of Package fate

#!/bin/bash

set -e

# Trash the old tarball
rm -f fate-kde4-*.tar.bz2

./mkdist \
		--destdir . \
		--repotype git \
		--sign none \
		git@git.suse.de:fate/fate-kde4.git

set -- fate-kde4-*.tar.bz2
if [ $# -ne 1 -o $1 = "fate-kde4-*.tar.bz2" ]; then
	echo "Too many tarballs" >&2
	ls fate-kde4-*.tar.bz2 >&2
	exit 1
fi

tarball=$1; shift
echo "Using tarball $tarball"

snapshot=`expr $tarball : "fate-kde4-\(.*\)\.tar.bz2"`
echo "Snapshot $snapshot"

sed -i "s:^%define snapshot .*:%define snapshot $snapshot:" fate.spec

osc ar
osc st

echo "Please edit the changelog and commit"