Dependence ofTc on doping in oxygen-hole induced Jahn-Teller mediated superconductors