forget-cancellare-vecchi-toot/tools/write-version.sh

6 lines
191 B
Bash
Raw Normal View History

2017-08-07 14:51:33 +02:00
#!/bin/bash
cd $(dirname $0)/..
2017-08-29 14:46:32 +02:00
git describe --tags --long --always | python -c 'from jinja2 import Template; print(Template("version = \"{{input}}\"").render(input=input()))' > version.py
2017-08-07 14:51:33 +02:00