1
0
mirror of https://github.com/wting/autojump synced 2024-10-27 20:34:07 +00:00

remove autojump.py and mv; use sed -i instead

This commit is contained in:
Joël Schaerer 2011-09-24 11:45:47 +02:00
parent 8bc532c42f
commit 6cc6728045
2 changed files with 1 additions and 4 deletions

View File

@ -1 +0,0 @@
autojump

View File

@ -4,6 +4,4 @@ gitrevision=`git describe`
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
sed -i "s/^AUTOJUMP_VERSION = \".*\"$/AUTOJUMP_VERSION = \"$gitrevision\"/" autojump