From f46b5411057ebbfe85de203872552036442b59c7 Mon Sep 17 00:00:00 2001 From: William Ting Date: Thu, 1 Nov 2012 04:25:42 -0500 Subject: [PATCH] remove adding git version to autojump install --- Makefile | 2 +- bin/autojump | 2 +- install.sh | 3 --- tools/git-version.sh | 18 ------------------ 4 files changed, 2 insertions(+), 23 deletions(-) delete mode 100755 tools/git-version.sh diff --git a/Makefile b/Makefile index bd71ac9..8c58c61 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -VERSION = v21.0.3 +VERSION = v21.0.4 TAGNAME = release-$(VERSION) .PHONY: docs install uninstall tar test diff --git a/bin/autojump b/bin/autojump index 90f7c61..a6944af 100755 --- a/bin/autojump +++ b/bin/autojump @@ -34,7 +34,7 @@ import re import shutil from tempfile import NamedTemporaryFile -VERSION = 'release-v21.0.3' +VERSION = 'release-v21.0.4' MAX_KEYWEIGHT = 1000 MAX_STORED_PATHS = 1000 COMPLETION_SEPARATOR = '__' diff --git a/install.sh b/install.sh index b0fc384..5f83d4a 100755 --- a/install.sh +++ b/install.sh @@ -128,9 +128,6 @@ echo echo "Installing ${shell} version of autojump to ${prefix} ..." echo -# add git revision to autojump -./tools/git-version.sh - # INSTALL AUTOJUMP mkdir -p ${prefix}/share/autojump/ mkdir -p ${prefix}/bin/ diff --git a/tools/git-version.sh b/tools/git-version.sh deleted file mode 100755 index e73f422..0000000 --- a/tools/git-version.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env bash -# add git revision to autojump - -# Fail silently if there is no git directory, ie. if the user installed from a regular download -if [[ ! -d .git ]]; then - exit -fi - -if [ -z "$1" ]; then - gitrevision=`git describe` - if [[ $(git diff --shortstat 2> /dev/null | tail -n1) != "" ]]; then - gitrevision=$gitrevision"-dirty" - fi -else - gitrevision="$1" -fi - -sed -i "s/^VERSION = \".*\"$/VERSION = \"$gitrevision\"/" ./bin/autojump