diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-05-09 13:28:19 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-05-09 13:28:19 +0000 |
commit | c23e01d049cc7aee34e8ac83efeb74c09aa257a2 (patch) | |
tree | 3e18583946ecfce1474bae792f2449be5ad66139 /source3/script | |
parent | fe7f54bc996fee425b57951cb6c167c277a45f4e (diff) | |
download | samba-c23e01d049cc7aee34e8ac83efeb74c09aa257a2.tar.gz samba-c23e01d049cc7aee34e8ac83efeb74c09aa257a2.tar.bz2 samba-c23e01d049cc7aee34e8ac83efeb74c09aa257a2.zip |
the beginnings of a new scheme I've working on to allow an easier
head/tng merge.
It goes something like this:
- headers from tng get copied over one at a time
- the old headers get renamed to *_old.h
- server side code that used the old headers gets a
#define OLD_NTDOMAIN 1
#undef OLD_NTDOMAIN
at the start and end of the code
- mkproto.awk recognises these special defines and does magic stuff so
that each .c file sees the right headers
- we start moving the rpc client libraries from tng to head.
if this goes OK then, in theory, we should be able to move the client
side rpc code from tng to head without disturbing the existing head
server side code. Then when that works we can consider merging the
server side.
it remains to be seen if this scheme will work. So far I've moved
rpc_samr.h and don't seem to have broken anything.
Note this this is still a very delicate operation, as at every step of
the way I want to keep head fully functional. Please don't take part
unless you discuss it with me first.
(This used to be commit f76c037255a6a79d11bec65e863e009a41a4f0fd)
Diffstat (limited to 'source3/script')
-rw-r--r-- | source3/script/mkproto.awk | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/source3/script/mkproto.awk b/source3/script/mkproto.awk index a8c807a10c..0b9c1f784e 100644 --- a/source3/script/mkproto.awk +++ b/source3/script/mkproto.awk @@ -23,10 +23,6 @@ END { print "/*The following definitions come from ",FILENAME," */" print "" current_file=FILENAME -# if (current_file=="ldap.c") { -# print "#ifdef USE_LDAP" -# use_ldap_define = 1; -# } } if (inheader) { if (match($0,"[)][ \t]*$")) { @@ -39,6 +35,20 @@ END { } } +# special handling for code merge of TNG to head +/^#define OLD_NTDOMAIN 1/ { + printf "#if OLD_NTDOMAIN\n" +} +/^#undef OLD_NTDOMAIN/ { + printf "#endif\n" +} +/^#define NEW_NTDOMAIN 1/ { + printf "#if NEW_NTDOMAIN\n" +} +/^#undef NEW_NTDOMAIN/ { + printf "#endif\n" +} + # we handle the loadparm.c fns separately /^FN_LOCAL_BOOL/ { |