ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] gear: tar by sha-1/tag
@ 2008-04-06 14:05 Eugene Prokopiev
  2008-04-06 14:49 ` Alexey I. Froloff
  2008-04-06 14:51 ` Alexey I. Froloff
  0 siblings, 2 replies; 7+ messages in thread
From: Eugene Prokopiev @ 2008-04-06 14:05 UTC (permalink / raw)
  To: Devel

Здравствуйте!

Как с помощью gear сделать tar по идентификатору коммита?

$ mkdir mypackage
$ cd mypackage
$ git-init
$ mkdir .gear
$ touch .gear/rules
$ git-add .
$ git-commit -a -m 'initial commit'
$ git-branch upstream
$ touch file
$ git-add .
$ git-commit -a -m '0.1'
$ git-checkout master
$ touch mypackage.spec
$ git-add .
$ PAGER=cat git-log
commit 15c4e518bc37a8277dc72d3d4cb2321edc0b812b
...
$ echo "tar: 15c4e518bc37a8277dc72d3d4cb2321edc0b812b:mypackage" > .gear/rules
$ gear -v --commit --export-dir=/tmp
Created commit b9d4f7d: Temporary commit by gear.
 1 files changed, 1 insertions(+), 0 deletions(-)
 create mode 100644 mypackage.spec
gear: Temporarily committed local changes.
gear: .gear/rules line 1: Empty @version@ "" specified
gear: Reverted temporary commit b9d4f7dfa330e40ba4f619c0840446453c52442e.

Или по тегу?

$ git-checkout upstream
$ git-tag last
$ git-checkout master
$ echo "tar: last:mypackage" > .gear/rules
$ gear -v --commit --export-dir=/tmp
Created commit 1deec5b: Temporary commit by gear.
 1 files changed, 1 insertions(+), 0 deletions(-)
 create mode 100644 mypackage.spec
gear: Temporarily committed local changes.
gear: .gear/rules line 1: Empty @version@ "" specified
gear: Reverted temporary commit 1deec5b1bd5b7569f517ada84d31b0efa42625c6.

@version@ использовать обязательно? Если да, то как вывернуться в
такой ситуации: у меня в спеке version - 1.2 и вряд ли в ближайшее
время изменится, а release - alt0.svnNNNN или 0.alt0.svnNNNN.M40 (для
branch/4.0). Планировал иметь тег, который при каждом обновлении из
апстрима будет сдвигаться на последний коммит и уже этот тег указывать
в .gear/rules

-- 
С уважением,
Прокопьев Евгений

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-04-07  5:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-06 14:05 [devel] gear: tar by sha-1/tag Eugene Prokopiev
2008-04-06 14:49 ` Alexey I. Froloff
2008-04-06 17:25   ` Eugene Prokopiev
2008-04-06 14:51 ` Alexey I. Froloff
2008-04-06 17:31   ` Eugene Prokopiev
2008-04-06 19:35     ` Anton Farygin
2008-04-07  5:04       ` Eugene Prokopiev

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