Sha256: 85a728867fe0c734cd6af11fbccda898ce6f135880e034335c058be17a7a5d0c

Contents?: true

Size: 1.48 KB

Versions: 6

Compression:

Stored size: 1.48 KB

Contents

#!/bin/sh

# Uncomment this line if you want to debug the script
# set -x 

echo "
If you get compile errors about missing phonon or xmlreader files, then
patch manually the qtbindings/qtbinding.pro file. Remove any subdirs your qt
does not support. E.g.

          qtscript_svg \\
          qtscript_xml \\
-         qtscript_phonon \\
          qtscript_webkit \\
-         qtscript_xmlpatterns \\
          qtscript_uitools \\
          qs_eval

if you use the default configuration of qt this recipe provides.
qtscriptgenerator does no automatic configuring.
"

source_directory=$1
build_directory=$(pwd)

# Check the requirements
if test "x${QTDIR}x" == "xx"; then
    echo "QTDIR has to be set for the qtscriptgenerator to build!";
    exit -1;
fi

cd generator
rc=$?
if test $rc -ne 0; then
    echo "The generator directory does not exist: $rc" >&2;
    exit -1;
fi

echo "  - calling make"
make
rc=$?
if test $rc -ne 0; then
    echo "make failed with error code: $rc" >&2;
    exit -1;
fi

echo "  - executing the generator"
./generator
rc=$?
if test $rc -ne 0; then
    echo "./generator failed with error code: $rc" >&2;
    exit -1;
fi

echo "Generator created successfully"
cd ..

echo "Creating the bindings"
cd qtbindings
rc=$?
if test $rc -ne 0; then
    echo "The qtbindings directory does not exists"
    exit -1;
fi

echo "  - calling make"
make
rc=$?
if test $rc -ne 0; then
    echo "make failed with error code: $rc" >&2;
    exit -1;
fi

echo "Bindings created successfully"
cd ..

exit 0

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
build-tool-0.2 recipes/kde/custom/qt/qtscriptgenerator/compile.sh
build-tool-0.1.4 recipes/kdeqt4.6/custom/qt/qtscriptgenerator/compile.sh
build-tool-0.1.3 recipes/kdeqt4.6/custom/qt/qtscriptgenerator/compile.sh
build-tool-0.1.2 recipes/kdeqt4.6/custom/qt/qtscriptgenerator/compile.sh
build-tool-0.1.0 recipes/kdeqt4.6/custom/qt/qtscriptgenerator/compile.sh
build-tool-0.1.1 recipes/kdeqt4.6/custom/qt/qtscriptgenerator/compile.sh