]> git.saurik.com Git - redis.git/blame - src/mkreleasehdr.sh
Lua max exec time fixes: redisLog() to log the event moved before the lua_error(...
[redis.git] / src / mkreleasehdr.sh
CommitLineData
73287b2b 1#!/bin/sh
9b883415
PN
2GIT_SHA1=`(git show-ref --head --hash=8 2> /dev/null || echo 00000000) | head -n1`
3GIT_DIRTY=`git diff 2> /dev/null | wc -l`
73287b2b 4test -f release.h || touch release.h
5(cat release.h | grep SHA1 | grep $GIT_SHA1) && \
6(cat release.h | grep DIRTY | grep $GIT_DIRTY) && exit 0 # Already uptodate
7echo "#define REDIS_GIT_SHA1 \"$GIT_SHA1\"" > release.h
274e45e3 8echo "#define REDIS_GIT_DIRTY \"$GIT_DIRTY\"" >> release.h
3042fb05 9touch release.c # Force recompile of release.c