00001 """/*!
00002 @page tutpage SLIMpy Tutorials
00003 This page contains the SLIMpy Tutorials found in the ROOT/doc/tut/ directory
00004 @section eset1 Example Set 1
00005 Link: @subpage ExampleSet1
00006
00007 @copydoc ExampleSet1
00008
00009 @section eset2 Integrate a new Linear Operator
00010 Link: @subpage ExampleSet2
00011
00012 @copydoc ExampleSet2
00013
00014 */"""
00015
00016 __copyright__ = """
00017 Copyright 2008 Sean Ross-Ross
00018 """
00019 __license__ = """
00020 This file is part of SLIMpy.
00021
00022 SLIMpy is free software: you can redistribute it and/or modify
00023 it under the terms of the GNU Lesser General Public License as published by
00024 the Free Software Foundation, either version 3 of the License, or
00025 (at your option) any later version.
00026
00027 SLIMpy is distributed in the hope that it will be useful,
00028 but WITHOUT ANY WARRANTY; without even the implied warranty of
00029 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00030 GNU Lesser General Public License for more details.
00031
00032 You should have received a copy of the GNU Lesser General Public License
00033 along with SLIMpy. If not, see <http://www.gnu.org/licenses/>.
00034 """
00035
00036 from os.path import join,isdir,isfile
00037 from os import pathsep,environ
00038 from glob import glob
00039
00040 #from Apps.SLIMScons import slim_env
00041 from slimproj import *
00042
00043 #===============================================================================
00044 # doxygen
00045 #===============================================================================
00046 doxygen = WhereIs( 'doxygen' )
00047 if not doxygen:
00048 raise Exception("need doxygen executable to create SLIMpy documentation")
00049
00050 errmsg = ("could not find ContribSLIMpy directory: need to get this from \nSLIM "
00051 "svn https:
00052 "and specify 'ContribSLIMpy' environment variable")
00053
00054 ContribSLIMpy = environ.get( 'ContribSLIMpy', '../../ContribSLIMpy/' )
00055 if not isdir(ContribSLIMpy):
00056 raise Exception(errmsg)
00057
00058 htmldir = Dir('html')
00059 doxy = Command( htmldir, "Doxyfile", "(cat $SOURCE; echo INPUT = .. %(ContribSLIMpy)s ) |%(doxygen)s -" %vars() )
00060 AlwaysBuild('html')
00061 Default('html')
00062 Clean( "." , htmldir )
00063
00064 Command( 'rsync', htmldir,
00065 'rsync -avH --rsh=ssh --delete ./html/ '
00066 'wadmin@slim.eos.ubc.ca:/Volumes/Data/WebServer/Sites/Misc/SLIMpy' )
00067
00068