1*925d9f19SAlexander von Gluck IV#!/bin/sh 2*925d9f19SAlexander von Gluck IV# 3*925d9f19SAlexander von Gluck IV# Produce a gcc triplet for the given architecture 4*925d9f19SAlexander von Gluck IV# Released under the MIT License. 5*925d9f19SAlexander von Gluck IV# 6*925d9f19SAlexander von Gluck IV# We have a lot of arbitrary toolchain triplets, this is 7*925d9f19SAlexander von Gluck IV# a simple script to decode them. 8*925d9f19SAlexander von Gluck IV# 9*925d9f19SAlexander von Gluck IV 10*925d9f19SAlexander von Gluck IVif [[ $# -ne 1 ]]; then 11*925d9f19SAlexander von Gluck IV echo "usage: $0 <architecture>" 12*925d9f19SAlexander von Gluck IV exit 1 13*925d9f19SAlexander von Gluck IVfi 14*925d9f19SAlexander von Gluck IV 15*925d9f19SAlexander von Gluck IVcase "$1" in 16*925d9f19SAlexander von Gluck IV "arm64") 17*925d9f19SAlexander von Gluck IV echo "aarch64-unknown-haiku" 18*925d9f19SAlexander von Gluck IV ;; 19*925d9f19SAlexander von Gluck IV "ppc") 20*925d9f19SAlexander von Gluck IV echo "powerpc-apple-haiku" 21*925d9f19SAlexander von Gluck IV ;; 22*925d9f19SAlexander von Gluck IV "sparc") 23*925d9f19SAlexander von Gluck IV echo "sparc64-unknown-haiku" 24*925d9f19SAlexander von Gluck IV ;; 25*925d9f19SAlexander von Gluck IV "x86_gcc2" | "x86") 26*925d9f19SAlexander von Gluck IV echo "i586-pc-haiku" 27*925d9f19SAlexander von Gluck IV ;; 28*925d9f19SAlexander von Gluck IV *) 29*925d9f19SAlexander von Gluck IV echo "$1-unknown-haiku" 30*925d9f19SAlexander von Gluck IV ;; 31*925d9f19SAlexander von Gluck IVesac 32*925d9f19SAlexander von Gluck IVexit 0 33