git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCHES] CURLDIR support, more usable cmd-rename.sh

From
PMPatrick Mauritz <oxygene@studentenbude.ath.cx>
Date
Sep 19, 2005, 14:11 UTC
Message-ID
<1127139079.781.9.camel@divert>
In-Reply-To
<20050919133731.GB2903@pasky.or.cz>
On Mon, 2005-09-19 at 15:37, Petr Baudis wrote:
> seems that they didn't quite get attached in the end. ;-)

oops :) here they are

> Linus already did in <Pine.LNX.4.58.0509181829310.9106@g5.osdl.org>.
yay :)
patrick mauritz

diff -ur git-core-0.99.7.orig//Makefile git-core-0.99.7/Makefile --- git-core-0.99.7.orig//Makefile Mon Sep 19 12:43:04 2005 +++ git-core-0.99.7/Makefile Mon Sep 19 12:45:45 2005

@@ -42,7 +42,10 @@
 
 GIT_VERSION = 0.99.7
 
-CFLAGS = -g -O2 -Wall
+CFLAGS = -g -O2
+ifdef CURLDIR
+CFLAGS+=-I$(CURLDIR)/include
+endif
 ALL_CFLAGS = $(CFLAGS) $(PLATFORM_DEFINES) $(DEFINES)
 
 prefix = $(HOME)
@@ -261,7 +264,11 @@
 git-ssh-pull: rsh.o fetch.o
 git-ssh-push: rsh.o
 
+ifdef CURLDIR
+git-http-fetch: LIBS += -L$(CURLDIR)/lib -R$(CURLDIR)/lib -lcurl
+else
 git-http-fetch: LIBS += -lcurl
+endif
 git-rev-list: LIBS += $(OPENSSL_LIBSSL)
 
 init-db.o: init-db.c


--- cmd-rename.sh~	Mon Sep 19 12:53:40 2005
+++ git-core-0.99.7/cmd-rename.sh	Mon Sep 19 12:53:58 2005
@@ -4,7 +4,9 @@
 while read old new
 do
 	rm -f "$d/$old"
+	if [ -x "$d/$new" ]; then
 	ln -s "$new" "$d/$old"
+	fi
 done <<\EOF
 git-add-script	git-add
 git-archimport-script	git-archimport
Previous: Petr BaudisNext: Matthias Urlichs
Message 3 of 7 in “[PATCHES] CURLDIR support, more usable cmd-rename.sh”
  1. Patrick MauritzSep 19, 2005
  2. Petr BaudisSep 19, 2005
  3. Patrick MauritzSep 19, 2005
  4. Matthias UrlichsSep 19, 2005
  5. Junio C HamanoSep 19, 2005
  6. Patrick MauritzSep 19, 2005
  7. Junio C HamanoSep 20, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.