##// END OF EJS Templates
chg: allows default hg path to be overridden...
Jun Wu -
r28605:baa07320 default
parent child Browse files
Show More
@@ -7,6 +7,9 b' OBJS = $(SRCS:.c=.o)'
7 7 CFLAGS ?= -O2 -Wall -Wextra -pedantic -g
8 8 CPPFLAGS ?= -D_FORTIFY_SOURCE=2
9 9 override CFLAGS += -std=gnu99
10 ifdef HGPATH
11 override CPPFLAGS += -DHGPATH=\"$(HGPATH)\"
12 endif
10 13
11 14 DESTDIR =
12 15 PREFIX = /usr/local
@@ -194,7 +194,11 b' static const char *gethgcmd(void)'
194 194 if (!hgcmd || hgcmd[0] == '\0')
195 195 hgcmd = getenv("HG");
196 196 if (!hgcmd || hgcmd[0] == '\0')
197 #ifdef HGPATH
198 hgcmd = (HGPATH);
199 #else
197 200 hgcmd = "hg";
201 #endif
198 202 }
199 203 return hgcmd;
200 204 }
General Comments 0
You need to be logged in to leave comments. Login now