1
0
mirror of https://github.com/wting/autojump synced 2026-03-02 03:49:26 +00:00

restructure files, working make doc and make release

This commit is contained in:
William Ting
2012-04-17 13:09:39 -10:00
parent 2ebcdba5bd
commit acfc5c13ef
16 changed files with 28 additions and 90 deletions

18
tools/git-version.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/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/^AUTOJUMP_VERSION = \".*\"$/AUTOJUMP_VERSION = \"$gitrevision\"/" ./bin/autojump