14 lines
493 B
Bash
Executable File
14 lines
493 B
Bash
Executable File
#!/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
|
|
|
|
# weekly.2022.07 fixes the write function being private
|
|
# Make sha256 functions public
|
|
sed -i \
|
|
-e 's/\(fn (mut d Digest) checksum(\)/pub \1/' \
|
|
"$1"/vlib/crypto/sha256/sha256.v
|