openbsd-ports/databases/redis/patches/patch-src_mkreleasehdr_sh
dcoppa 9c62c4e369 Update to redis-2.2.12.
Clean makefiles from colors, optimizations, and other amenities.

ok rpointel@
2011-07-28 08:57:32 +00:00

13 lines
530 B
Plaintext

$OpenBSD: patch-src_mkreleasehdr_sh,v 1.1 2011/07/28 08:57:32 dcoppa Exp $
--- src/mkreleasehdr.sh.orig Wed Jul 27 09:33:10 2011
+++ src/mkreleasehdr.sh Wed Jul 27 09:34:31 2011
@@ -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