In a real emergency, you can use a hacksaw to accomplish the same thing. Pump the brake pedal a few times to flush any metal particles out of the line. Using the old piece of brake line as a template, cut and bend a suitable replacement. The end with the bubble flare and fitting will screw directly into the wheel cylinder, as seen to the left. A compression fitting is used to splice the line together, seen here in the photo on the right.
Compression fittings are a handy way to join cut ends of lines together.
In a perfect world, we would either buy the pre-bent dealer part, or make a replacement line ourselves, including the bubble flare on each end. The components of the fitting can be seen in the photo to the left. Compression nuts, followed by small brass sleeves are slipped over each end of the line. These will fit into the compression union, shown in the center. As each of the compression nuts are tightened on the union, the brass sleeves are forced into tapered recesses inside both the union and nuts.