From b4e3560d81556df4a589fb274bd161a6e5790d16 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Sun, 16 Mar 2025 07:14:01 +0100 Subject: fix: don't assume ~/repos-contrib/rust exists When I wrote this 4 years ago I didn't want another clone of the rust repo because it's so big but we can just use a shallow. --- .gitignore | 1 + clone.sh | 1 + fetch_and_build.sh | 2 +- find.sh | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 6e07cec..23f3028 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ caniuse.rs/ +rust/ target/ lib_feats.txt diff --git a/clone.sh b/clone.sh index d3a214a..0214f70 100755 --- a/clone.sh +++ b/clone.sh @@ -1 +1,2 @@ git clone https://github.com/jplatte/caniuse.rs +git clone --depth 1 https://github.com/rust-lang/rust diff --git a/fetch_and_build.sh b/fetch_and_build.sh index 5c9eaa0..760b03d 100755 --- a/fetch_and_build.sh +++ b/fetch_and_build.sh @@ -1,5 +1,5 @@ (cd caniuse.rs; git checkout main; git pull --ff-only) -(cd ~/repos-contrib/rust; git checkout master; git pull --ff-only) +(cd rust; git checkout master; git pull --ff-only) ./find.sh | grep -oP '(?<=feature = ")([^"]+)' > lib_feats.txt rm -r build/ ./build.py diff --git a/find.sh b/find.sh index 17a7e11..105c8cc 100755 --- a/find.sh +++ b/find.sh @@ -1,2 +1,2 @@ -cd ~/repos-contrib/rust +cd rust git grep -hEo '(un)?stable\(feature =.+\)' library/ | grep -v 'issue = "none"' | sort | uniq -- cgit v1.2.3