function wikiGetVersionedTitle($title, $version) { return $title . wikiGetVersionedTitleAppend($version); }
if (simple_prompt("Is this development code?")) { $is_dev = true; $title_append = wikiGetVersionedTitleAppend('Development'); $create_redirects = false; $versions = array('i2ce' => $main_version, 'manage' => $main_version, 'common' => $main_version, 'qualify' => $main_version, 'textlayout' => $main_version); foreach ($versions as $pkg => $vers) { $vers = substr($vers, 0, strrpos($vers, '.')); $versions[$pkg] = $vers . '-dev'; $packages[$pkg]['bzr'] = 'https://launchpad.net/' . $packages[$pkg]['pkg_name']; $packages[$pkg]['bzr_files'] = "http://bazaar.launchpad.net/~intrahealth+informatics/" . $packages[$pkg]['pkg_name'] . "/{$vers}-dev/files/head:"; $packages[$pkg]['bzr_annotate_files'] = "http://bazaar.launchpad.net/~intrahealth+informatics/" . $packages[$pkg]['pkg_name'] . "/{$vers}-dev/annotate/head:"; $packages[$pkg]['bzr_translate'] = "http://translations.launchpad.net/" . $packages[$pkg]['pkg_name'] . "/trunk/+pots/"; } } else { $is_dev = false; $title_append = wikiGetVersionedTitleAppend($main_version); $create_redirects = simple_prompt("Redirect all pages to this version?"); $versions = array('i2ce' => $main_version, 'manage' => $main_version, 'common' => $main_version, 'qualify' => $main_version, 'textlayout' => $main_version); foreach ($versions as $pkg => $vers) { $versions[$pkg] = $vers . '-release'; $packages[$pkg]['bzr'] = 'https://launchpad.net/' . $packages[$pkg]['pkg_name']; $packages[$pkg]['bzr_files'] = "http://bazaar.launchpad.net/~intrahealth+informatics/" . $packages[$pkg]['pkg_name'] . "/{$vers}-release/files/head:"; $packages[$pkg]['bzr_annotate_files'] = "http://bazaar.launchpad.net/~intrahealth+informatics/" . $packages[$pkg]['pkg_name'] . "/{$vers}-release/annotate/head:"; $packages[$pkg]['bzr_translate'] = "http://translations.launchpad.net/" . $packages[$pkg]['pkg_name'] . "/trunk/+pots/"; } } /************************************* * * processing of modules * *******************************************/