...
This commit is contained in:
36
mcc/update_iers_data.sh
Executable file
36
mcc/update_iers_data.sh
Executable file
@@ -0,0 +1,36 @@
|
||||
#!/bin/bash
|
||||
|
||||
#
|
||||
# $1 - output filename
|
||||
#
|
||||
|
||||
if [[ $# -eq 0 ]]; then
|
||||
res_file="mcc_ccte_iers_default.h"
|
||||
else
|
||||
res_file=$1
|
||||
fi
|
||||
|
||||
|
||||
echo -e '#pragma once\n
|
||||
|
||||
#include <string>\n
|
||||
|
||||
namespace mcc::ccte::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::ccte::iers::defaults\n' >> $res_file
|
||||
Reference in New Issue
Block a user