if test prefix NONE then my_op_prefix var else my_op_prefix localstate

1
2
3
4
5
if test "$prefix" = "NONE"; then
my_op_prefix="/var"
else
my_op_prefix="$localstatedir"
fi