aboutsummaryrefslogtreecommitdiffstats
path: root/set_version.sh
blob: 1169c1578d3650eeba12de0908c1853bbbd7d65b (plain)
1
2
3
4
5
#!/bin/bash

echo "exports.branch=\"$(git branch | grep \* | cut -d ' ' -f2)\";" > version.js
echo "exports.commit=\"$(git describe --long --always)\";" >> version.js
echo "exports.commit_datetime=\"$(git show -s --format=%ci)\";" >> version.js