ports/databases/redis-scripting/files/patch-src::mkreleasehdr.sh
Sergey A. Osokin 80f1925c91 Add redis-scripting, version 2.2.111, an experimental version of
Redis 2.2.11 with support for Lua scripting, backported from the
scripting branch.  Instructions about how to use it are contained
in following blog post:
http://antirez.com/post/scripting-branch-released.html

Connect to build.

Add CONFLICTS and bump PORTREVISION for databases/redis.
2011-07-22 10:32:41 +00:00

11 lines
481 B
Bash

--- src/mkreleasehdr.sh.orig 2010-12-24 09:37:11.000000000 +0300
+++ src/mkreleasehdr.sh 2010-12-24 09:37:16.000000000 +0300
@@ -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 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 uptodate