blob: 5fd6274defaeac0aaf77908f299bb39233fe3106 (
plain) (
blame)
1
2
3
4
5
6
7
|
#! /bin/bash
gitstamp=$(git log -1 --format=%cI)
timestamp=$(date -d "${gitstamp}" -u +%Y%m%d%H%M%S)
hash=$(git rev-parse HEAD | head -c 12)
echo "v0.0.0-${timestamp}-${hash}"
|