From: Junio C Hamano <gitster@pobox.com>
To: "Joachim Schmitz" <jojo@schmitz-digital.de>
Cc: <git@vger.kernel.org>
Subject: Re: [PATCH] Document MKDIR_WO_TRAILING_SLASH in Makefile
Date: Fri, 07 Sep 2012 10:29:31 -0700 [thread overview]
Message-ID: <7vliglyc5g.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <003301cd8cf1$d26258c0$77270a40$@schmitz-digital.de> (Joachim Schmitz's message of "Fri, 7 Sep 2012 14:10:49 +0200")
"Joachim Schmitz" <jojo@schmitz-digital.de> writes:
> Signed-off-by: Joachim Schmitz <jojo@schmitz-digital.de>
> ---
> Makefile | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/Makefile b/Makefile
> index ac49320..03e245a 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -90,6 +90,8 @@ all::
> #
> # 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.
Not really. "make MKDIR_WO_TRAILING_SLASH=YesPlease" won't do
anything.
You would need at least something like this, no?
Makefile | 5 +++++
1 file changed, 5 insertions(+)
diff --git c/Makefile w/Makefile
index 66e8216..21b4816 100644
--- c/Makefile
+++ w/Makefile
@@ -90,6 +90,8 @@ all::
#
# 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.
@@ -1639,6 +1641,9 @@ ifdef NO_MKDTEMP
COMPAT_CFLAGS += -DNO_MKDTEMP
COMPAT_OBJS += compat/mkdtemp.o
endif
+ifdef MKDIR_WO_TRAILING_SLASH
+ COMPAT_CFLAGS += -DMKDIR_WO_TRAILING_SLASH
+endif
ifdef NO_MKSTEMPS
COMPAT_CFLAGS += -DNO_MKSTEMPS
endif
next prev parent reply other threads:[~2012-09-07 17:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-07 12:10 [PATCH] Document MKDIR_WO_TRAILING_SLASH in Makefile Joachim Schmitz
2012-09-07 17:27 ` Junio C Hamano
2012-09-07 17:29 ` Junio C Hamano [this message]
2012-09-07 18:28 ` Joachim Schmitz
2012-09-08 15:23 ` Joachim Schmitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vliglyc5g.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=jojo@schmitz-digital.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).