summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poveda <christian.poveda@ferrous-systems.com>2022-09-23 21:29:17 -0500
committerChristian Poveda <christian.poveda@ferrous-systems.com>2022-09-23 21:29:17 -0500
commit45b9c3430255bae53777a48feb820ea2fdf837b5 (patch)
treea2110a945971e6967ee95bd69a9a383c609c4282
parent1b7e4705ddf361a6eaffc0327aa47f122ebbc76f (diff)
remove file added by mistake
-rw-r--r--asd.fish31
1 files changed, 0 insertions, 31 deletions
diff --git a/asd.fish b/asd.fish
deleted file mode 100644
index b6c9a270..00000000
--- a/asd.fish
+++ /dev/null
@@ -1,31 +0,0 @@
-for name in (rg -lF addr_of! tests/expectations | sd '.*/(.*).rs' '$1')
- set path (fd --glob "$name.*" tests/headers)
- if test -n "$path"
-
- set flags (rg -F "// bindgen-flags" $path)
- if test -n "$flags"
- set minor (rg ".*\-\-rust\-target[ =]1.(\d+).*" $path -r '$1')
- if test -n "$minor"
- if test $minor -gt 47
- echo $path needs to change the version from 1.$minor to 1.47
- sd -s "1.$minor" "1.47" $path
- else
- echo $path uses version 1.$minor and that is fine
- end
- else
- echo $path does not have the `--rust-target` flag
- sd "// bindgen-flags: (.*)" '// bindgen-flags: --rust-target 1.47 $1' $path
- end
- else
- echo $path does not have the flags at all
- set contents (echo -e "// bindgen-flags: --rust-target 1.47\n"; cat $path)
- rm $path
- touch $path
- for line in $contents
- echo $line >> $path
- end
- end
- else
- echo $name headers not found
- end
-end