00001 """
00002 action for latex doc
00003 """
00004
00005 __copyright__ = """
00006 Copyright 2008 Sean Ross-Ross
00007 """
00008 __license__ = """
00009 This file is part of SLIMpy .
00010
00011 SLIMpy is free software: you can redistribute it and/or modify
00012 it under the terms of the GNU Lesser General Public License as published by
00013 the Free Software Foundation, either version 3 of the License, or
00014 (at your option) any later version.
00015
00016 SLIMpy is distributed in the hope that it will be useful,
00017 but WITHOUT ANY WARRANTY; without even the implied warranty of
00018 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00019 GNU Lesser General Public License for more details.
00020
00021 You should have received a copy of the GNU Lesser General Public License
00022 along with SLIMpy . If not, see <http://www.gnu.org/licenses/>.
00023 """
00024
00025
00026 import pickle
00027 from ListClassesAndMethods import makeList
00028 from SCons.Script import Action
00029
00030 def func_builder(target,source,env):
00031
00032 FORMAT= 'LaTeX'
00033
00034
00035 FileIn = str(source[0])
00036
00037 pickle_file = open(FileIn)
00038 Document = pickle.load( pickle_file )
00039 pickle_file.close()
00040
00041
00042 makeList(Document, str(target[0]), FORMAT)
00043
00044 return
00045
00046 func_builder = Action( func_builder, "Build Latex From Profile [ ${SOURCE.file} --> ${TARGET.file} ]")
00047
00048