Module: sip-router Branch: master Commit: 420eb49f121793fe9094826e18bbf04ed1e65fce URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=420eb49f...
Author: Andrei Pelinescu-Onciul andrei@iptel.org Committer: Andrei Pelinescu-Onciul andrei@iptel.org Date: Tue Jul 13 21:00:37 2010 +0200
makefile: fix repo_state
---
Makefile | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile index 516b294..7de18f7 100644 --- a/Makefile +++ b/Makefile @@ -564,8 +564,8 @@ repo_ver=$(shell RV=`git rev-parse --verify --short=6 HEAD 2>/dev/null`;\ grep -v Makefile`" &&\ RV="$$RV"-dirty; echo "$$RV") repo_hash=$(subst -dirty,,$(repo_ver)) -repo_state=$(patsubst %-dirty,dirty,$(repo_ver)) -autover_h_dep=.git $(filter-out $(auto_gen), $(sources)) cfg.y cfg.lex +repo_state=$(subst %-dirty,dirty,$(findstring -dirty,$(repo_ver))) +autover_h_dep=.git $(filter-out $(auto_gen), $(sources)) cfg.y cfg.lex Makefile else # else if .git/ does not exist repo_ver=