<commit_before>#!/bin/bash

set -eu

GITVERSION=$(git describe --tags --dirty)

go build -ldflags="-X main.GitVersion=$GITVERSION" && ./gocryptfs -version<commit_msg>Make build.bash version bake-in compatible with Go 1.3 and 1.4<commit_after>#!/bin/bash

set -eu

GITVERSION=$(git describe --tags --dirty)

# go version go1.5.1 linux/amd64
V=$(go version | cut -d" " -f3 | cut -c3-5)

if [ $V == "1.3" -o $V == "1.4" ]
then
	go build -ldflags="-X main.GitVersion $GITVERSION"
else
	# Go 1.5 wants an "=" here 
	go build -ldflags="-X main.GitVersion=$GITVERSION"
fi

./gocryptfs -version
{'fraction_non_alphanumeric': 0.1757679180887372, 'fraction_numerical': 0.030716723549488054, 'mean_word_length': 3.480916030534351, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2033106', 'n_tokens_mistral': 244, 'n_tokens_neox': 228, 'n_words': 64}