mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
remove adding git version to autojump install
This commit is contained in:
parent
ac1bfeb784
commit
f46b541105
2
Makefile
2
Makefile
@ -1,4 +1,4 @@
|
|||||||
VERSION = v21.0.3
|
VERSION = v21.0.4
|
||||||
TAGNAME = release-$(VERSION)
|
TAGNAME = release-$(VERSION)
|
||||||
|
|
||||||
.PHONY: docs install uninstall tar test
|
.PHONY: docs install uninstall tar test
|
||||||
|
@ -34,7 +34,7 @@ import re
|
|||||||
import shutil
|
import shutil
|
||||||
from tempfile import NamedTemporaryFile
|
from tempfile import NamedTemporaryFile
|
||||||
|
|
||||||
VERSION = 'release-v21.0.3'
|
VERSION = 'release-v21.0.4'
|
||||||
MAX_KEYWEIGHT = 1000
|
MAX_KEYWEIGHT = 1000
|
||||||
MAX_STORED_PATHS = 1000
|
MAX_STORED_PATHS = 1000
|
||||||
COMPLETION_SEPARATOR = '__'
|
COMPLETION_SEPARATOR = '__'
|
||||||
|
@ -128,9 +128,6 @@ echo
|
|||||||
echo "Installing ${shell} version of autojump to ${prefix} ..."
|
echo "Installing ${shell} version of autojump to ${prefix} ..."
|
||||||
echo
|
echo
|
||||||
|
|
||||||
# add git revision to autojump
|
|
||||||
./tools/git-version.sh
|
|
||||||
|
|
||||||
# INSTALL AUTOJUMP
|
# INSTALL AUTOJUMP
|
||||||
mkdir -p ${prefix}/share/autojump/
|
mkdir -p ${prefix}/share/autojump/
|
||||||
mkdir -p ${prefix}/bin/
|
mkdir -p ${prefix}/bin/
|
||||||
|
@ -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
|
|
Loading…
Reference in New Issue
Block a user