17 lines
353 B
Bash
Executable File
17 lines
353 B
Bash
Executable File
#!/bin/bash -eu
|
|
|
|
BASE_DIR="$(dirname -- "$(readlink -f -- "$0")")"
|
|
|
|
if [ $# -ne 1 ]; then
|
|
echo "Usage: $0 /path/to/emsdk"
|
|
exit 1
|
|
fi
|
|
|
|
EMSDK_ROOT="$1"
|
|
cd "$EMSDK_ROOT"
|
|
|
|
patch -p1 < "$BASE_DIR/emsdk_emcc.patch"
|
|
patch -p1 < "$BASE_DIR/emsdk_file_packager.patch"
|
|
patch -p1 < "$BASE_DIR/emsdk_dirperms.patch"
|
|
patch -p1 < "$BASE_DIR/emsdk_setlk.patch"
|