to pattern oneself on sb.

Dictionnaire