OR . . . you can rig something to do it like they do at the assembly plant. Fill the master cylinder and then pull a vacuum on the cylinder reservoir. "Air" comes out, fluid goes in. Making the necessary "board" to seal the cylinder with might be an issue, or just put a fitting in an old reservoir cap/seal?
At the plant, they put a fixture on the master cylinder, pull a vacuum. When it stabilizes (indicates "no leaks"), then the fluid goes in. Same with coolant and possibly power steering fluid.
The times I've changed a master cylinder, I'd fill it after it was on the car, with the lines connected. Then I'd "punch" the brake pedal quickly several times. Enough to compress the fluid. On the "decompress" side of things, "air" usually came out. Not much, though. Not too much unlike how the GM Tech II "bleeds" the system, with everything still hooked up, by cycling the system with pressure/non-pressure pulses, except much faster.
Just some thoughts,
CBODY67