Učitel’ dodarilsja knig (do togo , čto ostalsja ni s čem).
teacher DO-present-PST.SG-REFL book.GEN.PL (to that.GEN that O-remain-PST.SG-REFL not with what.INS
The teacher presented books until he was left with nothing.