Skip to content

Commit

Permalink
feat(stonedb): update the copyright date time (stoneatom#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
DandreChen committed Jul 28, 2022
1 parent 007af2c commit 9a4273e
Show file tree
Hide file tree
Showing 25 changed files with 29 additions and 28 deletions.
4 changes: 2 additions & 2 deletions client/base/help_options.cc
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,14 @@ void Mysql::Tools::Base::Options::Help_options::print_usage()

if (first_year_str == COPYRIGHT_NOTICE_CURRENT_YEAR)
{
copyright= ORACLE_WELCOME_COPYRIGHT_NOTICE("2021");
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("2021");
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);
}
Expand Down
2 changes: 1 addition & 1 deletion client/check/mysqlcheck.cc
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ static void print_version(void)
static void usage(void)
{
print_version();
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2021"));
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.");
Expand Down
4 changes: 2 additions & 2 deletions client/mysql.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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("2021"), INFO_INFO);
put_info(ORACLE_WELCOME_COPYRIGHT_NOTICE(COPYRIGHT_NOTICE_STONEDB_BEGIN_YEAR), INFO_INFO);

if (!status.batch)
{
Expand Down Expand Up @@ -1925,7 +1925,7 @@ static void usage(int version)

if (version)
return;
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2021"));
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
Expand Down
4 changes: 2 additions & 2 deletions client/mysql_config_editor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1470,7 +1470,7 @@ static void my_perror(const char *msg)
static void usage_command(int command)
{
print_version();
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2021"));
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",
Expand All @@ -1483,7 +1483,7 @@ static void usage_command(int command)
static void usage_program(void)
{
print_version();
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2021"));
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);
Expand Down
2 changes: 1 addition & 1 deletion client/mysql_install_db.cc
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ void print_version(const string &p)
void usage(const string &p)
{
print_version(p);
cout << ORACLE_WELCOME_COPYRIGHT_NOTICE("2021") << endl
cout << ORACLE_WELCOME_COPYRIGHT_NOTICE(COPYRIGHT_NOTICE_STONEDB_BEGIN_YEAR) << endl
<< "MySQL Database Deployment Utility." << endl
<< "Usage: "
<< p
Expand Down
2 changes: 1 addition & 1 deletion client/mysql_secure_installation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ static void print_version(void)
static void usage()
{
print_version();
fprintf(stdout, ORACLE_WELCOME_COPYRIGHT_NOTICE("2021"));
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);
Expand Down
2 changes: 1 addition & 1 deletion client/mysql_ssl_rsa_setup.cc
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ static
void usage(void)
{
print_version();
cout << (ORACLE_WELCOME_COPYRIGHT_NOTICE("2021")) << 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;

Expand Down
4 changes: 2 additions & 2 deletions client/mysqladmin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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("2021"));
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));
Expand Down Expand Up @@ -1279,7 +1279,7 @@ static void print_version(void)
static void usage(void)
{
print_version();
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2021"));
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);
/*
Expand Down
2 changes: 1 addition & 1 deletion client/mysqlbinlog.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2070,7 +2070,7 @@ static void print_version()
static void usage()
{
print_version();
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2021"));
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");
Expand Down
2 changes: 1 addition & 1 deletion client/mysqldump.c
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ static void usage(void)
{
struct my_option *optp;
print_version();
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2021"));
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)
Expand Down
2 changes: 1 addition & 1 deletion client/mysqlimport.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ static void usage(void)
{
struct my_option *optp;
print_version();
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2021"));
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\
Expand Down
2 changes: 1 addition & 1 deletion client/mysqlshow.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ static void usage(void)
{
struct my_option *optp;
print_version();
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2021"));
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\
Expand Down
2 changes: 1 addition & 1 deletion client/mysqlslap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ static void usage(void)
{
struct my_option *optp;
print_version();
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2021"));
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);
Expand Down
2 changes: 1 addition & 1 deletion client/mysqltest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7200,7 +7200,7 @@ void print_version(void)
void usage()
{
print_version();
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2021"));
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);
Expand Down
2 changes: 1 addition & 1 deletion extra/innochecksum.cc
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,7 @@ static void print_version(void)
static void usage(void)
{
print_version();
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2021"));
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] "
Expand Down
2 changes: 1 addition & 1 deletion extra/lz4_decompress.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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("2021"));
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");
Expand Down
2 changes: 1 addition & 1 deletion extra/my_print_defaults.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ static void usage(my_bool version)
MACHINE_TYPE);
if (version)
return;
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2021"));
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);
Expand Down
2 changes: 1 addition & 1 deletion extra/perror.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ static void print_version(void)
static void usage(void)
{
print_version();
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2021"));
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);
Expand Down
2 changes: 1 addition & 1 deletion extra/resolve_stack_dump.cc
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ static void print_version(void)
static void usage()
{
print_version();
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2021"));
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);
Expand Down
1 change: 1 addition & 0 deletions include/welcome_copyright_notice.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"

/*
Expand Down
2 changes: 1 addition & 1 deletion sql/gen_lex_hash.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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("2021"));
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE(COPYRIGHT_NOTICE_STONEDB_BEGIN_YEAR));
puts("*/");

/* Broken up to indicate that it's not advice to you, gentle reader. */
Expand Down
2 changes: 1 addition & 1 deletion sql/gen_lex_token.cc
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ void print_tokens()
int main(int argc,char **argv)
{
puts("/*");
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2021"));
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE(COPYRIGHT_NOTICE_STONEDB_BEGIN_YEAR));
puts("*/");

printf("/*\n");
Expand Down
2 changes: 1 addition & 1 deletion sql/mysqld.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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("2021"));
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)
Expand Down
2 changes: 1 addition & 1 deletion storage/archive/archive_reader.c
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ static struct my_option my_long_options[] =
static void usage(void)
{
print_version();
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2021"));
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);
Expand Down
2 changes: 1 addition & 1 deletion storage/myisam/myisampack.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ static void print_version(void)
static void usage(void)
{
print_version();
puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2021"));
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");
Expand Down

0 comments on commit 9a4273e

Please sign in to comment.