#!/bin/sh # Shave and a Haircut # (c) 2019 Epic Games # US Patent 6720962 # # Prints the two-digit tag used to name the build products for the given # version of V-Ray. # # For example, V-Ray 4.00.00 and 4.20.10 are compatible and will thus both # generate '40' tagged build products. # if [ "$1" == "" ]; then echo "Usage: $0 " >&2 exit 1 fi fullVersion=$1 if [ "${fullVersion/.*/}" == "4" ]; then tag="40" elif [ "${fullVersion/%?.??/}" == "3.6" ]; then tag="36" else tag="" fi echo ${tag}