Package magma :: Package magma :: Module create_phex_release_magmas
[hide private]
[frames] | no frames]

Module create_phex_release_magmas

source code

Create the magma lists for a Phex release via the commandline.

Usage: create_phex_release_magmas.py <windows-release-path> <osx-release-path> <gnu/linux-file-release-path>

Examples:

Plans:

Ideas:

Functions [hide private]
 
create_phex_magmas(files)
Create the magma files for all release types.
source code
 
create_phex_magma(path, release_type='win')
Create a magma list for a single release_type
source code
 
write_magma(sha1, filename, release_type='other')
Create the magma file for a specific release type.
source code
 
write_to_file(path, data)
Write the data to a file at the path.
source code
 
log(data, log_type='console')
Log some data.
source code
 
usage()
Usage instructions.
source code
 
_test()
Do all doctests.
source code
Variables [hide private]
  SOURCEFORGE_MIRRORS = ['http://heanet.dl.sourceforge.net/sourc...
A list of SF.net servers.
  PHEX_MAGMA_FOOTER = '\n\n# Phex: Copyright 2006 The Phex Team ...
The footer line for the phex update magma list.
Function Details [hide private]

write_magma(sha1, filename, release_type='other')

source code 

Create the magma file for a specific release type.

Parameters:
  • release_type (String) - The target platform: win, osx or other

usage()

source code 

Usage instructions.

Returns:
Usage instructions (String).

_test()

source code 

Do all doctests.

Returns:
None

Variables Details [hide private]

SOURCEFORGE_MIRRORS

A list of SF.net servers. The name of the project and the name of the file get appended at the end (MIRROR + project/ + filename).

Value:
['http://heanet.dl.sourceforge.net/sourceforge/',
 'http://internap.dl.sourceforge.net/sourceforge/',
 'http://mesh.dl.sourceforge.net/sourceforge/',
 'http://puzzle.dl.sourceforge.net/sourceforge/',
 'http://easynews.dl.sourceforge.net/sourceforge/',
 'http://osdn.dl.sourceforge.net/sourceforge/',
 'http://keihanna.dl.sourceforge.net/sourceforge/',
 'http://optusnet.dl.sourceforge.net/sourceforge/',
...

PHEX_MAGMA_FOOTER

The footer line for the phex update magma list.

Value:
'''

# Phex: Copyright 2006 The Phex Team - GPL-2 or later.
# Link: http://phex.org
# Developer-link: http://sf.net/projects/phex

'''