#!/bin/sh ## # NAME # mgetarch # # SYNOPSIS # mgetarch [-c] # # VERSION # 1.0.0 # 20070406 ## # Target Platform (for osx4 and above) PROC=$(uname -p) if [ $PROC == "powerpc" ]; then ARCH="ppc" else ARCH="x86" fi CPU=$(machine) foo=$1 if [ $foo ]; then if [ $1 == '-c' ]; then echo $CPU fi else echo $ARCH fi