#!/bin/bash
# Generated as: source _generate.in.sh > generate.sh

rm -r generated/* 2>/dev/null
mkdir generated 2>/dev/null
set -e
>&2 echo
>&2 echo === Generate saas_refresh_3day_production_base_multilang
mkdir generated/saas_refresh_3day_production_base_multilang
cp -v environment generated/saas_refresh_3day_production_base_multilang/environment
cp -v basesearch-refresh generated/saas_refresh_3day_production_base_multilang/basesearch-refresh
cp -v OxygenOptions.cfg generated/saas_refresh_3day_production_base_multilang/OxygenOptions.cfg
cp -v rtyserver.conf-common generated/saas_refresh_3day_production_base_multilang/rtyserver.conf-common
[[ -f OxygenOptions.cfg ]] && patch OxygenOptions.cfg -i OxygenOptionsRt.cfg.patch -o OxygenOptionsRt.cfg
[[ -f OxygenOptionsRt.cfg ]] && cp -v OxygenOptionsRt.cfg generated/saas_refresh_3day_production_base_multilang/OxygenOptionsRt.cfg
>&2 echo
>&2 echo === Generate saas_refresh_3day_base_frozen
mkdir generated/saas_refresh_3day_base_frozen
patch environment -i environment-frozen.patch -o environment-frozen
cp -v environment-frozen generated/saas_refresh_3day_base_frozen/environment-frozen
./config_patcher patch --ignore-prefix basesearch-refresh basesearch-refresh-frozen_patch.json basesearch-refresh-frozen
cp -v basesearch-refresh-frozen generated/saas_refresh_3day_base_frozen/basesearch-refresh-frozen
patch OxygenOptions.cfg -i OxygenOptions.cfg-frozen.patch -o OxygenOptions.cfg-frozen
cp -v OxygenOptions.cfg-frozen generated/saas_refresh_3day_base_frozen/OxygenOptions.cfg-frozen
./config_patcher patch --ignore-prefix rtyserver.conf-common rtyserver.conf-frozen_patch.json rtyserver.conf-frozen
cp -v rtyserver.conf-frozen generated/saas_refresh_3day_base_frozen/rtyserver.conf-frozen
[[ -f OxygenOptions.cfg-frozen ]] && patch OxygenOptions.cfg-frozen -i OxygenOptionsRt.cfg.patch -o OxygenOptionsRt.cfg-frozen
[[ -f OxygenOptionsRt.cfg-frozen ]] && cp -v OxygenOptionsRt.cfg-frozen generated/saas_refresh_3day_base_frozen/OxygenOptionsRt.cfg-frozen
>&2 echo
>&2 echo === Generate saas_refresh_3day_hamster_base
mkdir generated/saas_refresh_3day_hamster_base
patch environment -i environment-isolated.patch -o environment-isolated
cp -v environment-isolated generated/saas_refresh_3day_hamster_base/environment-isolated
./config_patcher patch --ignore-prefix basesearch-refresh basesearch-refresh-isolated_patch.json basesearch-refresh-isolated
cp -v basesearch-refresh-isolated generated/saas_refresh_3day_hamster_base/basesearch-refresh-isolated
patch OxygenOptions.cfg -i OxygenOptions.cfg-isolated.patch -o OxygenOptions.cfg-isolated
cp -v OxygenOptions.cfg-isolated generated/saas_refresh_3day_hamster_base/OxygenOptions.cfg-isolated
./config_patcher patch --ignore-prefix rtyserver.conf-common rtyserver.conf-isolated_patch.json rtyserver.conf-isolated
cp -v rtyserver.conf-isolated generated/saas_refresh_3day_hamster_base/rtyserver.conf-isolated
[[ -f OxygenOptions.cfg-isolated ]] && patch OxygenOptions.cfg-isolated -i OxygenOptionsRt.cfg.patch -o OxygenOptionsRt.cfg-isolated
[[ -f OxygenOptionsRt.cfg-isolated ]] && cp -v OxygenOptionsRt.cfg-isolated generated/saas_refresh_3day_hamster_base/OxygenOptionsRt.cfg-isolated
>&2 echo
>&2 echo === Generate saas_refresh_3day_hamster_base_isolated
mkdir generated/saas_refresh_3day_hamster_base_isolated
patch environment -i environment-isolated.patch -o environment-isolated
cp -v environment-isolated generated/saas_refresh_3day_hamster_base_isolated/environment-isolated
./config_patcher patch --ignore-prefix basesearch-refresh basesearch-refresh-isolated_patch.json basesearch-refresh-isolated
cp -v basesearch-refresh-isolated generated/saas_refresh_3day_hamster_base_isolated/basesearch-refresh-isolated
patch OxygenOptions.cfg -i OxygenOptions.cfg-isolated.patch -o OxygenOptions.cfg-isolated
cp -v OxygenOptions.cfg-isolated generated/saas_refresh_3day_hamster_base_isolated/OxygenOptions.cfg-isolated
./config_patcher patch --ignore-prefix rtyserver.conf-common rtyserver.conf-isolated_patch.json rtyserver.conf-isolated
cp -v rtyserver.conf-isolated generated/saas_refresh_3day_hamster_base_isolated/rtyserver.conf-isolated
[[ -f OxygenOptions.cfg-isolated ]] && patch OxygenOptions.cfg-isolated -i OxygenOptionsRt.cfg.patch -o OxygenOptionsRt.cfg-isolated
[[ -f OxygenOptionsRt.cfg-isolated ]] && cp -v OxygenOptionsRt.cfg-isolated generated/saas_refresh_3day_hamster_base_isolated/OxygenOptionsRt.cfg-isolated
>&2 echo
>&2 echo === Generate saas_refresh_staging_mercury_base
mkdir generated/saas_refresh_staging_mercury_base
patch environment -i environment-staging_mercury.patch -o environment-staging_mercury
cp -v environment-staging_mercury generated/saas_refresh_staging_mercury_base/environment-staging_mercury
./config_patcher patch --ignore-prefix basesearch-refresh basesearch-refresh-staging_mercury_patch.json basesearch-refresh-staging_mercury
cp -v basesearch-refresh-staging_mercury generated/saas_refresh_staging_mercury_base/basesearch-refresh-staging_mercury
patch OxygenOptions.cfg -i OxygenOptions.cfg-staging_mercury.patch -o OxygenOptions.cfg-staging_mercury
cp -v OxygenOptions.cfg-staging_mercury generated/saas_refresh_staging_mercury_base/OxygenOptions.cfg-staging_mercury
./config_patcher patch --ignore-prefix rtyserver.conf-common rtyserver.conf-staging_mercury_patch.json rtyserver.conf-staging_mercury
cp -v rtyserver.conf-staging_mercury generated/saas_refresh_staging_mercury_base/rtyserver.conf-staging_mercury
[[ -f OxygenOptions.cfg-staging_mercury ]] && patch OxygenOptions.cfg-staging_mercury -i OxygenOptionsRt.cfg.patch -o OxygenOptionsRt.cfg-staging_mercury
[[ -f OxygenOptionsRt.cfg-staging_mercury ]] && cp -v OxygenOptionsRt.cfg-staging_mercury generated/saas_refresh_staging_mercury_base/OxygenOptionsRt.cfg-staging_mercury
>&2 echo
>&2 echo === Generate saas_refresh_quick2_experiment_base
mkdir generated/saas_refresh_quick2_experiment_base
cp -v environment generated/saas_refresh_quick2_experiment_base/environment
cp -v basesearch-refresh generated/saas_refresh_quick2_experiment_base/basesearch-refresh
cp -v OxygenOptions.cfg generated/saas_refresh_quick2_experiment_base/OxygenOptions.cfg
cp -v rtyserver.conf-common generated/saas_refresh_quick2_experiment_base/rtyserver.conf-common
[[ -f OxygenOptions.cfg ]] && patch OxygenOptions.cfg -i OxygenOptionsRt.cfg.patch -o OxygenOptionsRt.cfg
[[ -f OxygenOptionsRt.cfg ]] && cp -v OxygenOptionsRt.cfg generated/saas_refresh_quick2_experiment_base/OxygenOptionsRt.cfg
>&2 echo
>&2 echo === Generate saas_news_quick_production_base
mkdir generated/saas_news_quick_production_base
patch environment -i environment-news_quick.patch -o environment-news_quick
cp -v environment-news_quick generated/saas_news_quick_production_base/environment-news_quick
./config_patcher patch --ignore-prefix basesearch-refresh basesearch-refresh-news_quick_patch.json basesearch-refresh-news_quick
cp -v basesearch-refresh-news_quick generated/saas_news_quick_production_base/basesearch-refresh-news_quick
patch OxygenOptions.cfg -i OxygenOptions.cfg-news_quick.patch -o OxygenOptions.cfg-news_quick
cp -v OxygenOptions.cfg-news_quick generated/saas_news_quick_production_base/OxygenOptions.cfg-news_quick
./config_patcher patch --ignore-prefix rtyserver.conf-common rtyserver.conf-news_quick_patch.json rtyserver.conf-news_quick
cp -v rtyserver.conf-news_quick generated/saas_news_quick_production_base/rtyserver.conf-news_quick
[[ -f OxygenOptions.cfg-news_quick ]] && patch OxygenOptions.cfg-news_quick -i OxygenOptionsRt.cfg.patch -o OxygenOptionsRt.cfg-news_quick
[[ -f OxygenOptionsRt.cfg-news_quick ]] && cp -v OxygenOptionsRt.cfg-news_quick generated/saas_news_quick_production_base/OxygenOptionsRt.cfg-news_quick
>&2 echo
>&2 echo === Generate saas_news_quick_hamster_base
mkdir generated/saas_news_quick_hamster_base
patch environment -i environment-news_quick_hamster.patch -o environment-news_quick_hamster
cp -v environment-news_quick_hamster generated/saas_news_quick_hamster_base/environment-news_quick_hamster
./config_patcher patch --ignore-prefix basesearch-refresh basesearch-refresh-news_quick_hamster_patch.json basesearch-refresh-news_quick_hamster
cp -v basesearch-refresh-news_quick_hamster generated/saas_news_quick_hamster_base/basesearch-refresh-news_quick_hamster
patch OxygenOptions.cfg -i OxygenOptions.cfg-news_quick_hamster.patch -o OxygenOptions.cfg-news_quick_hamster
cp -v OxygenOptions.cfg-news_quick_hamster generated/saas_news_quick_hamster_base/OxygenOptions.cfg-news_quick_hamster
./config_patcher patch --ignore-prefix rtyserver.conf-common rtyserver.conf-news_quick_hamster_patch.json rtyserver.conf-news_quick_hamster
cp -v rtyserver.conf-news_quick_hamster generated/saas_news_quick_hamster_base/rtyserver.conf-news_quick_hamster
[[ -f OxygenOptions.cfg-news_quick_hamster ]] && patch OxygenOptions.cfg-news_quick_hamster -i OxygenOptionsRt.cfg.patch -o OxygenOptionsRt.cfg-news_quick_hamster
[[ -f OxygenOptionsRt.cfg-news_quick_hamster ]] && cp -v OxygenOptionsRt.cfg-news_quick_hamster generated/saas_news_quick_hamster_base/OxygenOptionsRt.cfg-news_quick_hamster
>&2 echo
>&2 echo === Generate saas_cloud_news_quick_prestable
mkdir generated/saas_cloud_news_quick_prestable
patch environment -i environment-news_quick_prestable.patch -o environment-news_quick_prestable
cp -v environment-news_quick_prestable generated/saas_cloud_news_quick_prestable/environment-news_quick_prestable
./config_patcher patch --ignore-prefix basesearch-refresh basesearch-refresh-news_quick_prestable_patch.json basesearch-refresh-news_quick_prestable
cp -v basesearch-refresh-news_quick_prestable generated/saas_cloud_news_quick_prestable/basesearch-refresh-news_quick_prestable
patch OxygenOptions.cfg -i OxygenOptions.cfg-news_quick_prestable.patch -o OxygenOptions.cfg-news_quick_prestable
cp -v OxygenOptions.cfg-news_quick_prestable generated/saas_cloud_news_quick_prestable/OxygenOptions.cfg-news_quick_prestable
./config_patcher patch --ignore-prefix rtyserver.conf-common rtyserver.conf-news_quick_prestable_patch.json rtyserver.conf-news_quick_prestable
cp -v rtyserver.conf-news_quick_prestable generated/saas_cloud_news_quick_prestable/rtyserver.conf-news_quick_prestable
[[ -f OxygenOptions.cfg-news_quick_prestable ]] && patch OxygenOptions.cfg-news_quick_prestable -i OxygenOptionsRt.cfg.patch -o OxygenOptionsRt.cfg-news_quick_prestable
[[ -f OxygenOptionsRt.cfg-news_quick_prestable ]] && cp -v OxygenOptionsRt.cfg-news_quick_prestable generated/saas_cloud_news_quick_prestable/OxygenOptionsRt.cfg-news_quick_prestable
>&2 echo
>&2 echo === Generate saas_cloud_news_quick_frozen
mkdir generated/saas_cloud_news_quick_frozen
patch environment -i environment-news_quick_frozen.patch -o environment-news_quick_frozen
cp -v environment-news_quick_frozen generated/saas_cloud_news_quick_frozen/environment-news_quick_frozen
./config_patcher patch --ignore-prefix basesearch-refresh basesearch-refresh-news_quick_frozen_patch.json basesearch-refresh-news_quick_frozen
cp -v basesearch-refresh-news_quick_frozen generated/saas_cloud_news_quick_frozen/basesearch-refresh-news_quick_frozen
patch OxygenOptions.cfg -i OxygenOptions.cfg-news_quick_frozen.patch -o OxygenOptions.cfg-news_quick_frozen
cp -v OxygenOptions.cfg-news_quick_frozen generated/saas_cloud_news_quick_frozen/OxygenOptions.cfg-news_quick_frozen
./config_patcher patch --ignore-prefix rtyserver.conf-common rtyserver.conf-news_quick_frozen_patch.json rtyserver.conf-news_quick_frozen
cp -v rtyserver.conf-news_quick_frozen generated/saas_cloud_news_quick_frozen/rtyserver.conf-news_quick_frozen
[[ -f OxygenOptions.cfg-news_quick_frozen ]] && patch OxygenOptions.cfg-news_quick_frozen -i OxygenOptionsRt.cfg.patch -o OxygenOptionsRt.cfg-news_quick_frozen
[[ -f OxygenOptionsRt.cfg-news_quick_frozen ]] && cp -v OxygenOptionsRt.cfg-news_quick_frozen generated/saas_cloud_news_quick_frozen/OxygenOptionsRt.cfg-news_quick_frozen
