]>
Commit | Line | Data |
---|---|---|
93a37866 A |
1 | #!/usr/bin/bash |
2 | ||
3 | NUMCPUS=`../../../Tools/Scripts/num-cpus` | |
4 | ||
5 | XSRCROOT="`pwd`/.." | |
6 | XSRCROOT=`realpath "$XSRCROOT"` | |
7 | # Do a little dance to get the path into 8.3 form to make it safe for gnu make | |
8 | # http://bugzilla.opendarwin.org/show_bug.cgi?id=8173 | |
9 | XSRCROOT=`cygpath -m "$XSRCROOT"` | |
10 | XSRCROOT=`cygpath -u "$XSRCROOT"` | |
11 | export XSRCROOT | |
12 | export SOURCE_ROOT=$XSRCROOT | |
13 | XDSTROOT="$1" | |
14 | export XDSTROOT | |
15 | # Do a little dance to get the path into 8.3 form to make it safe for gnu make | |
16 | # http://bugzilla.opendarwin.org/show_bug.cgi?id=8173 | |
17 | XDSTROOT=`cygpath -m -s "$XDSTROOT"` | |
18 | XDSTROOT=`cygpath -u "$XDSTROOT"` | |
19 | export XDSTROOT | |
20 | ||
21 | SDKROOT="$2" | |
22 | export SDKROOT | |
23 | # Do a little dance to get the path into 8.3 form to make it safe for gnu make | |
24 | # http://bugzilla.opendarwin.org/show_bug.cgi?id=8173 | |
25 | SDKROOT=`cygpath -m -s "$SDKROOT"` | |
26 | SDKROOT=`cygpath -u "$SDKROOT"` | |
27 | export SDKROOT | |
28 | ||
29 | export BUILT_PRODUCTS_DIR="$XDSTROOT/obj32/JavaScriptCore" | |
30 | ||
31 | mkdir -p "${BUILT_PRODUCTS_DIR}/DerivedSources/docs" | |
32 | cd "${BUILT_PRODUCTS_DIR}/DerivedSources" | |
33 | ||
34 | export JavaScriptCore="${XSRCROOT}" | |
35 | export DFTABLES_EXTENSION=".exe" | |
36 | make -f "$JavaScriptCore/DerivedSources.make" -j ${NUMCPUS} || exit 1 |