mirror of https://github.com/wting/autojump
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
364 B
12 lines
364 B
13 years ago
|
#!/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
|
||
|
|
||
|
|