未验证 提交 1008ff0a 编写于 作者: C cxd 提交者: GitHub

feat(stonedb): update the copyright date time (#321) (#324)

上级 d72812fa
......@@ -88,16 +88,16 @@ void Mysql::Tools::Base::Options::Help_options::print_usage()
if (first_year_str == COPYRIGHT_NOTICE_CURRENT_YEAR)
{
copyright= ORACLE_WELCOME_COPYRIGHT_NOTICE(COPYRIGHT_NOTICE_CURRENT_YEAR);
copyright= ORACLE_WELCOME_COPYRIGHT_NOTICE(COPYRIGHT_NOTICE_STONEDB_BEGIN_YEAR);
}
else
{
#define FIRST_YEAR_CONSTANT "$first_year$"
string first_year_constant_str= FIRST_YEAR_CONSTANT;
copyright= ORACLE_WELCOME_COPYRIGHT_NOTICE(FIRST_YEAR_CONSTANT);
copyright= copyright.replace(copyright.find(first_year_constant_str),
first_year_constant_str.length(), first_year_str);
copyright= ORACLE_WELCOME_COPYRIGHT_NOTICE(COPYRIGHT_NOTICE_STONEDB_BEGIN_YEAR);
/* copyright= copyright.replace(copyright.find(first_year_constant_str),
first_year_constant_str.length(), first_year_str);*/
}
printf("%s\n%s\n",
......
......@@ -246,7 +246,7 @@ static void print_version(void)
static void usage(void)
{
print_version();
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2000"));
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE(COPYRIGHT_NOTICE_STONEDB_BEGIN_YEAR));
puts("This program can be used to CHECK (-c, -m, -C), REPAIR (-r), ANALYZE (-a),");
puts("or OPTIMIZE (-o) tables. Some of the options (like -e or -q) can be");
puts("used at the same time. Not all options are supported by all storage engines.");
......
......@@ -1363,7 +1363,7 @@ int main(int argc,char *argv[])
mysql_thread_id(&mysql), server_version_string(&mysql));
put_info((char*) glob_buffer.ptr(),INFO_INFO);
put_info(ORACLE_WELCOME_COPYRIGHT_NOTICE("2000"), INFO_INFO);
put_info(ORACLE_WELCOME_COPYRIGHT_NOTICE(COPYRIGHT_NOTICE_STONEDB_BEGIN_YEAR), INFO_INFO);
if (!status.batch)
{
......@@ -1925,7 +1925,7 @@ static void usage(int version)
if (version)
return;
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2000"));
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE(COPYRIGHT_NOTICE_STONEDB_BEGIN_YEAR));
printf("Usage: %s [OPTIONS] [database]\n", my_progname);
/*
Turn default for zombies off so that the help on how to
......
......@@ -1470,7 +1470,7 @@ static void my_perror(const char *msg)
static void usage_command(int command)
{
print_version();
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2012"));
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE(COPYRIGHT_NOTICE_STONEDB_BEGIN_YEAR));
puts("MySQL Configuration Utility.");
printf("\nDescription: %s\n", command_data[command].description);
printf("Usage: %s [program options] [%s [command options]]\n",
......@@ -1483,7 +1483,7 @@ static void usage_command(int command)
static void usage_program(void)
{
print_version();
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2012"));
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE(COPYRIGHT_NOTICE_STONEDB_BEGIN_YEAR));
puts("MySQL Configuration Utility.");
printf("Usage: %s [program options] [command [command options]]\n",
my_progname);
......
......@@ -329,7 +329,7 @@ void print_version(const string &p)
void usage(const string &p)
{
print_version(p);
cout << ORACLE_WELCOME_COPYRIGHT_NOTICE("2015") << endl
cout << ORACLE_WELCOME_COPYRIGHT_NOTICE(COPYRIGHT_NOTICE_STONEDB_BEGIN_YEAR) << endl
<< "MySQL Database Deployment Utility." << endl
<< "Usage: "
<< p
......
......@@ -102,7 +102,7 @@ static void print_version(void)
static void usage()
{
print_version();
fprintf(stdout, ORACLE_WELCOME_COPYRIGHT_NOTICE("2013"));
fprintf(stdout, ORACLE_WELCOME_COPYRIGHT_NOTICE(COPYRIGHT_NOTICE_STONEDB_BEGIN_YEAR));
fprintf(stdout, "\nMySQL Configuration Utility.");
fprintf(stdout, "Usage: %s [OPTIONS]\n", my_progname);
my_print_help(my_connection_options);
......
......@@ -424,7 +424,7 @@ static
void usage(void)
{
print_version();
cout << (ORACLE_WELCOME_COPYRIGHT_NOTICE("2015")) << endl
cout << (ORACLE_WELCOME_COPYRIGHT_NOTICE(COPYRIGHT_NOTICE_STONEDB_BEGIN_YEAR)) << endl
<< "MySQL SSL Certificate and RSA Key Generation Utility" << endl
<< "Usage : " << my_progname << " [OPTIONS]" << endl;
......
......@@ -785,7 +785,7 @@ static int execute_commands(MYSQL *mysql,int argc, char **argv)
case ADMIN_VER:
new_line=1;
print_version();
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2000"));
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE(COPYRIGHT_NOTICE_STONEDB_BEGIN_YEAR));
printf("Server version\t\t%s\n", mysql_get_server_info(mysql));
printf("Protocol version\t%d\n", mysql_get_proto_info(mysql));
printf("Connection\t\t%s\n",mysql_get_host_info(mysql));
......@@ -1279,7 +1279,7 @@ static void print_version(void)
static void usage(void)
{
print_version();
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2000"));
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE(COPYRIGHT_NOTICE_STONEDB_BEGIN_YEAR));
puts("Administration program for the mysqld daemon.");
printf("Usage: %s [OPTIONS] command command....\n", my_progname);
/*
......
......@@ -2070,7 +2070,7 @@ static void print_version()
static void usage()
{
print_version();
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2000"));
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE(COPYRIGHT_NOTICE_STONEDB_BEGIN_YEAR));
printf("\
Dumps a MySQL binary log in a format usable for viewing or for piping to\n\
the mysql command line client.\n\n");
......
......@@ -666,7 +666,7 @@ static void usage(void)
{
struct my_option *optp;
print_version();
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2000"));
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE(COPYRIGHT_NOTICE_STONEDB_BEGIN_YEAR));
puts("Dumping structure and contents of MySQL databases and tables.");
short_usage_sub();
#if defined(STONEDB)
......
......@@ -225,7 +225,7 @@ static void usage(void)
{
struct my_option *optp;
print_version();
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2000"));
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE(COPYRIGHT_NOTICE_STONEDB_BEGIN_YEAR));
printf("\
Loads tables from text files in various formats. The base name of the\n\
text file must be the name of the table that should be used.\n\
......
......@@ -304,7 +304,7 @@ static void usage(void)
{
struct my_option *optp;
print_version();
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2000"));
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE(COPYRIGHT_NOTICE_STONEDB_BEGIN_YEAR));
puts("Shows the structure of a MySQL database (databases, tables, and columns).\n");
printf("Usage: %s [OPTIONS] [database [table [column]]]\n",my_progname);
puts("\n\
......
......@@ -741,7 +741,7 @@ static void usage(void)
{
struct my_option *optp;
print_version();
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2005"));
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE(COPYRIGHT_NOTICE_STONEDB_BEGIN_YEAR));
puts("Run a query multiple times against the server.\n");
printf("Usage: %s [OPTIONS]\n",my_progname);
print_defaults("my",load_default_groups);
......
......@@ -7200,7 +7200,7 @@ void print_version(void)
void usage()
{
print_version();
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2000"));
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE(COPYRIGHT_NOTICE_STONEDB_BEGIN_YEAR));
printf("Runs a test against the mysql server and compares output with a results file.\n\n");
printf("Usage: %s [OPTIONS] [database] < test_file\n", my_progname);
my_print_help(my_long_options);
......
......@@ -982,7 +982,7 @@ static void print_version(void)
static void usage(void)
{
print_version();
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2000"));
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE(COPYRIGHT_NOTICE_STONEDB_BEGIN_YEAR));
printf("InnoDB offline file checksum utility.\n");
printf("Usage: %s [-c] [-s <start page>] [-e <end page>] "
"[-p <page>] [-v] [-a <allow mismatches>] [-n] "
......
......@@ -32,7 +32,7 @@ static void usage()
{
printf("%s Ver 1.7 for %s at %s\n","lz4_decompress",SYSTEM_TYPE,
MACHINE_TYPE);
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2015"));
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE(COPYRIGHT_NOTICE_STONEDB_BEGIN_YEAR));
puts("Decompress data compressed by mysqlpump using lz4 compression "
"algorithm by reading from input file and writing uncompressed "
"data to output file");
......
......@@ -115,7 +115,7 @@ static void usage(my_bool version)
MACHINE_TYPE);
if (version)
return;
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2000"));
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE(COPYRIGHT_NOTICE_STONEDB_BEGIN_YEAR));
puts("Prints all arguments that is give to some program using the default files");
printf("Usage: %s [OPTIONS] groups\n", my_progname);
my_print_help(my_long_options);
......
......@@ -91,7 +91,7 @@ static void print_version(void)
static void usage(void)
{
print_version();
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2000"));
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE(COPYRIGHT_NOTICE_STONEDB_BEGIN_YEAR));
printf("Print a description for a system error code or a MySQL error code.\n");
printf("If you want to get the error for a negative error code, you should use\n-- before the first error code to tell perror that there was no more options.\n\n");
printf("Usage: %s [OPTIONS] [ERRORCODE [ERRORCODE...]]\n",my_progname);
......
......@@ -88,7 +88,7 @@ static void print_version(void)
static void usage()
{
print_version();
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2001"));
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE(COPYRIGHT_NOTICE_STONEDB_BEGIN_YEAR));
printf("Resolve numeric stack strace dump into symbols.\n\n");
printf("Usage: %s [OPTIONS] symbols-file [numeric-dump-file]\n",
my_progname);
......
......@@ -23,6 +23,7 @@
#ifndef _welcome_copyright_notice_h_
#define _welcome_copyright_notice_h_
#define COPYRIGHT_NOTICE_STONEDB_BEGIN_YEAR "2021"
#define COPYRIGHT_NOTICE_CURRENT_YEAR "2022"
/*
......
......@@ -354,7 +354,7 @@ int main(int argc,char **argv)
printf("/*\n\n Do " "not " "edit " "this " "file " "directly!\n\n*/\n");
puts("/*");
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2000"));
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE(COPYRIGHT_NOTICE_STONEDB_BEGIN_YEAR));
puts("*/");
/* Broken up to indicate that it's not advice to you, gentle reader. */
......
......@@ -387,7 +387,7 @@ void print_tokens()
int main(int argc,char **argv)
{
puts("/*");
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2011"));
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE(COPYRIGHT_NOTICE_STONEDB_BEGIN_YEAR));
puts("*/");
printf("/*\n");
......
......@@ -7113,7 +7113,7 @@ static void usage(void)
if (!default_collation_name)
default_collation_name= (char*) default_charset_info->name;
print_version();
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2000"));
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE(COPYRIGHT_NOTICE_STONEDB_BEGIN_YEAR));
puts("Starts the MySQL database server.\n");
printf("Usage: %s [OPTIONS]\n", my_progname);
if (!opt_verbose)
......
......@@ -395,7 +395,7 @@ static struct my_option my_long_options[] =
static void usage(void)
{
print_version();
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2007"));
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE(COPYRIGHT_NOTICE_STONEDB_BEGIN_YEAR));
puts("Read and modify Archive files directly\n");
printf("Usage: %s [OPTIONS] file_to_be_looked_at [file_for_backup]\n", my_progname);
......
......@@ -328,7 +328,7 @@ static void print_version(void)
static void usage(void)
{
print_version();
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2002"));
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE(COPYRIGHT_NOTICE_STONEDB_BEGIN_YEAR));
puts("Pack a MyISAM-table to take much less space.");
puts("Keys are not updated, you must run myisamchk -rq on the datafile");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册