From: Anton Farygin <rider@altlinux.com> To: ALT Linux Team development discussions <devel@lists.altlinux.org> Subject: [devel] I: объезд submodule в git для сборки в gear Date: Sat, 07 Feb 2009 08:39:06 +0300 Message-ID: <498D1E7A.4090603@altlinux.com> (raw) Коллеги, может быть кому-то кроме меня понадобится костыль для объезда идей mainstream об использовании submodule в git/subversion репозитариях. Пример лежит у меня в psi.git и openttd.git Коротко, это выглядит следующим образом: клонируем mainstream добавляет remote branch для каждого submodule, соответственно делаем для каждого из них локальный бранч. в gear/rules принуждаем gear делать тарболл для каждого submodule и для mainstream - отдельно. Например так: tar: v@version@-@release@:. name=psi-@version@-@release@ diff: v@version@-@release@:. . tar: iris:. name=iris В спеке распаковываем основной тарболл и тарболлы с модулями. При необходимости с помощью mv раскладываем submodule по нужным местам в дереве каталогов. Расставляем тэги, собираем, наслаждаемся. Историю перед сборкой приходится мержить через ours, ибо gear не собирает тарболлы, бранчи которых не смержены. собственно эту схему можно смело автоматизировать. Было бы здорово добавить в .gear/rules опцию tar и diff для объезда проверки merge между бранчами.
next reply other threads:[~2009-02-07 5:39 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-02-07 5:39 Anton Farygin [this message] 2009-02-07 8:12 ` Kirill A. Shutemov 2009-02-07 10:48 ` Anton Farygin 2009-02-07 12:25 ` Eugene Prokopiev 2009-02-07 12:30 ` Andrey Rahmatullin
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=498D1E7A.4090603@altlinux.com \ --to=rider@altlinux.com \ --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