freebsd-ports/databases/redis-devel/files/patch-src-mkreleasehdr.sh
Sergey A. Osokin d5fd577271 Update from 2.6.10 to 2.6.11.
<ChangeLog>

UPGRADE URGENCY: LOW, however updating is encouraged if you have many instances
                 per server and you want to lower the CPU / energy usage.

* [BUGFIX]   Replication: more strict error checking for master PING reply.
* [BUGFIX]   redis-cli: use keepalive socket option for improved reliability.
* [BUGFIX]   Allow AUTH while loading the DB in memory.
* [BUGFIX]   Don't segfault on unbalanced quotes while parsing config file.
* [IMPROVED] serverCron() frequency is now a runtime parameter (was REDIS_HZ).
* [IMPROVED] Use a lot less CPU when idle, even with many configured DBs.

</ChangeLog>
2013-03-12 18:31:48 +00:00

11 lines
497 B
Bash

--- src/mkreleasehdr.sh.orig 2013-03-12 22:27:27.000000000 +0400
+++ src/mkreleasehdr.sh 2013-03-12 22:27:37.000000000 +0400
@@ -1,6 +1,6 @@
#!/bin/sh
-GIT_SHA1=`(git show-ref --head --hash=8 2> /dev/null || echo 00000000) | head -n1`
-GIT_DIRTY=`git diff --no-ext-diff 2> /dev/null | wc -l`
+GIT_SHA1="00000000"
+GIT_DIRTY="0"
test -f release.h || touch release.h
(cat release.h | grep SHA1 | grep $GIT_SHA1) && \
(cat release.h | grep DIRTY | grep $GIT_DIRTY) && exit 0 # Already up-to-date