| Index: patch_vulcanize.sh
|
| diff --git a/patch_vulcanize.sh b/patch_vulcanize.sh
|
| new file mode 100755
|
| index 0000000000000000000000000000000000000000..851bda4762203ec23d68e79ed9e0f0645d9b63ce
|
| --- /dev/null
|
| +++ b/patch_vulcanize.sh
|
| @@ -0,0 +1,19 @@
|
| +#!/bin/bash
|
| +
|
| +set -e
|
| +
|
| +node_dir=$(dirname $(which vulcanize))/..
|
| +constants_file="$node_dir"/lib/node_modules/vulcanize/lib/constants.js
|
| +
|
| +if ! [[ -f "$constants_file" ]]; then
|
| + echo "Error: File $constants_file not found" 1>&2
|
| + exit
|
| +fi
|
| +
|
| +patch --forward --reject-file=- "$constants_file" <<'EOF'
|
| +16c16
|
| +< URL_TEMPLATE: '{{.*}}|\\[\\[.*\\]\\]',
|
| +---
|
| +> URL_TEMPLATE: '{{.*}}|\\[\\[.*\\]\\]|\\$i18n[^{]*{[^}]*}',
|
| +
|
| +EOF
|
|
|