lol
1#!/usr/bin/env nix-shell
2#! nix-shell -i bash -p curl
3
4# We use this script to download local copies instead of using
5# fetchpatch because lmhouse/MINGW-packages-dev is constantly rebased
6# against msys2/MINGW-packages-dev and won't have stable commit hashes.
7
8name=Added-mcf-thread-model-support-from-mcfgthread.patch
9source=https://raw.githubusercontent.com/lhmouse/MINGW-packages-dev/master/mingw-w64-gcc-git
10dest=$(dirname "$0")
11
12for majorVersion in 6 7 8 9 10; do
13 curl "$source/9000-gcc-$majorVersion-branch-$name" \
14 > "$dest/$majorVersion/$name"
15done