Environment Variables In Config

Is it possible to inject values into the config files via environment variables such as setting the worldserver database information like so:

CharacterDatabaseInfo = ${CHAR_DATABASE}

Not natively, bit how much customization do you want to do? I used perl templating quick to modify conf.dist into conf on compile. It would be pretty easy to sed/awk some minor changes.