Commit 4a9c6514 authored by Jeremy C. Reed's avatar Jeremy C. Reed
Browse files

Use @srcdir@/ when reading files.


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@644 e5f2f494-b856-4b98-b285-d166d9295462
parent dbe66a3c
......@@ -127,8 +127,8 @@ def import_copyright():
if __name__ == "__main__":
copyright_txt = import_copyright()
for dir in list(os.listdir('rdata')):
classdir = 'rdata' + os.sep + dir
for dir in list(os.listdir('@srcdir@/rdata')):
classdir = '@srcdir@/rdata' + os.sep + dir
m = re_typecode.match(dir)
if os.path.isdir(classdir) and (m != None or dir == 'generic'):
if dir == 'generic':
......@@ -191,7 +191,7 @@ RRType::''' + rrtype + '''()
return (rrtype);
}\n
'''
rrtype_header_temp = open('rrtype-placeholder.h', 'r')
rrtype_header_temp = open('@srcdir@/rrtype-placeholder.h', 'r')
rrtype_header_out = open('rrtype.h', 'w')
rrtype_header_out.write(copyright_txt)
for line in rrtype_header_temp.readlines():
......@@ -217,7 +217,7 @@ RRClass::''' + rrclass + '''()
}\n
'''
rrclass_header_temp = open('rrclass-placeholder.h', 'r')
rrclass_header_temp = open('@srcdir@/rrclass-placeholder.h', 'r')
rrclass_header_out = open('rrclass.h', 'w')
rrclass_header_out.write(copyright_txt)
for line in rrclass_header_temp.readlines():
......@@ -252,7 +252,7 @@ RRClass::''' + rrclass + '''()
typeandclassparams += ', RdataFactoryPtr(new RdataFactory<'
typeandclassparams += class_txt + '::' + type_utxt + '>()));\n'
rrparam_temp = open('rrparamregistry-placeholder.cc', 'r')
rrparam_temp = open('@srcdir@/rrparamregistry-placeholder.cc', 'r')
rrparam_out = open('rrparamregistry.cc', 'w')
rrparam_out.write(copyright_txt)
for line in rrparam_temp.readlines():
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment