summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2025-03-16 07:14:01 +0100
committerMartin Fischer <martin@push-f.com>2025-04-03 08:01:22 +0200
commitb4e3560d81556df4a589fb274bd161a6e5790d16 (patch)
tree40c94832d1425c3ff76fd4318747fe8d15eb4850
parent9ee3480a4bfed29259f4da8eb4c1de81a55d3ec3 (diff)
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.
-rw-r--r--.gitignore1
-rwxr-xr-xclone.sh1
-rwxr-xr-xfetch_and_build.sh2
-rwxr-xr-xfind.sh2
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