One of the effects of the ${parameter:=word}
syntax is that the value of parameter
is substituted. That means your shell is going to try to execute whatever number you get as a command. Just do the assignment in the echo
line and put the export
afterwards.
echo ${SVN_REVISION:="$COMPUTE_REVISION"}
export SVN_REVISION