source: trunk/kBuild/units/qt-Q_OBJECT.sed@ 2243

Last change on this file since 2243 was 2243, checked in by bird, 17 years ago

*: Updated copyright to 2009 and normalized name & email.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.1 KB
Line 
1# $Id: qt-Q_OBJECT.sed 2243 2009-01-10 02:24:02Z bird $
2## @file
3# Qt unit - sed script for checking for Q_OBJECT in a file.
4#
5# This is not very sophisticated, but it helps avoid generating
6# files we don't need. It outputs '1' when Q_OBJECT is found
7# and then quits, allowing us to do $(if $(shell ...),moc_...).
8# is
9#
10
11#
12# Copyright (c) 2008-2009 knut st. osmundsen <bird-kBuild-spamix@anduin.net>
13#
14# This file is part of kBuild.
15#
16# kBuild is free software; you can redistribute it and/or modify
17# it under the terms of the GNU General Public License as published by
18# the Free Software Foundation; either version 2 of the License, or
19# (at your option) any later version.
20#
21# kBuild is distributed in the hope that it will be useful,
22# but WITHOUT ANY WARRANTY; without even the implied warranty of
23# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24# GNU General Public License for more details.
25#
26# You should have received a copy of the GNU General Public License
27# along with kBuild; if not, write to the Free Software
28# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
29#
30#
31
32/Q_OBJECT/!b skip
33s/^.*$/1/
34q 0
35:skip
36d
Note: See TracBrowser for help on using the repository browser.