summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorJeremy Katz <jeremy.katz@nokia.com>2009-09-16 17:14:22 +0200
committerJeremy Katz <jeremy.katz@nokia.com>2009-09-16 17:50:51 +0200
commit8caa3209ddfd0cc7944b3935c212acd97fbdfc0d (patch)
tree5dac98efb053fe50bfd4e12843f1bbf580d8402f /util
parent0ba2ae5bc54297ca01039cc3d921f66dfd8dd9b7 (diff)
have make_qfeatures_dot_h use QTSRCDIR if defined, update qfeatures.h
Reviewed-by: Paul
Diffstat (limited to 'util')
-rwxr-xr-xutil/scripts/make_qfeatures_dot_h29
1 files changed, 17 insertions, 12 deletions
diff --git a/util/scripts/make_qfeatures_dot_h b/util/scripts/make_qfeatures_dot_h
index 2c919aa0a4..bdd68a3333 100755
--- a/util/scripts/make_qfeatures_dot_h
+++ b/util/scripts/make_qfeatures_dot_h
@@ -49,8 +49,14 @@
# will show them.
#
-open FL, "$ENV{QTDIR}/src/corelib/global/qfeatures.txt"
- or die "Cannot open $ENV{QTDIR}/src/corelib/global/qfeatures.txt";
+if ($ENV{QTSRCDIR} ne '') {
+ $qtbase=$ENV{QTSRCDIR};
+} else {
+ $qtbase=$ENV{QTDIR};
+}
+
+open FL, "$qtbase/src/corelib/global/qfeatures.txt"
+ or die "Cannot open $qtbase/src/corelib/global/qfeatures.txt";
while (<FL>) {
if ( /^Feature: (\S*)/ ) {
@@ -120,19 +126,19 @@ for $macro ( @macros ) {
}
}
-open OUT, ">$ENV{QTDIR}/src/corelib/global/qfeatures.h"
- or die "Cannot open $ENV{QTDIR}/src/corelib/global/qfeatures.h for writing";
+open OUT, ">$qtbase/src/corelib/global/qfeatures.h"
+ or die "Cannot open $qtbase/src/corelib/global/qfeatures.h for writing";
print OUT
'/****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
-** Contact: Nokia Corporation (qt-info\@nokia.com)
+** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtCore module of the Qt Toolkit.
**
-** \$QT_BEGIN_LICENSE:LGPL\$
+** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
@@ -147,13 +153,12 @@ print OUT
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
-** In addition, as a special exception, Nokia gives you certain
-** additional rights. These rights are described in the Nokia Qt LGPL
-** Exception version 1.1, included in the file LGPL_EXCEPTION.txt in this
-** package.
+** In addition, as a special exception, Nokia gives you certain additional
+** rights. These rights are described in the Nokia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
-** Nokia at qt-info\@nokia.com.
+** Nokia at qt-info@nokia.com.
**
**
**
@@ -162,7 +167,7 @@ print OUT
**
**
**
-** \$QT_END_LICENSE\$
+** $QT_END_LICENSE$
**
****************************************************************************/