From: "Dmitry V. Levin" <ldv@altlinux.org> To: ALT Devel discussion list <devel@lists.altlinux.org> Subject: Re: [devel] [SCM] packages/kernel-build-tools: heads/master Date: Tue, 14 Oct 2008 15:55:59 +0400 Message-ID: <20081014115559.GB23976@wo.int.altlinux.org> (raw) In-Reply-To: <20081014100359.3A44A45D805B@ssh.git.int.altlinux.org> [-- Attachment #1: Type: text/plain, Size: 1525 bytes --] On Tue, Oct 14, 2008 at 02:03:59PM +0400, Konstantin A. Lepikhov wrote: > Update of /people/lakostis/packages/kernel-build-tools.git [...] > new file mode 100755 > index 0000000..66f7500 > --- /dev/null > +++ b/modalias.prov > @@ -0,0 +1,20 @@ > +#!/bin/sh -efu > +# > +# Copyright (c) 2008 Konstantin Lepikhov <lakostis@altlinux.org>. > +# > +# This program is free software; you can redistribute it and/or modify > +# it under the terms of the GNU General Public License as published by > +# the Free Software Foundation; either version 2 of the License, or > +# (at your option) any later version. > + > +. /usr/lib/rpm/functions > +. /usr/lib/rpm/find-package > + > +ModaliasReq() { > + local f t Поскольку тип не проверятеся, t здесь лишний. > + for f in "$@"; do > + /sbin/modinfo -F alias "$f" |sed -e 's/.*/modalias:&/' -e 's/[,]/?/g' > + done > +} > + > +ArgvFileAction ModaliasReq "$@" > diff --git a/modalias.prov.files b/modalias.prov.files > new file mode 100755 > index 0000000..b209954 > --- /dev/null > +++ b/modalias.prov.files > @@ -0,0 +1,11 @@ > +#!/bin/sh -efu > +buildroot="${RPM_BUILD_ROOT-}" > + > +while IFS=$'\t' read -r f t; do > + case "$f" in > + "$buildroot"/lib/modules/*/kernel/drivers/*.ko|"$buildroot"/lib/modules/*/kernel/sound/*.ko) > + [ -z "$f" ] || echo "$f" ;; > + "$buildroot"/lib/modules/*/*/*.ko) > + [ -z "$f" ] || echo "$f" ;; Избыточность: последний case вполне покрывает первые два. > + esac > +done -- ldv [-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
next parent reply other threads:[~2008-10-14 11:55 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-10-14 11:55 ` Dmitry V. Levin [this message] 2008-10-14 12:07 ` Konstantin A. Lepikhov 2008-10-14 12:20 ` Dmitry V. Levin 2008-10-14 12:31 ` Konstantin A. Lepikhov 2008-10-14 12:43 ` Led 2008-10-14 12:44 ` Dmitry V. Levin 2008-10-14 13:01 ` Konstantin A. Lepikhov 2008-10-14 12:33 ` Alexey Gladkov 2008-10-14 12:41 ` Anton Farygin 2008-10-14 12:58 ` Konstantin A. Lepikhov 2008-10-14 13:23 ` Anton Farygin 2008-10-14 13:29 ` Konstantin A. Lepikhov 2008-10-14 13:32 ` Alexey Gladkov 2008-10-14 13:44 ` Anton Farygin
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=20081014115559.GB23976@wo.int.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