From: Slava Semushin <php-coder@ngs.ru> To: ALT Devel discussion list <devel@lists.altlinux.org> Subject: Re: [devel] %optflags и qmake Date: Fri, 26 May 2006 14:57:42 +0700 Message-ID: <20060526075742.GA2433@semushin.plesk.ru> (raw) In-Reply-To: <4476B41E.6000802@rambler.ru> --- Yury Aliaev 2006-05-26 11:54:06 +0400 +++ Slava Semushin 2006-05-26 14:52:50 +0700 YA> В этой связи у меня возник ВОПРОС: как лучше всего YA> добавить строчку вида QMAKE_CXXFLAGS_RELEASE = ... во _все_ .pro файлы YA> проекта (добавлять можно в любое место файла, удобнее всего, наверное, в YA> конец)? Я пытался соорудить некую конструкцию из find -name *.pro, xargs YA> и echo, но безуспешно... for i in *.pro; do echo "QMAKE_CXXFLAGS_RELEASE = ..." >> "$i"; done Это на скорую руку и будет работать, только для файлов в текущем каталоге. Можно сложнее: find . -type f -name '*.pro' | while read FILE; do echo "QMAKE_CXXFLAGS_RELEASE = ..." >> "$FILE"; done Это уже и рекурсивно должно работать. Сам не проверял. -- + Slava Semushin | php-coder @ ngs.ru + ALT Linux Team | php-coder @ altlinux.ru
next prev parent reply other threads:[~2006-05-26 7:57 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-05-18 10:46 Yury Aliaev 2006-05-18 12:01 ` Sergey V Turchin 2006-05-25 8:37 ` Yury Aliaev 2006-05-25 10:07 ` Sergey V Turchin 2006-05-26 7:54 ` Yury Aliaev 2006-05-26 7:57 ` Slava Semushin [this message] 2006-05-26 8:43 ` Grigory Batalov 2006-05-26 11:43 ` Yury Aliaev 2006-05-26 13:26 ` Grigory Batalov 2006-05-29 9:37 ` Yury Aliaev
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=20060526075742.GA2433@semushin.plesk.ru \ --to=php-coder@ngs.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