summaryrefslogtreecommitdiff
path: root/source4/build/scons/asn1.py
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-12-13 16:25:07 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:47:18 -0500
commit265b0c6a312d9bc70c651e51a93e26f01b4fff9c (patch)
tree4cbbd52508df610c660703b9a1b7a56074ebe656 /source4/build/scons/asn1.py
parent12354cbe919a0f00ecf648a0878782d0a96a748e (diff)
downloadsamba-265b0c6a312d9bc70c651e51a93e26f01b4fff9c.tar.gz
samba-265b0c6a312d9bc70c651e51a93e26f01b4fff9c.tar.bz2
samba-265b0c6a312d9bc70c651e51a93e26f01b4fff9c.zip
r12208: Remove obsolete scons directory
(This used to be commit e90abfcc7d84d0cae566ecf395dbef4b927de0f9)
Diffstat (limited to 'source4/build/scons/asn1.py')
-rw-r--r--source4/build/scons/asn1.py36
1 files changed, 0 insertions, 36 deletions
diff --git a/source4/build/scons/asn1.py b/source4/build/scons/asn1.py
deleted file mode 100644
index b8b7073151..0000000000
--- a/source4/build/scons/asn1.py
+++ /dev/null
@@ -1,36 +0,0 @@
-"""SCons.Tool.asn1
-
-Tool-specific initialization for ASN1
-
-"""
-
-import SCons.Defaults
-import SCons.Util
-import re
-
-output_re = re.compile(r'^([A-Za-z0-9_-]+)[ \t]*::=', re.M)
-
-def asn1_emitter(target,source,env):
- targets = []
- for s in source:
- node = env.File(s)
- contents = node.get_contents()
- for j in output_re.findall(contents):
- targets.append(str(node.get_dir()) + '/asn1_' + j + '.c')
- targets.append("%s/%s.h" % (str(node.get_dir()), env['ASN1PREFIX']))
- return targets, source
-
-asn1_builder = SCons.Builder.Builder(action='$ASN1COM',
- src_suffix = '.asn1',
- suffix='.c',
- single_source=True,
- emitter = asn1_emitter)
-
-def generate(env):
- env['ASN1'] = './bin/asn1_compile'
- env['ASN1PREFIX'] = 'asn1'
- env['ASN1COM'] = 'cd ${SOURCE.dir} && $ASN1 $ASN1PREFIX ${SOURCE.file}'
- env['BUILDERS']['ASN1'] = asn1_builder
-
-def exists(env):
- return env.Detect('asn1_compile')