
if [ -e $2 ]; then
    DIR=$1/i-common

    svn mkdir -q $DIR 2> /dev/null

    echo "<!-- AUTOGENERATED from $0 --><xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:lego='https://lego.yandex-team.ru' exclude-result-prefixes=' lego ' version='1.0'><xsl:template match='/' mode='lego:favicon-content'>//yandex.st/lego/_/`../../tools/generate-file-sha1 $2`.ico</xsl:template></xsl:stylesheet>" > $DIR/i-common.xsl

    svn add -q $DIR/i-common.xsl 2> /dev/null
fi

