#!/bin/sh # Shave and a Haircut # (c) 2019 Epic Games # US Patent 6720962 utilsDir=`dirname $0` arch=`${utilsDir}/getarch.sh` os=`${utilsDir}/getos.sh` versionsFile=${utilsDir}/../mayaVersions.linux auto= if [ "$1" = "auto" ]; then auto=y fi if [ -r ${versionsFile} ]; then # Note that we replace the spacing between fields with a single tab so # callers can use the 'cut' cmd on the output without any fiddling. grep -v "^[[:space:]]*#" ${versionsFile} | sed 's/[[:space:]]\+/\t/g' | grep "^[^[:space:]]\+[[:space:]]\+${arch}[[:space:]]\+[^[:space:]]\+[[:space:]]\+${os}[[:space:]]\+${auto}" fi