src/make_tmat.sh: initial commit