diff options
| author | Joerg Bornemann <joerg.bornemann@digia.com> | 2013-04-09 16:19:07 +0200 |
|---|---|---|
| committer | Christian Kandeler <christian.kandeler@digia.com> | 2013-04-10 11:52:04 +0200 |
| commit | de25f2fcbf334e60ae2b6e922833e540480cd472 (patch) | |
| tree | a4982aa611b2feeef5574d1e200a66e8daf294a0 | |
| parent | 3f9470da4c6410c183652ade2d2e85169c558df2 (diff) | |
| download | qbs-de25f2fcbf334e60ae2b6e922833e540480cd472.tar.gz | |
remove unused scripts from src/lib/parser
Those are only useful in Qt Creator's source tree.
Change-Id: I17fd0b2d357787b141fb3badeb7283d87a8700df
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
| -rw-r--r-- | src/lib/parser/cmd.sed | 14 | ||||
| -rw-r--r-- | src/lib/parser/gen-parser.sh | 41 |
2 files changed, 0 insertions, 55 deletions
diff --git a/src/lib/parser/cmd.sed b/src/lib/parser/cmd.sed deleted file mode 100644 index 9f8f0db22..000000000 --- a/src/lib/parser/cmd.sed +++ /dev/null @@ -1,14 +0,0 @@ -s/private\/qdeclarative/qml/g -s/qqml/qml/g -s/QDECLARATIVE/QML/g -s/QQml/Qml/g -s/QQMLJS/QMLJS/g -s/Q_QML_EXPORT //g - -# adjust pri file -s/ \$\$PWD\/qmljsglobal_p.h/ $$PWD\/qmljsglobal_p.h \\\ - $$PWD\/qmldirparser_p.h \\\ - $$PWD\/qmlerror.h/ -s/ \$\$PWD\/qmljsparser.cpp/ $$PWD\/qmljsparser.cpp \\\ - $$PWD\/qmldirparser.cpp \\\ - $$PWD\/qmlerror.cpp/ diff --git a/src/lib/parser/gen-parser.sh b/src/lib/parser/gen-parser.sh deleted file mode 100644 index e6fdadf67..000000000 --- a/src/lib/parser/gen-parser.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash - -# This is the script that generates the copy of the QmlJS parser from the sources -# in the qtdeclarative source tree. -# -# It applies a bunch of renames to make the source compatible with the Qt Creator -# sources as well as rewrites of the licenses. -# -# Example: -# cd src/libs/qmljs/parser -# QTDIR=~/path/to/qtdeclarative-checkout ./gen-parser.sh - -me=$(dirname $0) - -for i in $QTDIR/src/qml/qml/parser/*.{g,h,cpp,pri}; do - sed -f $me/cmd.sed $i > $me/$(echo $(basename $i) | sed s/qqmljs/qmljs/) -done - -for i in $QTDIR/src/qml/qml/qqml{error.{h,cpp},dirparser{_p.h,.cpp}}; do - sed -f $me/cmd.sed $i > $me/$(echo $(basename $i) | sed s/qqml/qml/) -done - -# export QmlDirParser -perl -p -0777 -i -e 's/QT_BEGIN_NAMESPACE\n\nclass QmlError;\nclass QmlEngine;\nclass Q_AUTOTEST_EXPORT QmlDirParser/#include "qmljsglobal_p.h"\n\nQT_BEGIN_NAMESPACE\n\nclass QmlError;\nclass QmlEngine;\nclass QML_PARSER_EXPORT QmlDirParser/' qmldirparser_p.h -# export QmlJSGrammar -perl -p -0777 -i -e 's/#include <QtCore\/qglobal.h>\n\nQT_BEGIN_NAMESPACE\n\nclass QmlJSGrammar\n/#include "qmljsglobal_p.h"\n#include <QtCore\/qglobal.h>\n\nQT_BEGIN_NAMESPACE\n\nclass QML_PARSER_EXPORT QmlJSGrammar\n/' qmljsgrammar_p.h -# remove qmlglobal_p.h include -perl -p -0777 -i -e 's/#include \"qmlglobal_p.h\"//' qmldirparser.cpp -# remove qmlglobal_p.h include -perl -p -0777 -i -e 's/#include \<QtQml\/qmlfile.h\>//' qmldirparser.cpp -# remove QtQml/qtqmlglobal.h include -perl -p -0777 -i -e 's/#include \<QtQml\/qtqmlglobal.h\>//' qmlerror.h -# replace private/qhashedstring_p.h include and QHashedStringRef -perl -p -0777 -i -e 's/#include \<private\/qhashedstring_p.h\>//' qmldirparser_p.h -perl -p -0777 -i -e 's/QHashedStringRef/QString/g' qmldirparser_p.h qmldirparser.cpp -# don't use the new QVarLengthArray::length() -sed -i -e 's/chars.length()/chars.size()/' $me/qmljslexer.cpp - -./changeLicense.py $me/../qmljs_global.h qml*.{cpp,h} - -patch -p5 < parser.patch |
