Codebase list core-async-clojure / 7fdd091 script / build / trunk_revision
7fdd091

Tree @7fdd091 (Download .tar.gz)

trunk_revision @7fdd091raw · 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