Source

agatsuma / getversion.hg

Full commit
1
2
3
4
5
6
7
8
9
#!/bin/sh

TRG=agatsuma/version.py
echo "commits_count = `hg id -n|cut -d + -f 1`" > ${TRG}
echo "branch_id = '`hg branch`'" >> ${TRG}
echo "commit_id = '`hg id|cut -d + -f 1`'" >> ${TRG}

echo "Extracted from HG repo:"
cat $TRG