gecko-dev/third_party/rust/target-lexicon-0.9.0/newlist

8 строки
212 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
rustup target list | sed 's/ (.*//' > list.txt
rustc +nightly --print target-list >> list.txt
cat list.txt | sort | uniq |sed 's/\(.*\)/ "\1",/' > sorted.txt
rm list.txt