2022-01-27 19:18:11 +01:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
# This file patches the downloaded V version
|
|
|
|
# Should be run from within the directory it's in, as it uses relative paths to the files used for patching.
|
|
|
|
# $1 is the path to the downloaded V version
|
|
|
|
|
|
|
|
# Add parse_request_no_body
|
|
|
|
cat parse_request_no_body.v >> "$1"/vlib/net/http/request.v
|
2022-01-31 14:19:37 +01:00
|
|
|
|
|
|
|
# Make sha256 functions public
|
|
|
|
sed -i \
|
|
|
|
-e 's/\(fn (mut d Digest) checksum(\)/pub \1/' \
|
|
|
|
-e 's/\(fn (mut d Digest) write(\)/pub \1/' \
|
|
|
|
"$1"/vlib/crypto/sha256/sha256.v
|