git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Peter Baumann <waste.manager@gmx.de>
To: David Kastrup <dak@gnu.org>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] Makefile: create an install-symlinks target
Date: Mon, 30 Jul 2007 00:26:04 +0200	[thread overview]
Message-ID: <20070729222604.GB5753@xp.machine.xx> (raw)
In-Reply-To: <85lkcyvr4f.fsf@lola.goethe.zz>

On Sun, Jul 29, 2007 at 11:26:08PM +0200, David Kastrup wrote:
> [commit text mostly pinched from INSTALL]
> 
> An alternative global installation method making it much easier to
> uninstall is to use a package-specific prefix like /opt/git, then
> create symlinks from /usr/local into that hierarchy.  Uninstalling can
> then be achieved by
> 
> 	# rm -rf /opt/git; find /usr/local -xtype l -delete
> 
> You can create a setup like that after having used one of the above
> install recipes with prefix=/opt/git by writing
> 
> 	# make prefix=/opt/git symlinkprefix=/usr/local install-symlinks
> 
> This works by copying the directory hierarchy of $prefix to
> $symlinkprefix (not copying or descending to any directories of the
> name git* matched case-insensitively), then linking all the rest.
> 
> Signed-off-by: David Kastrup <dak@gnu.org>

AFAIR I suggested this the last time this came up, but in case you
missed it:

Use (x)stow for this. It does exactly what you want. No need to hack the
Makefile.

-Peter

  parent reply	other threads:[~2007-07-29 22:26 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-29 21:26 [PATCH] Makefile: create an install-symlinks target David Kastrup
2007-07-29 21:27 ` [PATCH] Makefile: use $(FIND) instead of find David Kastrup
2007-07-29 22:22   ` Junio C Hamano
2007-07-29 22:15 ` [PATCH] Makefile: create an install-symlinks target Junio C Hamano
2007-07-29 22:30   ` David Kastrup
2007-07-29 23:44     ` Brian Gernhardt
2007-07-29 22:26 ` Peter Baumann [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-07-18 10:41 David Kastrup
2007-07-18 12:41 ` David Kastrup
2007-07-18 12:48 ` Johannes Schindelin
2007-07-18 14:33   ` Peter Baumann
2007-07-18 13:08 ` Alex Riesen
2007-07-18 14:06   ` David Kastrup

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=20070729222604.GB5753@xp.machine.xx \
    --to=waste.manager@gmx.de \
    --cc=dak@gnu.org \
    --cc=git@vger.kernel.org \
    /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).