From: Aleksey Avdeev <solo@solin.spb.ru>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] Q: Проверка спека на присутствие макроса.
Date: Tue, 12 Aug 2008 02:27:18 +0400
Message-ID: <48A0BCC6.8020200@solin.spb.ru> (raw)
In-Reply-To: <20080811221533.GD618@altlinux.org>
[-- Attachment #1: Type: text/plain, Size: 952 bytes --]
Alexey Tourbin пишет:
> On Tue, Aug 12, 2008 at 02:00:59AM +0400, Aleksey Avdeev wrote:
>> Alexey Tourbin пишет:
>>> On Tue, Aug 12, 2008 at 01:48:36AM +0400, Aleksey Avdeev wrote:
>>>> Решая задачу проверки использования
>>>> (не объявления) макроса в спеке
>>>> нарисовал такое регулярное выражение
>>>> (для egrep):
>>>>
>>>> '%(<макрос>($|[^[:alnum:]_])|([{](<макрос>[}]|(|!)\?<макрос>[:}])))'
>>>>
>>>> Вопросы:
>>>>
>>>> 1. Все ли случаи я учёл?
>>> %% работает как escape для %.
>> Тогда:
>>
>> '(^|[^%])%(a_b($|[^[:alnum:]_])|([{](a_b[}]|(|!)\?a_b[:}])))'
>
> Контрпример: %%%_libdir. Если привязываться регулярным выражением
> к первому "%", то потребуется неограниченный look-behind: значащему
> знаку "%" должно предшествовать четное количетво знаков "%".
OK. Есть штатные средства для такой проверки? (Или можно ли заставить
rpm -bM не проверять наличие сорцов?)
--
С уважением. Алексей.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 552 bytes --]
next prev parent reply other threads:[~2008-08-11 22:27 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-11 21:48 Aleksey Avdeev
2008-08-11 21:56 ` Alexey Tourbin
2008-08-11 21:58 ` Aleksey Avdeev
2008-08-11 22:07 ` Alexey Tourbin
2008-08-11 22:00 ` Aleksey Avdeev
2008-08-11 22:15 ` Alexey Tourbin
2008-08-11 22:27 ` Aleksey Avdeev [this message]
2008-08-11 22:37 ` Alexey Tourbin
2008-08-11 22:52 ` Aleksey Avdeev
2008-08-11 22:01 ` Alexey I. Froloff
2008-08-11 22:21 ` Aleksey Avdeev
2008-08-12 7:46 ` Igor Vlasenko
2008-08-12 8:50 ` Aleksey Avdeev
2008-08-18 7:51 ` Michael Shigorin
2008-08-18 13:15 ` Aleksey Avdeev
2008-08-19 4:16 ` Ildar Mulyukov
2008-08-19 8:12 ` Michael Shigorin
2008-08-19 8:50 ` Alexey I. Froloff
2008-08-19 8:42 ` Aleksey Avdeev
2008-08-19 8:46 ` Mikhail Gusarov
2008-08-19 8:51 ` Aleksey Avdeev
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=48A0BCC6.8020200@solin.spb.ru \
--to=solo@solin.spb.ru \
--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