#!/bin/bash
#
# Upstream does not maintain release tags. All releases do however have a 
# repeating comment. This script translates it to a release tag.
#
# The unfortunate situation is that the upstream tar does not have exactly all
# files from the repository. The release tar file is generated by etc/make_tar 
# and there are minor differences.
#

git co master

TAG_AND_COMMIT=$(git log -1 --oneline --grep 'Release 1\.1\...$' | sed "s#\(.\+\) Release \(.\+\)#v\2 \1#")

git tag $TAG_AND_COMMIT

git co debian/master

