summaryrefslogtreecommitdiff
path: root/mysql-client/README-DEV
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-client/README-DEV')
-rw-r--r--mysql-client/README-DEV16
1 files changed, 16 insertions, 0 deletions
diff --git a/mysql-client/README-DEV b/mysql-client/README-DEV
new file mode 100644
index 0000000..7c978bf
--- /dev/null
+++ b/mysql-client/README-DEV
@@ -0,0 +1,16 @@
+This document describes how the mysql utility was packaged for build2. In
+particular, this understanding will be useful when upgrading to a new upstream
+version. See ../README-DEV for general notes on MySQL packaging.
+
+Symlink the required upstream components:
+
+$ ln -s ../upstream/LICENSE
+
+$ mkdir -p mysql/{client,downstream}
+$ ln -s ../../../upstream/client/{{mysql,readline,completion_hash,pattern_matcher}.cc,{client_priv,my_readline,pattern_matcher,completion_hash}.h} mysql/client
+$ ln -s ../../libmysqlclient/mysql/{my_config,mysqld_error}.h mysql/
+$ ln -s ../../upstream/libbinlogevents mysql/
+$ ln -s ../../libmysqlclient/mysql/mysql mysql/include
+
+Create mysql/downstream/mysql_version.h, so it can be found when included as
+"mysql_version.h" (which, for example, mysql.h does).