Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 18 lines (14 sloc) 0.503 kb
3013d6af »
2010-08-18 Add initial files.
1 #!/usr/bin/env python
2 import os
3
4 source_dir = 'src'
5 output_dir = 'ftplugin'
6
7
8 def build():
9 py_src = file(os.path.join(source_dir, 'rst_tables.py')).read()
10 vim_src = file(os.path.join(source_dir, 'base.vim')).read()
11 combined_src = vim_src.replace('__PYTHON_SOURCE__', py_src)
12 if not os.path.exists(output_dir):
13 os.mkdir(output_dir)
14 output_path = os.path.join(output_dir, 'rst_tables.vim')
15 file(output_path, 'w').write(combined_src)
16
17 if __name__ == '__main__':
18 build()
Something went wrong with that request. Please try again.