mirror of https://github.com/wting/autojump
parent
f438372616
commit
12bf584088
@ -0,0 +1,11 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# add git revision to autojump
|
||||||
|
gitrevision=`git rev-parse HEAD`
|
||||||
|
if [[ $(git diff --shortstat 2> /dev/null | tail -n1) != "" ]]; then
|
||||||
|
gitrevision=$gitrevision"-dirty"
|
||||||
|
fi
|
||||||
|
sed -e "s/^AUTOJUMP_VERSION = \".*\"$/AUTOJUMP_VERSION = \"git revision $gitrevision\"/" autojump > autojump-version
|
||||||
|
mv -f autojump-version autojump
|
||||||
|
chmod a+rw autojump
|
||||||
|
|
||||||
|
|
Loading…
Reference in new issue