⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 adding.tex

📁 国外免费地震资料处理软件包
💻 TEX
字号:
\title{Adding new programs to madagascar}\author{Sergey Fomel and Ioan Vlad}\maketitleWhether you want to share your work with the world or keep it foryourself, madagascar is fully extensible. The following instructionsexplain the simplest way to add your own programs to the package:\begin{enumerate}\item Create a directory for yourself or your group under\texttt{MADAGASCAR/user}, where \texttt{MADAGASCAR} is the top sourcedirectory. Put your programs there. \item The following conventions are adopted:\begin{itemize}\item Files containing main programs start with \texttt{M},i.e. \texttt{Mmyprog.c}. Each main program file should start with ashort one-line comment describing its purpose.\item Files containing subroutines start with small letters. Aheader/interface file \texttt{myprog.h} is automatically generatedfrom \texttt{myprog.c}. By using header files, dependencies betweendifferent functions will be figured out automatically. Include acomment of the form \verb#/*^*/# after any block of text that youwant to be included in the header file. Include a comment of the form\verb#/*< My function description >*/# after a function definitionif you want its interface included in the header file.  It is a goodhabit to comment interfaces to all your functions.\end{itemize}\item Create an \texttt{SConstruct} file in your directory by following examples from other \texttt{user} directories. Inside the triple quotation marks after \texttt{progs=}, replace thenames of their programs with the names of your programs with spacesbetween the names.\item Note that running \texttt{scons} inside your \texttt{user}directory compiles programs with debugging flags to make themsuitable for debugging with common debuggers such as\href{http://www.gnu.org/software/gdb/}{gdb}, dbx, or\href{http://www.etnus.com/}{TotalView}. Running \texttt{scons install} inside the top source directory will compile your programs with optimization flags and install them in \texttt{\$RSFROOT}.\item If you want to share your code with other madagascar users:\begin{enumerate}\item If your employer holds the copyright for your software, obtain a permission to distribute under a \href{http://www.gnu.org/copyleft/gpl.html}{GPL license} and place a copyright and GPL license notice in each file with code.\item \href{http://sourceforge.net/account/newuser_emailverify.php}{Register at SourceForge}and pass your SourceForge user name to one of the projectadministrators.  \item Commit your directory to the repository using\texttt{svn add} and \texttt{svn commit}.  \item Add examples of using your programunder the \texttt{MADAGASCAR/book} tree. Create new directories ifnecessary and commit them to the repository. As a rule, programswithout examples are not included in the release version.\end{enumerate}\end{enumerate}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -