FENIX_main/target-triplet-to-arch.sh

8 lines
123 B
Bash
Raw Normal View History

2021-01-31 20:08:26 +00:00
#!/bin/sh
if echo "$1" | grep -Eq 'i[[:digit:]]86-'; then
echo i386
else
echo "$1" | grep -Eo '&[[:alnum:]_]*'
fi