vieter/patches/patch.sh

14 lines
493 B
Bash
Raw Normal View History

#!/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-02-14 22:28:18 +01:00
# 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