summaryrefslogtreecommitdiff
path: root/asciidoc/a2x.py
diff options
context:
space:
mode:
Diffstat (limited to 'asciidoc/a2x.py')
-rw-r--r--asciidoc/a2x.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/asciidoc/a2x.py b/asciidoc/a2x.py
index 5bccbc4..4348f1e 100644
--- a/asciidoc/a2x.py
+++ b/asciidoc/a2x.py
@@ -297,26 +297,6 @@ def find_resources(files, tagname, attrname, filter=None):
return result
-# NOT USED.
-def copy_files(files, src_dir, dst_dir):
- '''
- Copy list of relative file names from src_dir to dst_dir.
- '''
- for filename in files:
- filename = os.path.normpath(filename)
- if os.path.isabs(filename):
- continue
- src = os.path.join(src_dir, filename)
- dst = os.path.join(dst_dir, filename)
- if not os.path.exists(dst):
- if not os.path.isfile(src):
- warning('missing file: %s' % src)
- continue
- dstdir = os.path.dirname(dst)
- shell_makedirs(dstdir)
- shell_copy(src, dst)
-
-
def find_files(path, pattern):
'''
Return list of file names matching pattern in directory path.