diff options
author | Walter Bender <walter@sugarlabs.org> | 2013-12-11 20:16:42 (GMT) |
---|---|---|
committer | Walter Bender <walter@sugarlabs.org> | 2013-12-11 20:16:42 (GMT) |
commit | 324fb287d7b540bbb09a58350e2614507ed5c530 (patch) | |
tree | b96a234fe0fa2c0f3a691049a52c1349c48e1098 /olpcgames/buildmanifest.py | |
parent | 445dc0cc5770f9aa62264efb37c35d5964e41c0f (diff) |
massive commit to reconstruct world before commits were lost
Diffstat (limited to 'olpcgames/buildmanifest.py')
-rwxr-xr-x | olpcgames/buildmanifest.py | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/olpcgames/buildmanifest.py b/olpcgames/buildmanifest.py deleted file mode 100755 index 899433b..0000000 --- a/olpcgames/buildmanifest.py +++ /dev/null @@ -1,33 +0,0 @@ -#! /usr/bin/env python -"""Stupid little script to automate generation of MANIFEST and po/POTFILES.in - -Really this should have been handled by using distutils, but oh well, -distutils is a hoary beast and I can't fault people for not wanting to -spend days spelunking around inside it to find the solutions... -""" -from distutils.filelist import FileList -import os - -def fileList( template ): - """Produce a formatted file-list for storing in a file""" - files = FileList() - for line in filter(None,template.splitlines()): - files.process_template_line( line ) - content = '\n'.join( files.files ) - return content - - -def main( ): - """Do the quicky finding of files for our manifests""" - content = fileList( open('MANIFEST.in').read() ) - open( 'MANIFEST','w').write( content ) - - content = fileList( open('POTFILES.in').read() ) - try: - os.makedirs( 'po' ) - except OSError, err: - pass - open( os.path.join('po','POTFILES.in'), 'w').write( content ) - -if __name__ == "__main__": - main() |