How To Transition Your Company To Open Source

How can a business turn a profit while giving away its most valuable asset—source code—for free?