Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Document MKDIR_WO_TRAILING_SLASH in Makefile
author
Joachim Schmitz
<jojo@schmitz-digital.de>
Sat, 8 Sep 2012 17:01:31 +0000
(19:01 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Sun, 9 Sep 2012 03:40:06 +0000
(20:40 -0700)
Signed-off-by: Joachim Schmitz <jojo@schmitz-digital.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
0539ecf
)
diff --git
a/Makefile
b/Makefile
index 6b0c961d3acd6eb476c979e51f32a258e15c743d..556bc9fc1301a2973ae9958841d08701abc1f263 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-90,6
+90,8
@@
all::
#
# Define NO_MKDTEMP if you don't have mkdtemp in the C library.
#
#
# Define NO_MKDTEMP if you don't have mkdtemp in the C library.
#
+# Define MKDIR_WO_TRAILING_SLASH if your mkdir() can't deal with trailing slash.
+#
# Define NO_MKSTEMPS if you don't have mkstemps in the C library.
#
# Define NO_STRTOK_R if you don't have strtok_r in the C library.
# Define NO_MKSTEMPS if you don't have mkstemps in the C library.
#
# Define NO_STRTOK_R if you don't have strtok_r in the C library.
@@
-1639,6
+1641,10
@@
ifdef NO_MKDTEMP
COMPAT_CFLAGS += -DNO_MKDTEMP
COMPAT_OBJS += compat/mkdtemp.o
endif
COMPAT_CFLAGS += -DNO_MKDTEMP
COMPAT_OBJS += compat/mkdtemp.o
endif
+ifdef MKDIR_WO_TRAILING_SLASH
+ COMPAT_CFLAGS += -DMKDIR_WO_TRAILING_SLASH
+ COMPAT_OBJS += compat/mkdir.o
+endif
ifdef NO_MKSTEMPS
COMPAT_CFLAGS += -DNO_MKSTEMPS
endif
ifdef NO_MKSTEMPS
COMPAT_CFLAGS += -DNO_MKSTEMPS
endif