ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] создать ссылку в репозитарии git
Date: Fri, 5 May 2006 15:44:44 +0400
Message-ID: <20060505114444.GB27145@basalt.office.altlinux.org> (raw)
In-Reply-To: <445B38AE.2040905@altlinux.com>

[-- Attachment #1: Type: text/plain, Size: 1356 bytes --]

On Fri, May 05, 2006 at 03:36:14PM +0400, Anton Farygin wrote:
> Dmitry V. Levin wrote:
> > On Fri, May 05, 2006 at 03:17:32PM +0400, Anton Farygin wrote:
> >> Никто не подскажет, как в git можно сделать ссылку на файл, находящийся 
> >> в другом месте репозитария ?
> > 
> > С одной стороны, в git можно хранить ссылки.
> 
> Я нашёл что-то типа git-relink, но как я понял из скудной документации - 
> это что-то не то.

Сыылки можно хранить так же как и обычные файлы.

> >> Мне нужно spec файл положить в тарбол, а для этого необходимо сделать 
> >> ссылку на него.
> >>
> >> Т.е.:
> >>
> >> a.git/source-tree/a.spec должен быть идентичен
> >> a.git/a.spec
> > 
> > С другой стороны, зачем тебе a.git/a.spec?
> > Перемести его в a.git/source-tree/; если надо, сделай a.git/a.spec ссылкой
> > на a.git/source-tree/a.spec (хотя зачем?)
> 
> На этапе сборки из спек-файла берётся версия и на её базе создаётся soname.
> 
> Соответственно ссылка не прокатит, если это естественно не хард-линк. 
> Спек файл должен содержаться в тарболле.
> 
> Просто мне лень прописывать версию в нескольких местах сразу.

Посмотри на почти любой мой пакет в
ftp://ftp.altlinux.org/pub/people/ldv/scm/packages/
(хотя бы тот же hasher) - там версия извлекается из spec-файла и дальше
используется Makefile'ом во время сборки.


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --]

  reply	other threads:[~2006-05-05 11:44 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-05 11:17 Anton Farygin
2006-05-05 11:27 ` Dmitry V. Levin
2006-05-05 11:36   ` Anton Farygin
2006-05-05 11:44     ` Dmitry V. Levin [this message]
2006-05-05 12:07       ` Anton Farygin
2006-05-05 12:49         ` Dmitry V. Levin
2006-05-05 12:58           ` Anton Farygin
2006-05-05 13:00         ` Alexey I. Froloff
2006-05-05 13:13           ` Anton Farygin
2006-05-05 11:46 ` Alexey I. Froloff
2006-05-05 11:57   ` Anton Farygin
2006-05-05 12:51     ` Dmitry V. Levin

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=20060505114444.GB27145@basalt.office.altlinux.org \
    --to=ldv@altlinux.org \
    --cc=devel@lists.altlinux.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

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git