37 lines
797 B
Bash
Executable File
37 lines
797 B
Bash
Executable File
#!/bin/bash
|
|
|
|
#
|
|
# $1 - output filename
|
|
#
|
|
|
|
if [[ $# -eq 0 ]]; then
|
|
res_file="mcc_astrom_iers_default.h"
|
|
else
|
|
res_file=$1
|
|
fi
|
|
|
|
|
|
echo -e '#pragma once\n
|
|
|
|
#include <string>\n
|
|
|
|
namespace mcc::astrom::iers::defaults\n
|
|
{
|
|
|
|
// https://hpiers.obspm.fr/iers/bul/bulc/Leap_Second.dat\n
|
|
static std::string MCC_DEFAULT_LEAP_SECONDS_FILE = R"--(\n' > $res_file
|
|
|
|
wget --quiet https://hpiers.obspm.fr/iers/bul/bulc/Leap_Second.dat -O - >> $res_file
|
|
|
|
echo -e ')--";\n\n' >> $res_file
|
|
|
|
echo -e '// https://datacenter.iers.org/data/latestVersion/bulletinA.txt\n
|
|
static std::string MCC_DEFAULT_IERS_BULLETIN_A_FILE = R"--(\n' >> $res_file
|
|
|
|
wget --quiet https://datacenter.iers.org/data/latestVersion/bulletinA.txt -O - >> $res_file
|
|
|
|
echo -e ')--";\n
|
|
|
|
|
|
} // namespace mcc::astrom::iers::defaults\n' >> $res_file
|