Codebase list core-async-clojure / lintian-fixes/main script / build / trunk_revision
lintian-fixes/main

Tree @lintian-fixes/main (Download .tar.gz)

trunk_revision @lintian-fixes/mainraw · history · blame

#!/usr/bin/env bash

# Returns the number of commits made since the v0.0 tag

set -e

REVISION=`git --no-replace-objects describe --match v0.0`

# Extract the version number from the string. Do this in two steps so
# it is a little easier to understand.
REVISION=${REVISION:5} # drop the first 5 characters
REVISION=${REVISION:0:${#REVISION}-9} # drop the last 9 characters

echo $REVISION