1 Update to new upstream bzr snapshot:
3 Don't use 'bzr diff', it will not put renames in the diff in a way
4 that patch understands.
6 bzr -Ossl.cert_reqs=none branch lp:mariadb-native-client
7 mv mariadb-native-client mariadb-native-client.trunk
8 cp -R mariadb-native-client.trunk mariadb-native-client.release
9 cd mariadb-native-client.release
10 bzr revert -r mariadb-native-client-1.0.0
12 diff -x .bzr -u --recursive -N mariadb-native-client.release/ mariadb-native-client.trunk/ > /path/to/libreoffice_tree/libmariadb/mariadb-trunk-NNN.patch
13 sed -i -e 's@^\([+-]\{3\} \)mariadb-native-client.\(trunk\|release\)/@\1mariadb/@' /path/to/libreoffice_tree/libmariadb/mariadb-trunk-NNN.patch
14 dos2unix -f /path/to/libreoffice_tree/libmariadb/mariadb-trunk-NNN.patch