Create a homopolymer from residues

I need to create a polymer (homopolymer) from pre-defined residues. For example how to create a polyethylene glycol homopolymer from an endgroup residue CH2-OH and a repeat unit residue CH2-O-CH2.

Also, is it possible to export the created polymer into a pdb format that preserves these residue structure