'make install': Install .version and .revision-hash.

This commit is contained in:
Daniel Shahaf 2015-10-19 07:35:12 +00:00
parent 9a3c7d1960
commit 728784649f
1 changed files with 6 additions and 1 deletions

View File

@ -10,7 +10,12 @@ all:
install:
$(INSTALL) -d $(SHARE_DIR)
cp -r zsh-syntax-highlighting.zsh highlighters $(SHARE_DIR)
cp -r .version zsh-syntax-highlighting.zsh highlighters $(SHARE_DIR)
if [ x"true" = x"`git rev-parse --is-inside-work-tree 2>/dev/null`" ]; then \
git rev-parse HEAD; \
else \
cat .revision-hash; \
fi > $(SHARE_DIR)/.revision-hash
test:
@result=0