view upreckon/publish.sh @ 232:f94f9724c543

Switched from str to bytes for external validator output
author Oleg Oshmyan <chortos@inbox.lv>
date Fri, 29 Jun 2012 03:32:49 +0300
parents d5b6708c1955
children
line wrap: on
line source

#! /bin/sh

VERSION=`hg identify | awk '{ print $1 }'`
if [ -z "$VERSION" ]
then
	echo The current Mercurial changeset could not be determined. >&2
	exit 1
fi

sed 's/$$REV$\$/hg '"$VERSION/" upreckon-vcs >upreckon
chmod +x upreckon