tmexpand-0.1.2-0/0040755002657400265740000000000010233756413012523 5ustar davisdavistmexpand-0.1.2-0/macros/0040755002657400265740000000000010233756413014007 5ustar davisdavistmexpand-0.1.2-0/macros/htmlmacros.sl0100644002657400265740000000035610221320562016506 0ustar davisdavisstatic define despamify_email (email) { (email, ) = strreplace (email, ".", " ", strlen (email)); (email, ) = strreplace (email, "@", " at ", strlen(email)); insert (email); } tm_add_macro ("spamproof", &despamify_email, 1, 1); tmexpand-0.1.2-0/macros/Makefile.in0100644002657400265740000000300310233753156016046 0ustar davisdavisTM_FILES = docbook.tm docbook_man.tm linuxdoc.tm mathsym.tm slhlp.tm \ tmutil.tm userinfo.tm html.tm jdweb.tm jdweb_end.tm \ jdwebstyle.tm html_extra.tm html_form.tm SL_FILES = faqmacros.sl htmlmacros.sl jdweb_funs.sl mathsym.sl #--------------------------------------------------------------------------- # Directory where macros and sl files are to be installed #--------------------------------------------------------------------------- install_dir = @prefix@/share/tmexpand/macros INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ MKINSDIR = ../autoconf/mkinsdir.sh #--------------------------------------------------------------------------- # DESTDIR is designed to facilitate making packages. Normally it is empty #--------------------------------------------------------------------------- DESTDIR = DEST_INSTALL_DIR = $(DESTDIR)$(install_dir) #--------------------------------------------------------------------------- all: clean: /bin/rm -rf *~ #* distclean: clean $(DEST_INSTALL_DIR): $(MKINSDIR) $(DEST_INSTALL_DIR) install_slfiles: $(DEST_INSTALL_DIR) @for X in $(SL_FILES); \ do \ echo $(INSTALL_DATA) $$X $(DEST_INSTALL_DIR); \ $(INSTALL_DATA) $$X $(DEST_INSTALL_DIR); \ if [ "$$?" != "0" ]; then \ exit 1; \ fi; \ done install_tmfiles: $(DEST_INSTALL_DIR) @for X in $(TM_FILES); \ do \ echo $(INSTALL_DATA) $$X $(DEST_INSTALL_DIR); \ $(INSTALL_DATA) $$X $(DEST_INSTALL_DIR); \ if [ "$$?" != "0" ]; then \ exit 1; \ fi; \ done install: install_tmfiles install_slfiles # tmexpand-0.1.2-0/macros/html.tm0100644002657400265740000000505110221320562015300 0ustar davisdavis#% HTML Text-Macros #i tmutil.tm #% --------------------------------------------------------------------------- #% Control Variables #% --------------------------------------------------------------------------- #d __verbatim_begin
#d __verbatim_end 
#d __passthru_begin #d __passthru_end #d __remove_empty_lines 1 #% --------------------------------------------------------------------------- #% Macros #% --------------------------------------------------------------------------- #d html-start #d html-end #% #d body #d body#0:1 #d body-end #d underline#1 $1 #d ul#1 #d olist
    #d olist-end
#d ulist #d item
  • #d dl#1
    $1
    #d dt#1
    $1
    #d dd#1
    $1
    #d dtdd#2
    $1
    \__newline__
    $2
    #d title#1 $1 #d base#1 #d head#1 $1\__newline__\optarg{\meta-content-type} \ \__newline__\optarg{\meta-keywords} \ \__newline__\optarg{\meta-description} #d p#0:1

    #d par

    #d em#1 $1 #d kbd#1 $1 #d code#1 $1 #d samp#1 $1 #% d class_href#3 $3 #d href#2:3 $2 #d label#1 #d url#1 $1 #d mailto#2 $2 #d news#1 $1 #d space   #d center#1

    $1
    #% #d center#1
    $1
    #d newline
    #d h1#1

    $1

    #d h2#1

    $1

    #d h3#1

    $1

    #d h4#1

    $1

    #d h5#1
    $1
    #d img#2:3 $2 #d hline
    #d begin#1:2 <$1 \optarg{$2}> #d end#1 #d bf#1:2 $1 #d sect#1

    $1

    #d subsect#1

    $1

    #d tt#1 $1 #d pagekeywords #d pagedescription #d meta#2 #d meta-description \meta{description}{\pagedescription} #d meta-keywords \meta{keywords}{\pagekeywords} #d meta-content-type #% ------------------------------------------------------------------------ #% Macros for dealing with tables #% ------------------------------------------------------------------------ #d table#3 $3
    #d tr#1 $1 #d td#3 $3 #d stylesheet#1 #d comment#1 tmexpand-0.1.2-0/macros/html_extra.tm0100644002657400265740000000234110221320562016502 0ustar davisdavis#% Some standard macros #i userinfo.tm #d localurl#1 \rooturl/$1 #d graphic#2:3 \img{$1}{$2}{border=0 $3\__btrim__} #d graphic_hw#4 \graphic{$1}{$2}{height=$3 width=$4} #d emailme To comment on it or the material presented here, send \ email to \email-address. #d lastupdated This page was last updated \__today__ \ by \href{\myhomepage}{\myname}. #d checkhtml-url http://validator.w3.org/check/referer #d validhtml_image \tmdist_imagedir/valid-html401.png #d checkhtml \href{\checkhtml-url}{\graphic_hw{\validhtml_image}{Valid HTML 4.01!}{31}{88}} #d jedsofturl http://www.jedsoft.org #d jedhome \jedsofturl/jed/ #d madewithjed_image \tmdist_imagedir/madewithjed.jpg #d madewithjed_url http://www.jedsoft.org/jed/madewithjed.html #d madewithjed \href{\madewithjed_url}{\graphic_hw{\madewithjed_image}{Made with JED}{30}{90}} #d anybrowser_image \tmdist_imagedir/anybrowser4b.png #d anybrowser \href{http://www.anybrowser.org/campaign/}{\ \graphic_hw{\anybrowser_image}{Viewable With Any Browser}{31}{88}} #%

    This page is was \madewithjed to be \anybrowser, and is \ #% \checkhtml compliant. #% The \new macro displays a New! graphic. #d new#1 \em{\graphic{\tmdist_imagedir/new.png}{$1}}\space{} #s+ #i htmlmacros.sl #s- tmexpand-0.1.2-0/macros/faqmacros.sl0100644002657400265740000000174310221320562016312 0ustar davisdavisstatic variable Faq_List_Root = NULL; static variable Faq_List_Tail = NULL; static variable Num_Faqs = 0; static define faq_add_faq (q, a) { variable s = struct { q, a, next }; s.q = q; s.a = a; s.next = NULL; if (Faq_List_Tail != NULL) Faq_List_Tail.next = s; else Faq_List_Root = s; Faq_List_Tail = s; Num_Faqs++; } static define faq_insert_questions () { variable s = Faq_List_Root; variable n = 1; while (s != NULL) { vinsert ("\\faq-quest-question{%d}{%s}\n", n, s.q); s = s.next; n++; } } static define faq_insert_answers () { variable s = Faq_List_Root; variable n = 1; while (s != NULL) { vinsert ("\\faq-ans-question{%d}{%s}\n", n, s.q); vinsert ("\\faq-ans-answer{%d}{%s}\n", n, s.a); s = s.next; n++; } } tm_add_macro ("faq_add_faq",&faq_add_faq, 2, 2); tm_add_macro ("faq_insert_questions",&faq_insert_questions, 0, 0); tm_add_macro ("faq_insert_answers",&faq_insert_answers, 0, 0); tmexpand-0.1.2-0/macros/docbook_man.tm0100644002657400265740000000135610221320562016613 0ustar davisdavis#i docbook.tm #d manpage#3 \docbook{refentry} \ \__newline__\ $1\__newline__\ $2\__newline__\ \__newline__\ $1\__newline__\ $3\__newline__\ #d manpage-end #d manarg_req#1 $1 #d manarg_rep#1 $1 #d manarg_plain#1 $1 #d mansynopsis#2 \ \__newline__\ \__newline__$1\__newline__\ $2\__newline__\ \__newline__\ #d refsect1#1 $1 #d refsect1-end tmexpand-0.1.2-0/macros/jdwebstyle.tm0100644002657400265740000001503710221320562016515 0ustar davisdavis#%+ This stylesheet is designed to work with the jdweb macros. For simplicity, the frame is divided into 6 sections: <----------------- start(user defined) ---------------> <-- corner---> < ----------- top ---------------------> <-- sidebar--> < ----------- body --------------------> <------------------- end -----------------------------> Classes with corresponding names will be used to customized objects. So, here is the stylesheet: #%- \begin{style type="text/css"}\comment{ \jdweb_start_style \corner_style \top_style \sidebar_style \body_style \jdweb_end_style }\end{style} #%+ Note also that the body_style will be used as the default style for everything not explicitly given a style. It is also wrapped in a comment to prevent it from confusing non-stylesheet aware browsers. #%- #%+ The stylesheet will consist of a number of entries. A few generic macros macro will facilitate their construction. #%- #d style_entry#2 $1 \{ $2 \}\__newline__ #d style_fgbg_entry#3:4 \style_entry{$1}{color: $2; background-color: $3; \optarg{$4}} #d style_font_entry#3 \style_entry{$1}{font-family: $2; font-size: $3;} #%+ Setup the body style first. Since it is the default, I will leave off the body_ prefix for its attributes. There is not a lot to do here, except for the colors and fonts. #%- #d fg_color black #d bg_color white #d link_fg_color #0000FF #d link_bg_color \bg_color #d visited_fg_color purple #d visited_bg_color \link_bg_color #d active_fg_color \rgb{255}{0}{102} #d active_bg_color \bg_color #d hover_fg_color \rgb{0}{153}{255} #d hover_bg_color \bg_color #d h1_fontsize 100% #d h2_fontsize 100% #d h3_fontsize 100% #d h4_fontsize 100% #d h5_fontsize 100% #d pre_fontsize 100% #d h1_fontfamily sans-serif #d h2_fontfamily sans-serif #d h3_fontfamily sans-serif #d h4_fontfamily sans-serif #d h5_fontfamily sans-serif #d pre_fontfamily monospace #d h1_style \style_font_entry{h1}{\h1_fontfamily}{\h1_fontsize} #d h2_style \style_font_entry{h2}{\h2_fontfamily}{\h2_fontsize} #d h3_style \style_font_entry{h3}{\h3_fontfamily}{\h3_fontsize} #d h4_style \style_font_entry{h4}{\h4_fontfamily}{\h4_fontsize} #d h5_style \style_font_entry{h5}{\h5_fontfamily}{\h5_fontsize} #d pre_style \style_font_entry{pre}{\pre_fontfamily}{\pre_fontsize} #% Put it all together to define the body style #d body_style \ \style_fgbg_entry{body}{\fg_color}{\bg_color} \ \style_fgbg_entry{:link}{\link_fg_color}{\link_bg_color} \ \style_fgbg_entry{:visited}{\visited_fg_color}{\visited_bg_color} \ \style_fgbg_entry{:active}{\active_fg_color}{\active_bg_color} \ \style_fgbg_entry{:visited:hover}{\hover_fg_color}{\hover_bg_color} \ \style_fgbg_entry{:link:hover}{\hover_fg_color}{\hover_bg_color} \ \h1_style \h2_style \h3_style \h4_style \h5_style \pre_style \ \style_entry{div.center}{text-align: center;} #%+ Now the sidebar. Unfortunately, I have not been able to get the pseudo-classes for the links to work with netscape 4 if I declare a generic sidebar entry. Also, the space between the sidebar table cells do not get filled in unless I put the background tag in the table element itself. Netscape 6 does not have these problems. #%- #d sidebar_fg_color black #d sidebar_bg_color #CCCCCC #d sidebar_link_fg_color \rgb{0}{0}{153} #d sidebar_link_bg_color \sidebar_bg_color #d sidebar_visited_fg_color \sidebar_link_fg_color #d sidebar_visited_bg_color \sidebar_bg_color #d sidebar_active_fg_color \rgb{255}{0}{102} #d sidebar_active_bg_color \sidebar_bg_color #d sidebar_hover_fg_color \rgb{0}{153}{255} #d sidebar_hover_bg_color \sidebar_bg_color #d sidebar_label_font_family sans-serif #d sidebar_label_fontsize 100% #d sidebar_label_fg_color \sidebar_fg_color #d sidebar_label_bg_color \sidebar_bg_color #d sidebar_style \ \style_fgbg_entry{.sidebar:link}{\sidebar_link_fg_color}{\sidebar_link_bg_color} \ \style_fgbg_entry{.sidebar:visited}{\sidebar_visited_fg_color}{\sidebar_visited_bg_color} \ \style_fgbg_entry{.sidebar:active}{\sidebar_active_fg_color}{\sidebar_active_bg_color} \ \style_fgbg_entry{.sidebar:visited:hover}{\sidebar_hover_fg_color}{\sidebar_hover_bg_color} \ \style_fgbg_entry{.sidebar:link:hover}{\sidebar_hover_fg_color}{\sidebar_hover_bg_color} \ \style_entry{a.sidebar}{text-decoration: none;} \ \style_font_entry{.sidebarlabel}{\sidebar_label_font_family}{\sidebar_label_fontsize} \ \style_fgbg_entry{.sidebarlabel}{\sidebar_label_fg_color}{\sidebar_label_bg_color} \ \style_fgbg_entry{td.sidebar,table.sidebar}{\sidebar_fg_color}{\sidebar_bg_color} \ #d corner_fg_color \sidebar_fg_color #d corner_bg_color \sidebar_bg_color #d corner_link_fg_color \rgb{0}{0}{153} #d corner_link_bg_color \corner_bg_color #d corner_visited_fg_color \corner_link_fg_color #d corner_visited_bg_color \corner_bg_color #d corner_active_fg_color \rgb{255}{0}{102} #d corner_active_bg_color \corner_bg_color #d corner_hover_fg_color \rgb{0}{153}{255} #d corner_hover_bg_color \corner_bg_color #d corner_style \ \style_fgbg_entry{td.corner}{\corner_fg_color}{\corner_link_bg_color} \ \style_fgbg_entry{.corner:link}{\corner_link_fg_color}{\corner_link_bg_color} \ \style_fgbg_entry{.corner:visited}{\corner_visited_fg_color}{\corner_visited_bg_color} \ \style_fgbg_entry{.corner:active}{\corner_active_fg_color}{\corner_active_bg_color} \ \style_fgbg_entry{.corner:visited:hover}{\corner_hover_fg_color}{\corner_hover_bg_color} \ \style_fgbg_entry{.corner:link:hover}{\corner_hover_fg_color}{\corner_hover_bg_color} \ \style_entry{a.corner}{text-decoration: none;} #d top_fg_color \sidebar_fg_color #d top_bg_color \sidebar_bg_color #d top_link_fg_color \rgb{0}{0}{153} #d top_link_bg_color \top_bg_color #d top_visited_fg_color \top_link_fg_color #d top_visited_bg_color \top_bg_color #d top_active_fg_color \rgb{255}{0}{102} #d top_active_bg_color \top_bg_color #d top_hover_fg_color \rgb{0}{153}{255} #d top_hover_bg_color \top_bg_color #d top_style \ \style_fgbg_entry{td.top}{\top_fg_color}{\top_link_bg_color} \ \style_fgbg_entry{.top:link}{\top_link_fg_color}{\top_link_bg_color} \ \style_fgbg_entry{.top:visited}{\top_visited_fg_color}{\top_visited_bg_color} \ \style_fgbg_entry{.top:active}{\top_active_fg_color}{\top_active_bg_color} \ \style_fgbg_entry{.top:visited:hover}{\top_hover_fg_color}{\top_hover_bg_color} \ \style_fgbg_entry{.top:link:hover}{\top_hover_fg_color}{\top_hover_bg_color} \ \style_entry{a.top}{text-decoration: none;} #%+ User defined top #%- #d jdweb_start_style #%+ End #%- #d jdweb_end_style \ \style_entry{p.jdwebend}{margin-top: 0em;} tmexpand-0.1.2-0/macros/tmutil.tm0100644002657400265740000000022410221320562015647 0ustar davisdavis#% Some useful macros #d optarg#1 $1\__btrim__ #d ifarg#2 \if{\strlen{$1}}{$2}{} #d ifnarg#2 \if{\strlen{$1}}{}{$2} #d begin#1 <$1> #d end#1 tmexpand-0.1.2-0/macros/docbook.tm0100644002657400265740000000435510221320562015762 0ustar davisdavis#i tmutil.tm #% #d __verbatim_start #% #d __verbatim_end #d __verbatim_begin #d __verbatim_end #d docbook_tag_with_attribute#3 \ \if{\strlen{$3}}{<$1 $2>$3}{<$1>$2} #d docbook_tag_with_attribute_end#3 \ \docbook_tag_with_attribute{$1}{$2}{$3} #% #d docbook#1 #d book#0:1 #d book-end #d article#0:1

    #d article-end
    #d title#1 $1<title> #d para#1 <para>$1<para> #d p <para> #d pp </para><para> #d p-end </para> #d artheader#1 <artheader>$1<artheader> #d author#1 <author>$1</author> #d firstname#1 <firstname>$1</firstname> #d othername#1 <othername>$1</othername> #d affiliation#1 <affiliation>$1</affiliation> #d orgname#1 <orgname>$1</orgname> #d orgdiv#1 <orgdiv>$1</orgdiv> #d address#1 <address>$1</address> #d email#1 <email>$1</email> #d pubdate#1 <pubdate>$1</pubdate> #d application#1 <application>$1</application> #d emphasis#1 <emphasis>$1</emphasis> #d itemizedlist#1 <itemizedlist>$1</itemizedlist> #d listitem#1 <listitem>$1</listitem> #d filename#1 <filename>$1</filename> #d directory#1 <filename class="directory">$1</filename> #d citetitle <citetitle>$1</citetitle> #d ulink#2 <ulink url="$1">$2</ulink> #d xref#1 <xref linkend="$1"> #d sect1#1 <sect1>$1</sect1> #d sect2#1 <sect1>$1</sect1> #d section#1:2 \if{\strlen{$2}{<sect1 id="$1">\title{$2}}{<sect1>\title{$1}} #d subsection#1:2 \if{\strlen{$2}{<sect2 id="$1">\title{$2}}{<sect2>\title{$1}} #d end-section </sect1> #d end-subsection </sect2> #d arg#1:2 \docbook_tag_with_attribute_end{arg}{$1}{$2} #d replaceable#1 <replaceable>$1</replaceable> #d option#1:2 <option>$1\ifarg{$2}{ \replaceable{$2}}</option> #d group#1 <group>$1</group> #d guimenu <guimenu>$1</guimenu> #% Lists #d variablelist#0:1 <variablelist>\ifarg{$1}{\title{$1}} #d variablelist-end </variablelist> #d varlistentry#2 <varlistentry>$1\__newline__\ <listitem>$2</listitem>\__newline__</varlistentry> #d command#1 <command>$1</command> #d literal#1 <literal>$1</literal> #d simplelist <simplelist>\__newline__ #d member#1 <member>$1</member>\__newline__ #d simplelist-end </simplelist>\__newline__ #d term#1 <term>$1</term> �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������tmexpand-0.1.2-0/macros/mathsym.sl������������������������������������������������������������������0100644�0026574�0026574�00000003753�10221320562�016023� 0����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������static variable Equation_Number = 0; static define run_cmd (cmd) { if (-1 == system (cmd)) vmessage ("****WARNING: %s failed\n", cmd); } static define equation_function_env (esc_eq, env) { esc_eq = strtrim (esc_eq); variable eq, len; len = strlen (esc_eq); if (0 == strncmp (esc_eq, "#v+", 3)) { (esc_eq,) = strreplace (esc_eq, "#v+", "", len); (esc_eq,) = strreplace (esc_eq, "#v-", "", len); (esc_eq,) = strreplace (esc_eq, "#v", "", len); esc_eq = strtrim (esc_eq); eq = esc_eq; } else { (eq,) = strreplace (esc_eq, "\\\\", "\\", len); (eq,) = strreplace (eq, "<", "<", len); (eq,) = strreplace (eq, ">", ">", len); (eq,) = strreplace (eq, "&", "&", len); } variable text = "\\documentclass[12pt]{article}\n"; text += "\\usepackage{amsmath}\n"; text += "\\begin{document}\n"; text += "\\pagestyle{empty}\n"; text += sprintf ("\\begin{%s}\n%s \\nonumber\n\\end{%s}", env, eq, env); text += "\n\\end{document}\n"; Equation_Number++; variable tmpdir = "tmp"; variable autopng = "autopng"; variable base = sprintf ("eq%d", Equation_Number); () = mkdir (tmpdir, 0777); () = mkdir (autopng, 0777); variable tex = sprintf ("%s.tex", base); variable dvi = base + ".dvi"; if (-1 == write_string_to_file (text, sprintf ("%s/%s", tmpdir, tex))) verror ("Write to %s failed\n", tex); run_cmd (sprintf ("cd %s; latex %s", tmpdir, tex)); run_cmd (sprintf ("cd %s; dvi2png %s", tmpdir, dvi)); variable png = sprintf ("%s/%s_eq%d.png", autopng, __TM_FILE__, Equation_Number); run_cmd (sprintf ("mv %s/%s.png %s", tmpdir, dvi, png)); vinsert ("<img src=\"%s\" alt=\"%s\" border=0>\n", png, esc_eq); } public define equation_function (esc_eq) { equation_function_env (esc_eq, "equation*"); } public define eqnarray_function (esc_eq) { equation_function_env (esc_eq, "eqnarray*"); } tm_add_macro ("equation",&equation_function, 1, 1); tm_add_macro ("eqnarray",&eqnarray_function, 1, 1); ���������������������tmexpand-0.1.2-0/macros/jdweb_end.tm����������������������������������������������������������������0100644�0026574�0026574�00000000453�10221320562�016256� 0����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ \if{(\strlen{\prev_node})or(\strlen{\next_node})}{ \p \table{100%}{border=0}{ \tr{ \td{50%}{align=left}{ \if{\strlen{\prev_node}} {\bf{Previous:} \prev_node} } \td{50%}{align=right}{ \if{\strlen{\next_node}} {\bf{Next:} \next_node} } }} \p } }}} \jdweb_end ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������tmexpand-0.1.2-0/macros/slhlp.tm��������������������������������������������������������������������0100644�0026574�0026574�00000002545�10233750314�015470� 0����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#%+ These macros are used to format tm help docs into slang's internal doc format. It is an alternative to the tm2txt program. #%- #d __comment_begin #d __comment_end #d __passthru_begin #d __passthru_end #d __verbatim_begin #d __verbatim_end #d __remove_empty_lines 2 #d __remove_comment_lines 1 #s+ tm_map_character ('&', "&"); tm_map_character ('<', "<"); tm_map_character ('>', ">"); #s- #d _hlp_section#1 \__newline__\__space__{1}$1 #d function#1 \__newline__{}$1\__newline__ #d variable#1 \__newline__{}$1\__newline__ #d datatype#1 \__newline__{}$1\__newline__ #d synopsis#1 \_hlp_section{SYNOPSIS}\__newline__{}\__space__{2}$1\__newline__ #d usage#1 \_hlp_section{USAGE}\__newline__\__space__{2}$1 #d description \_hlp_section{DESCRIPTION} #d example \_hlp_section{EXAMPLE} #d notes \_hlp_section{NOTES} #d seealso#1 \_hlp_section{SEE ALSO}\__newline__\__space__{2}$1 #d done \__newline__{}-------------------------------------------------------------- #d sfun#1 `$1' #d exmp#1 `$1' #d var#1 `$1' #d ifun#1 `$1' #d cfun#1 `$1' #d ivar#1 `$1' #d cvar#1 `$1' #d svar#1 `$1' #d module#1 `$1' #% intrinsic constants #d icon#1 $1 #% datatype #d dtype#1 $1 #% keyword #d kw#1 `$1' #% env variable #d env#1 `$1' #% exception #d exc#1 `$1' #d em#1 _$1_ #d NULL NULL #d slang S-Lang #d jed jed #d 0 0 #d 1 1 #d 2 2 #d 3 3 #d 4 4 #d 5 5 #d 6 6 #d 7 7 #d 8 8 #d 9 9 #d -1 -1 �����������������������������������������������������������������������������������������������������������������������������������������������������������tmexpand-0.1.2-0/macros/mathsym.tm������������������������������������������������������������������0100644�0026574�0026574�00000000470�10221320562�016016� 0����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#% Some common greek symbols #d alpha \spaceα #d beta \spaceβ #d gamma \spaceγ #d delta \spaceδ #d tau \spaceτ #d Delta \spaceΔ #% Some math "environments" #s+ #i mathsym.sl #s- #d displayeq#1 \center{\equation{$1}} #d displayeqnarray#1 \center{\eqnarray{$1}} #d math#1 \em{$1} ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������tmexpand-0.1.2-0/macros/jdweb_funs.sl���������������������������������������������������������������0100644�0026574�0026574�00000000740�10221320562�016460� 0����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������static define convert_color_to_theme (color) { color = strtrim (color); if (color[0] != '#') verror ("convert_bgcolor_to_theme: %s must be specified in hex form", color); color = strlow (color [[1:]]); insert (color); } tm_add_macro ("convert_color_to_theme", &convert_color_to_theme, 1, 1); static define convert_rgb_to_hex (r, g, b) { vinsert ("#%02X%02X%02X", integer(r), integer(g), integer(b)); } tm_add_macro ("rgb", &convert_rgb_to_hex, 3, 3); ��������������������������������tmexpand-0.1.2-0/macros/linuxdoc.tm�����������������������������������������������������������������0100644�0026574�0026574�00000003253�10233750314�016170� 0����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#% Linuxdoc SGML Text-Macros #d linuxdoc <!doctype linuxdoc system> #% --------------------------------------------------------------------------- #% Control Variables #% --------------------------------------------------------------------------- #d __verbatim_begin <tscreen><verb> #d __verbatim_end </verb></tscreen> #d __passthru_begin #d __passthru_end #d __remove_empty_lines 0 #% --------------------------------------------------------------------------- #% Macros #% --------------------------------------------------------------------------- #i tmutil.tm #d abstract#1 <abstract>$1</abstract> #d title <title> #d author <author> #d date <date> #d toc <toc> #d preface <preface> #d chapter#1 <chapt>$1<p> #d sect#1 <sect>$1<p> #d sect1#1 <sect1>$1<p> #d sect2#1 <sect2>$1<p> #d sect3#1 <sect3>$1<p> #d sect4#1 <sect4>$1<p> #d sect5#1 <sect5>$1<p> #d appendix <appendix> #% #d p <p> #d enum#1 <enum>$1</enum> #d itemize#1 <itemize>$1</itemize> #d descript#1 <descript>$1</descript> #d item <item> #% #d tt#1 <tt>$1</tt> #d bf#1 <bf>$1</bf> #d em#1 <em>$1</em> #% #d label#1 <label id="$1"> #d ref#1:2 <ref id="$1" name="\if{\strlen{$2}}{$2}{$1}"> #d tag#1 <tag>$1</tag> #d url#1:2 <url url="$1" \if{\strlen{$2}}{name="$2"}{}> #% --------------------------------------------------------------------------- #% Misc Macros #% --------------------------------------------------------------------------- #s+ static define linuxdoc_list_to_ref_function (list) { variable items = strtok (list, ", \t\n"); items = array_map (String_Type, &sprintf, "\\ref{%s}{%s}", items, items); insert (strjoin (items, ", ")); } tm_add_macro ("linuxdoc_list_to_ref", &linuxdoc_list_to_ref_function, 1, 1); #s- �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������tmexpand-0.1.2-0/macros/html_form.tm����������������������������������������������������������������0100644�0026574�0026574�00000000536�10221320562�016326� 0����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#d form_post#2 <form method=POST action="$1">\__newline__ \ $2\__newline__</form> #d input#2:3 <input type="$1" name="$2" \optarg{$3}> #d input_text#2:3 <input type="Text" name="$1" value="$2" \optarg{$3}> #d input_password#1:2 <input type="Password" name="$1" \optarg{$2}> #d input_submit#2:3 <input type="Submit" name="$1" value="$2" \optarg{$3}> ������������������������������������������������������������������������������������������������������������������������������������������������������������������tmexpand-0.1.2-0/macros/userinfo.tm�����������������������������������������������������������������0100644�0026574�0026574�00000001067�10221320562�016171� 0����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#% -------------------------------------------------------------------- #% Each user should copy this file somewhere on the tm include path #% and edit it accordingly. Defaults shown below. #% -------------------------------------------------------------------- #d tmdist_imagedir /tmdist_images #d hostname \get_hostname #d email-address \get_username@\get_hostname #d rooturl http://\hostname/~\get_username #d myhomepage \rooturl/index.html #d myname \get_realname #s+ vmessage ("**** WARNING: You are using the distribution version of userinfo.tm\n"); #s- �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������tmexpand-0.1.2-0/macros/jdweb.tm��������������������������������������������������������������������0100644�0026574�0026574�00000005446�10221320562�015437� 0����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#i html.tm #i html_extra.tm #d jdweb_start_content #% code for the corner and top #d pagename My Home Page #d corner_html \space #d banner_html \newline\center{\h1{\pagename}} #% Next and previous links if required for multi-page document #d next_node #d prev_node #% The user can customize these by redefining in sidebar.tm #d sidebar_cellpadding 5 #d sidebar_width 10% #d body_width 90% #d sidebar_spacing 0% #d sidebar_href#2 \href{$1}{$2}{class="sidebar"} #d td_bg#3:4 \td{$1}{bgcolor="$2" \optarg{$4}}{$3} #s+ #i jdweb_funs.sl #s- #d bgcolortheme \convert_color_to_theme{\sidebar_bg_color} #% These are useful macros for user supplied sidebar.tm #d sidebar_item#2 \tr{\td{100%}{class="sidebar" bgcolor="$1" align=right}{$2}} #%+ For strict 4.01 compliance, the bgcolor attribute should not be use. Instead use these: #d sidebar_item#2 \tr{\td{100%}{class="sidebar" align=right}{$2}} #d td_bg#3:4 \td{$1}{$4}{$3} #%- #d sidebar_link_active#2 \ \sidebar_item{\sidebar_bg_color}{\ \sidebar_href{$1}{$2}\space\graphic_hw{\tmdist_imagedir/sidebar_arrow_\bgcolortheme.png}{}{13}{12}} #d sidebar_link_inactive#1 \sidebar_item{\sidebar_bg_color}{>$1\space\space} #d sidebar_text#1 \sidebar_item{\sidebar_bg_color}{$1} #d sidebar_label#1 \sidebar_item{\sidebar_label_bg_color}{ \ \bf{$1}{class="sidebarlabel"}} #d sidebar_space \sidebar_item{\sidebar_bg_color}{\space} #% The jdweb_start_html is a hook allowing one to display something #% before the start of the table #d jdweb_start_html #d jdweb_end_html <hr>\p{class="jdwebend"} \lastupdated \emailme \ <br>\checkhtml \madewithjed \anybrowser #d jdweb_end \jdweb_end_html\body-end\html-end #d sidebar_link#2 \ \if{path_sans_extname(path_basename(__TM_FILE__))==path_sans_extname(path_basename("$1"))}\ {\sidebar_link_inactive{$2}}{\sidebar_link_active{$1}{$2}} #d baseurl #% -------------------------------------------------------------------- #% Here is where the document starts #% -------------------------------------------------------------------- \html-start \head{\title{\pagename} \ifarg{\baseurl}{\base{\baseurl}} #i jdwebstyle.tm #% \stylesheet{\stylesheet_url} } \body{bgcolor="\bg_color"} \jdweb_start_html \table{100%}{border=0 cellspacing=0 cellpadding=0 summary="\pagename"}{ #% corner and banner row \tr{ \td_bg{\sidebar_width}{\corner_bg_color}{\corner_html}{class="corner"} \td_bg{\sidebar_spacing}{\top_bg_color}{\space}{class="top"} \td_bg{\body_width}{\top_bg_color}{\banner_html}{class="top"}} #% Now the sidebar and body row \tr{ \td_bg{\sidebar_width}{\sidebar_bg_color}{ \table{100%}{class="sidebar" cellpadding=\sidebar_cellpadding summary="sidebar menu"}{ #i sidebar.tm }} \td_bg{\sidebar_spacing}{\bg_color}{\space} \td_bg{\body_width}{\bg_color}{ \newline \p #% Main body goes here. \jdweb_start_content ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������tmexpand-0.1.2-0/configure��������������������������������������������������������������������������0100755�0026574�0026574�00000211155�10233753156�014435� 0����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.59. # # Copyright (C) 2003 Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then set -o posix fi DUALCASE=1; export DUALCASE # for MKS sh # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # Work around bugs in pre-3.0 UWIN ksh. $as_unset ENV MAIL MAILPATH PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)$' \| \ . : '\(.\)' 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } /^X\/\(\/\/\)$/{ s//\1/; q; } /^X\/\(\/\).*/{ s//\1/; q; } s/.*/./; q'` # PATH needs CR, and LINENO needs CR and PATH. # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" || { # Find who we are. Look in the path if we contain no path at all # relative or not. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 { (exit 1); exit 1; }; } fi case $CONFIG_SHELL in '') as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for as_base in sh bash ksh sh5; do case $as_dir in /*) if ("$as_dir/$as_base" -c ' as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } CONFIG_SHELL=$as_dir/$as_base export CONFIG_SHELL exec "$CONFIG_SHELL" "$0" ${1+"$@"} fi;; esac done done ;; esac # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line before each line; the second 'sed' does the real # work. The second script uses 'N' to pair each line-number line # with the numbered line, and appends trailing '-' during # substitution so that $LINENO is not a special case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) sed '=' <$as_myself | sed ' N s,$,-, : loop s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, t loop s,-$,, s,^['$as_cr_digits']*\n,, ' >$as_me.lineno && chmod +x $as_me.lineno || { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensible to this). . ./$as_me.lineno # Exit status is that of the last command. exit } case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in *c*,-n*) ECHO_N= ECHO_C=' ' ECHO_T=' ' ;; *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; *) ECHO_N= ECHO_C='\c' ECHO_T= ;; esac if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then # We could just check for DJGPP; but this test a) works b) is more generic # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). if test -f conf$$.exe; then # Don't use ln at all; we don't have any links as_ln_s='cp -p' else as_ln_s='ln -s' fi elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.file if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_executable_p="test -f" # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" # IFS # We need space, tab and new line, in precisely that order. as_nl=' ' IFS=" $as_nl" # CDPATH. $as_unset CDPATH # Name of the host. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` exec 6>&1 # # Initializations. # ac_default_prefix=/usr/local ac_config_libobj_dir=. cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= SHELL=${CONFIG_SHELL-/bin/sh} # Maximum number of lines to put in a shell here document. # This variable seems obsolete. It should probably be removed, and # only ac_max_sed_lines should be used. : ${ac_max_here_lines=38} # Identity of this package. PACKAGE_NAME= PACKAGE_TARNAME= PACKAGE_VERSION= PACKAGE_STRING= PACKAGE_BUGREPORT= ac_unique_file="bin/tmexpand" ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LIBOBJS LTLIBOBJS' ac_subst_files='' # Initialize some variables set by options. ac_init_help= ac_init_version=false # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datadir='${prefix}/share' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' libdir='${exec_prefix}/lib' includedir='${prefix}/include' oldincludedir='/usr/include' infodir='${prefix}/info' mandir='${prefix}/man' ac_prev= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval "$ac_prev=\$ac_option" ac_prev= continue fi ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_option in -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad | --data | --dat | --da) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | --da=*) datadir=$ac_optarg ;; -disable-* | --disable-*) ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/-/_/g'` eval "enable_$ac_feature=no" ;; -enable-* | --enable-*) ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/-/_/g'` case $ac_option in *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; *) ac_optarg=yes ;; esac eval "enable_$ac_feature='$ac_optarg'" ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst \ | --locals | --local | --loca | --loc | --lo) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package| sed 's/-/_/g'` case $ac_option in *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; *) ac_optarg=yes ;; esac eval "with_$ac_package='$ac_optarg'" ;; -without-* | --without-*) ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package | sed 's/-/_/g'` eval "with_$ac_package=no" ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) { echo "$as_me: error: unrecognized option: $ac_option Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 { (exit 1); exit 1; }; } ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` eval "$ac_envvar='$ac_optarg'" export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` { echo "$as_me: error: missing argument to $ac_option" >&2 { (exit 1); exit 1; }; } fi # Be sure to have absolute paths. for ac_var in exec_prefix prefix do eval ac_val=$`echo $ac_var` case $ac_val in [\\/$]* | ?:[\\/]* | NONE | '' ) ;; *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 { (exit 1); exit 1; }; };; esac done # Be sure to have absolute paths. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ localstatedir libdir includedir oldincludedir infodir mandir do eval ac_val=$`echo $ac_var` case $ac_val in [\\/$]* | ?:[\\/]* ) ;; *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 { (exit 1); exit 1; }; };; esac done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used." >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then its parent. ac_confdir=`(dirname "$0") 2>/dev/null || $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$0" : 'X\(//\)[^/]' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$0" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` srcdir=$ac_confdir if test ! -r $srcdir/$ac_unique_file; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r $srcdir/$ac_unique_file; then if test "$ac_srcdir_defaulted" = yes; then { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 { (exit 1); exit 1; }; } else { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 { (exit 1); exit 1; }; } fi fi (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 { (exit 1); exit 1; }; } srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` ac_env_build_alias_set=${build_alias+set} ac_env_build_alias_value=$build_alias ac_cv_env_build_alias_set=${build_alias+set} ac_cv_env_build_alias_value=$build_alias ac_env_host_alias_set=${host_alias+set} ac_env_host_alias_value=$host_alias ac_cv_env_host_alias_set=${host_alias+set} ac_cv_env_host_alias_value=$host_alias ac_env_target_alias_set=${target_alias+set} ac_env_target_alias_value=$target_alias ac_cv_env_target_alias_set=${target_alias+set} ac_cv_env_target_alias_value=$target_alias # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures this package to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] _ACEOF cat <<_ACEOF Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --datadir=DIR read-only architecture-independent data [PREFIX/share] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --infodir=DIR info documentation [PREFIX/info] --mandir=DIR man documentation [PREFIX/man] _ACEOF cat <<\_ACEOF _ACEOF fi if test -n "$ac_init_help"; then cat <<\_ACEOF _ACEOF fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. ac_popdir=`pwd` for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d $ac_dir || continue ac_builddir=. if test "$ac_dir" != .; then ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A "../" for each directory in $ac_dir_suffix. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` else ac_dir_suffix= ac_top_builddir= fi case $srcdir in .) # No --srcdir option. We are building in place. ac_srcdir=. if test -z "$ac_top_builddir"; then ac_top_srcdir=. else ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` fi ;; [\\/]* | ?:[\\/]* ) # Absolute path. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ;; *) # Relative path. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_builddir$srcdir ;; esac # Do not use `cd foo && pwd` to compute absolute paths, because # the directories may not exist. case `pwd` in .) ac_abs_builddir="$ac_dir";; *) case "$ac_dir" in .) ac_abs_builddir=`pwd`;; [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; *) ac_abs_builddir=`pwd`/"$ac_dir";; esac;; esac case $ac_abs_builddir in .) ac_abs_top_builddir=${ac_top_builddir}.;; *) case ${ac_top_builddir}. in .) ac_abs_top_builddir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; esac;; esac case $ac_abs_builddir in .) ac_abs_srcdir=$ac_srcdir;; *) case $ac_srcdir in .) ac_abs_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; esac;; esac case $ac_abs_builddir in .) ac_abs_top_srcdir=$ac_top_srcdir;; *) case $ac_top_srcdir in .) ac_abs_top_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; esac;; esac cd $ac_dir # Check for guested configure; otherwise get Cygnus style configure. if test -f $ac_srcdir/configure.gnu; then echo $SHELL $ac_srcdir/configure.gnu --help=recursive elif test -f $ac_srcdir/configure; then echo $SHELL $ac_srcdir/configure --help=recursive elif test -f $ac_srcdir/configure.ac || test -f $ac_srcdir/configure.in; then echo $ac_configure --help else echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi cd "$ac_popdir" done fi test -n "$ac_init_help" && exit 0 if $ac_init_version; then cat <<\_ACEOF Copyright (C) 2003 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit 0 fi exec 5>config.log cat >&5 <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by $as_me, which was generated by GNU Autoconf 2.59. Invocation command line was $ $0 $@ _ACEOF { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` hostinfo = `(hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. echo "PATH: $as_dir" done } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_sep= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 2) ac_configure_args1="$ac_configure_args1 '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" # Get rid of the leading space. ac_sep=" " ;; esac done done $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Be sure not to use single quotes in there, as some shells, # such as our DU 5.0 friend, will then `close' the trap. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo cat <<\_ASBOX ## ---------------- ## ## Cache variables. ## ## ---------------- ## _ASBOX echo # The following way of writing the cache mishandles newlines in values, { (set) 2>&1 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in *ac_space=\ *) sed -n \ "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" ;; *) sed -n \ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" ;; esac; } echo cat <<\_ASBOX ## ----------------- ## ## Output variables. ## ## ----------------- ## _ASBOX echo for ac_var in $ac_subst_vars do eval ac_val=$`echo $ac_var` echo "$ac_var='"'"'$ac_val'"'"'" done | sort echo if test -n "$ac_subst_files"; then cat <<\_ASBOX ## ------------- ## ## Output files. ## ## ------------- ## _ASBOX echo for ac_var in $ac_subst_files do eval ac_val=$`echo $ac_var` echo "$ac_var='"'"'$ac_val'"'"'" done | sort echo fi if test -s confdefs.h; then cat <<\_ASBOX ## ----------- ## ## confdefs.h. ## ## ----------- ## _ASBOX echo sed "/^$/d" confdefs.h | sort echo fi test "$ac_signal" != 0 && echo "$as_me: caught signal $ac_signal" echo "$as_me: exit $exit_status" } >&5 rm -f core *.core && rm -rf conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -rf conftest* confdefs.h # AIX cpp loses on an empty file, so make sure it contains at least a newline. echo >confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer explicitly selected file to automatically selected ones. if test -z "$CONFIG_SITE"; then if test "x$prefix" != xNONE; then CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" else CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" fi fi for ac_site_file in $CONFIG_SITE; do if test -r "$ac_site_file"; then { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special # files actually), so we avoid doing that. if test -f "$cache_file"; then { echo "$as_me:$LINENO: loading cache $cache_file" >&5 echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . $cache_file;; *) . ./$cache_file;; esac fi else { echo "$as_me:$LINENO: creating cache $cache_file" >&5 echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in `(set) 2>&1 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val="\$ac_cv_env_${ac_var}_value" eval ac_new_val="\$ac_env_${ac_var}_value" case $ac_old_set,$ac_new_set in set,) { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 echo "$as_me: former value: $ac_old_val" >&2;} { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 echo "$as_me: current value: $ac_new_val" >&2;} ac_cache_corrupted=: fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 echo "$as_me: error: changes in the environment can compromise the build" >&2;} { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_aux_dir= for ac_dir in autoconf $srcdir/autoconf; do if test -f $ac_dir/install-sh; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f $ac_dir/install.sh; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f $ac_dir/shtool; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;} { (exit 1); exit 1; }; } fi ac_config_guess="$SHELL $ac_aux_dir/config.guess" ac_config_sub="$SHELL $ac_aux_dir/config.sub" ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.make <<\_ACEOF all: @echo 'ac_maketemp="$(MAKE)"' _ACEOF # GNU make sometimes prints "make[1]: Entering...", which would confuse us. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` if test -n "$ac_maketemp"; then eval ac_cv_prog_make_${ac_make}_set=yes else eval ac_cv_prog_make_${ac_make}_set=no fi rm -f conftest.make fi if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 SET_MAKE= else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 SET_MAKE="MAKE=${MAKE-make}" fi # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in ./ | .// | /cC/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi done done ;; esac done fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. We don't cache a # path for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the path is relative. INSTALL=$ac_install_sh fi fi echo "$as_me:$LINENO: result: $INSTALL" >&5 echo "${ECHO_T}$INSTALL" >&6 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' ac_config_files="$ac_config_files Makefile:autoconf/Makefile.in bin/Makefile macros/Makefile doc/Makefile images/Makefile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, don't put newlines in cache variables' values. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. { (set) 2>&1 | case `(ac_space=' '; set | grep ac_space) 2>&1` in *ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote # substitution turns \\\\ into \\, and sed turns \\ into \). sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n \ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" ;; esac; } | sed ' t clear : clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ : end' >>confcache if diff $cache_file confcache >/dev/null 2>&1; then :; else if test -w $cache_file; then test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" cat confcache >$cache_file else echo "not updating unwritable cache $cache_file" fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' # VPATH may cause trouble with some makes, so we remove $(srcdir), # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=/{ s/:*\$(srcdir):*/:/; s/:*\${srcdir}:*/:/; s/:*@srcdir@:*/:/; s/^\([^=]*=[ ]*\):*/\1/; s/:*$//; s/^[^=]*=[ ]*$//; }' fi # Transform confdefs.h into DEFS. # Protect against shell expansion while executing Makefile rules. # Protect against Makefile macro expansion. # # If the first sed substitution is executed (which looks for macros that # take arguments), then we branch to the quote section. Otherwise, # look for a macro that doesn't take arguments. cat >confdef2opt.sed <<\_ACEOF t clear : clear s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g t quote s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g t quote d : quote s,[ `~#$^&*(){}\\|;'"<>?],\\&,g s,\[,\\&,g s,\],\\&,g s,\$,$$,g p _ACEOF # We use echo to avoid assuming a particular line-breaking character. # The extra dot is to prevent the shell from consuming trailing # line-breaks from the sub-command output. A line-break within # single-quotes doesn't work because, if this script is created in a # platform that uses two characters for line-breaks (e.g., DOS), tr # would break. ac_LF_and_DOT=`echo; echo .` DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` rm -f confdef2opt.sed ac_libobjs= ac_ltlibobjs= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_i=`echo "$ac_i" | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` # 2. Add them. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs : ${CONFIG_STATUS=./config.status} ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 echo "$as_me: creating $CONFIG_STATUS" >&6;} cat >$CONFIG_STATUS <<_ACEOF #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then set -o posix fi DUALCASE=1; export DUALCASE # for MKS sh # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # Work around bugs in pre-3.0 UWIN ksh. $as_unset ENV MAIL MAILPATH PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)$' \| \ . : '\(.\)' 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } /^X\/\(\/\/\)$/{ s//\1/; q; } /^X\/\(\/\).*/{ s//\1/; q; } s/.*/./; q'` # PATH needs CR, and LINENO needs CR and PATH. # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" || { # Find who we are. Look in the path if we contain no path at all # relative or not. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} { (exit 1); exit 1; }; } fi case $CONFIG_SHELL in '') as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for as_base in sh bash ksh sh5; do case $as_dir in /*) if ("$as_dir/$as_base" -c ' as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } CONFIG_SHELL=$as_dir/$as_base export CONFIG_SHELL exec "$CONFIG_SHELL" "$0" ${1+"$@"} fi;; esac done done ;; esac # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line before each line; the second 'sed' does the real # work. The second script uses 'N' to pair each line-number line # with the numbered line, and appends trailing '-' during # substitution so that $LINENO is not a special case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) sed '=' <$as_myself | sed ' N s,$,-, : loop s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, t loop s,-$,, s,^['$as_cr_digits']*\n,, ' >$as_me.lineno && chmod +x $as_me.lineno || { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensible to this). . ./$as_me.lineno # Exit status is that of the last command. exit } case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in *c*,-n*) ECHO_N= ECHO_C=' ' ECHO_T=' ' ;; *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; *) ECHO_N= ECHO_C='\c' ECHO_T= ;; esac if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then # We could just check for DJGPP; but this test a) works b) is more generic # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). if test -f conf$$.exe; then # Don't use ln at all; we don't have any links as_ln_s='cp -p' else as_ln_s='ln -s' fi elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.file if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_executable_p="test -f" # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" # IFS # We need space, tab and new line, in precisely that order. as_nl=' ' IFS=" $as_nl" # CDPATH. $as_unset CDPATH exec 6>&1 # Open the log real soon, to keep \$[0] and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. Logging --version etc. is OK. exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX } >&5 cat >&5 <<_CSEOF This file was extended by $as_me, which was generated by GNU Autoconf 2.59. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ _CSEOF echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 echo >&5 _ACEOF # Files that config.status was made for. if test -n "$ac_config_files"; then echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS fi if test -n "$ac_config_headers"; then echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS fi if test -n "$ac_config_links"; then echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS fi if test -n "$ac_config_commands"; then echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS fi cat >>$CONFIG_STATUS <<\_ACEOF ac_cs_usage="\ \`$as_me' instantiates files from templates according to the current configuration. Usage: $0 [OPTIONS] [FILE]... -h, --help print this help, then exit -V, --version print version number, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE Configuration files: $config_files Report bugs to <bug-autoconf@gnu.org>." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ config.status configured by $0, generated by GNU Autoconf 2.59, with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" Copyright (C) 2003 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." srcdir=$srcdir INSTALL="$INSTALL" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # If no file are specified by the user, then we need to provide default # value. By we need to know if files were specified by the user. ac_need_defaults=: while test $# != 0 do case $1 in --*=*) ac_option=`expr "x$1" : 'x\([^=]*\)='` ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` ac_shift=: ;; -*) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; *) # This is not an option, so the user has probably given explicit # arguments. ac_option=$1 ac_need_defaults=false;; esac case $ac_option in # Handling of the options. _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --vers* | -V ) echo "$ac_cs_version"; exit 0 ;; --he | --h) # Conflict between --help and --header { { echo "$as_me:$LINENO: error: ambiguous option: $1 Try \`$0 --help' for more information." >&5 echo "$as_me: error: ambiguous option: $1 Try \`$0 --help' for more information." >&2;} { (exit 1); exit 1; }; };; --help | --hel | -h ) echo "$ac_cs_usage"; exit 0 ;; --debug | --d* | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift CONFIG_FILES="$CONFIG_FILES $ac_optarg" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" ac_need_defaults=false;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 Try \`$0 --help' for more information." >&5 echo "$as_me: error: unrecognized option: $1 Try \`$0 --help' for more information." >&2;} { (exit 1); exit 1; }; } ;; *) ac_config_targets="$ac_config_targets $1" ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF if \$ac_cs_recheck; then echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF for ac_config_target in $ac_config_targets do case "$ac_config_target" in # Handling of arguments. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:autoconf/Makefile.in" ;; "bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;; "macros/Makefile" ) CONFIG_FILES="$CONFIG_FILES macros/Makefile" ;; "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; "images/Makefile" ) CONFIG_FILES="$CONFIG_FILES images/Makefile" ;; *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} { (exit 1); exit 1; }; };; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason to put it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Create a temporary directory, and hook for its removal unless debugging. $debug || { trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 trap '{ (exit 1); exit 1; }' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" } || { tmp=./confstat$$-$RANDOM (umask 077 && mkdir $tmp) } || { echo "$me: cannot create a temporary directory in ." >&2 { (exit 1); exit 1; } } _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # # CONFIG_FILES section. # # No need to generate the scripts if there are no CONFIG_FILES. # This happens for instance when ./config.status config.h if test -n "\$CONFIG_FILES"; then # Protect against being on the right side of a sed subst in config.status. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF s,@SHELL@,$SHELL,;t t s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t s,@exec_prefix@,$exec_prefix,;t t s,@prefix@,$prefix,;t t s,@program_transform_name@,$program_transform_name,;t t s,@bindir@,$bindir,;t t s,@sbindir@,$sbindir,;t t s,@libexecdir@,$libexecdir,;t t s,@datadir@,$datadir,;t t s,@sysconfdir@,$sysconfdir,;t t s,@sharedstatedir@,$sharedstatedir,;t t s,@localstatedir@,$localstatedir,;t t s,@libdir@,$libdir,;t t s,@includedir@,$includedir,;t t s,@oldincludedir@,$oldincludedir,;t t s,@infodir@,$infodir,;t t s,@mandir@,$mandir,;t t s,@build_alias@,$build_alias,;t t s,@host_alias@,$host_alias,;t t s,@target_alias@,$target_alias,;t t s,@DEFS@,$DEFS,;t t s,@ECHO_C@,$ECHO_C,;t t s,@ECHO_N@,$ECHO_N,;t t s,@ECHO_T@,$ECHO_T,;t t s,@LIBS@,$LIBS,;t t s,@SET_MAKE@,$SET_MAKE,;t t s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t s,@INSTALL_DATA@,$INSTALL_DATA,;t t s,@LIBOBJS@,$LIBOBJS,;t t s,@LTLIBOBJS@,$LTLIBOBJS,;t t CEOF _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # Split the substitutions into bite-sized pieces for seds with # small command number limits, like on Digital OSF/1 and HP-UX. ac_max_sed_lines=48 ac_sed_frag=1 # Number of current file. ac_beg=1 # First line for current file. ac_end=$ac_max_sed_lines # Line after last line for current file. ac_more_lines=: ac_sed_cmds= while $ac_more_lines; do if test $ac_beg -gt 1; then sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag else sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag fi if test ! -s $tmp/subs.frag; then ac_more_lines=false else # The purpose of the label and of the branching condition is to # speed up the sed processing (if there are no `@' at all, there # is no need to browse any of the substitutions). # These are the two extra sed commands mentioned above. (echo ':t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed if test -z "$ac_sed_cmds"; then ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" else ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" fi ac_sed_frag=`expr $ac_sed_frag + 1` ac_beg=$ac_end ac_end=`expr $ac_end + $ac_max_sed_lines` fi done if test -z "$ac_sed_cmds"; then ac_sed_cmds=cat fi fi # test -n "$CONFIG_FILES" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case $ac_file in - | *:- | *:-:* ) # input from stdin cat >$tmp/stdin ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; * ) ac_file_in=$ac_file.in ;; esac # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. ac_dir=`(dirname "$ac_file") 2>/dev/null || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` { if $as_mkdir_p; then mkdir -p "$ac_dir" else as_dir="$ac_dir" as_dirs= while test ! -d "$as_dir"; do as_dirs="$as_dir $as_dirs" as_dir=`(dirname "$as_dir") 2>/dev/null || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` done test ! -n "$as_dirs" || mkdir $as_dirs fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} { (exit 1); exit 1; }; }; } ac_builddir=. if test "$ac_dir" != .; then ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A "../" for each directory in $ac_dir_suffix. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` else ac_dir_suffix= ac_top_builddir= fi case $srcdir in .) # No --srcdir option. We are building in place. ac_srcdir=. if test -z "$ac_top_builddir"; then ac_top_srcdir=. else ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` fi ;; [\\/]* | ?:[\\/]* ) # Absolute path. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ;; *) # Relative path. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_builddir$srcdir ;; esac # Do not use `cd foo && pwd` to compute absolute paths, because # the directories may not exist. case `pwd` in .) ac_abs_builddir="$ac_dir";; *) case "$ac_dir" in .) ac_abs_builddir=`pwd`;; [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; *) ac_abs_builddir=`pwd`/"$ac_dir";; esac;; esac case $ac_abs_builddir in .) ac_abs_top_builddir=${ac_top_builddir}.;; *) case ${ac_top_builddir}. in .) ac_abs_top_builddir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; esac;; esac case $ac_abs_builddir in .) ac_abs_srcdir=$ac_srcdir;; *) case $ac_srcdir in .) ac_abs_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; esac;; esac case $ac_abs_builddir in .) ac_abs_top_srcdir=$ac_top_srcdir;; *) case $ac_top_srcdir in .) ac_abs_top_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; esac;; esac case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_builddir$INSTALL ;; esac # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ if test x"$ac_file" = x-; then configure_input= else configure_input="$ac_file. " fi configure_input=$configure_input"Generated from `echo $ac_file_in | sed 's,.*/,,'` by configure." # First look for the input files in the build tree, otherwise in the # src tree. ac_file_inputs=`IFS=: for f in $ac_file_in; do case $f in -) echo $tmp/stdin ;; [\\/$]*) # Absolute (can't be DOS-style, as IFS=:) test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } echo "$f";; *) # Relative if test -f "$f"; then # Build tree echo "$f" elif test -f "$srcdir/$f"; then # Source tree echo "$srcdir/$f" else # /dev/null tree { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } fi;; esac done` || { (exit 1); exit 1; } if test x"$ac_file" != x-; then { echo "$as_me:$LINENO: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} rm -f "$ac_file" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF sed "$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s,@configure_input@,$configure_input,;t t s,@srcdir@,$ac_srcdir,;t t s,@abs_srcdir@,$ac_abs_srcdir,;t t s,@top_srcdir@,$ac_top_srcdir,;t t s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t s,@builddir@,$ac_builddir,;t t s,@abs_builddir@,$ac_abs_builddir,;t t s,@top_builddir@,$ac_top_builddir,;t t s,@abs_top_builddir@,$ac_abs_top_builddir,;t t s,@INSTALL@,$ac_INSTALL,;t t " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out rm -f $tmp/stdin if test x"$ac_file" != x-; then mv $tmp/out $ac_file else cat $tmp/out rm -f $tmp/out fi done _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF { (exit 0); exit 0; } _ACEOF chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || { (exit 1); exit 1; } fi �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������tmexpand-0.1.2-0/doc/�������������������������������������������������������������������������������0040755�0026574�0026574�00000000000�10233756413�013270� 5����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������tmexpand-0.1.2-0/doc/tm/����������������������������������������������������������������������������0040755�0026574�0026574�00000000000�10233756413�013710� 5����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������tmexpand-0.1.2-0/doc/tm/tmexpand.tm�����������������������������������������������������������������0100644�0026574�0026574�00000004560�10221320562�016061� 0����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#i docbook_man.tm #d arg#1 <arg>$1</arg>\__newline__ #d tmexpand \command{tmexpand} #d jed \command{jed} #d jedscript \command{jed-script} #d slang \literal{S-Lang} #d ifun#1 \literal{$1} #d sfun#1 \literal{$1} \manpage{tmexpand}{1}{jed text-macro processor} \mansynopsis{tmexpand}{ \arg{\option{--version}} \arg{\option{-g}} \arg{\option{-I\replaceable{include-dir} \option{-I\replaceable{include-dir} ...}}} \arg{\replaceable{input-file}|-} \arg{\replaceable{output-file}|-} } \refsect1{DESCRIPTION} \p \tmexpand is a simple \jedscript program for expanding a text-macro file. Both the \slang and \jed documentation, as well as the jedsoft.org web pages are written in text-macro format. \p Included in the \tmexpand distribution are macros for the creation of jedsoft.org style HTML pages, macros for producing linuxdoc and docbook SGML files, and macros for expanding \slang function text-macro documentation to the \slang help file format. \p-end \refsect1-end #d man_options_entry#2 \varlistentry{\term{$1}}{\p $2 \p-end}\__newline__ \refsect1{OPTIONS} \variablelist \man_options_entry{\option{--version}}{ Print version information } \man_options_entry{\option{-g}}{ Load with _traceback set to 1. This is useful for debugging \tmexpand itself. } \man_options_entry{\option{-I\replaceable{include-dir}}}{ Append the directory to the macro-directory search list. } \variablelist-end \refsect1-end \refsect1{REQUIREMENTS} \p \tmexpand is a \slang script that is processed by the \jed editor. Version 0.99-17 or later of the \jed editor is required to run the script. To get the most out of \tmexpand, jed should be compiled against \slang version 2. \refsect1-end \refsect1{USAGE} \p This section is incomplete. \p-end \refsect1-end \refsect1{BUGS} \p Debugging the output when something goes wrong can be tricky. \refsect1{AUTHOR} \p The author of \tmexpand is John E. Davis <jed@jedsoft.org>. \pp Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation. \pp On Debian systems, the complete text of the GNU General Public License can be found in \filename{/usr/share/common-licenses/GPL} \p-end \refsect1-end \manpage-end ������������������������������������������������������������������������������������������������������������������������������������������������tmexpand-0.1.2-0/doc/tm/Makefile��������������������������������������������������������������������0100644�0026574�0026574�00000001246�10221320562�015335� 0����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������# -*- sh -*- # # To create the SGML files, you will need to install the tm-utils # package. See http://www.jedsoft.org/ for more information. # ROOT_DIR = ../.. TMEXPAND = $(ROOT_DIR)/bin/tmexpand MACRODIR = $(ROOT_DIR)/macros DOCBOOK2MAN = docbook2man tmexpand.1: tmexpand.sgml $(DOCBOOK2MAN) tmexpand.sgml tmexpand.sgml: tmexpand.tm $(TMEXPAND) -I$(MACRODIR) tmexpand.tm tmexpand.sgml view: tmexpand.1 nroff -man tmexpand.1 | most #---------------------------------------------------------------------------- clean: -rm -f *~ *-error manpage.refs manpage.links distclean: clean -rm -f tmexpand.1 tmexpand.sgml install: tmexpand.1 -mkdir ../man -mv tmexpand.1 ../man ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������tmexpand-0.1.2-0/doc/man/���������������������������������������������������������������������������0040755�0026574�0026574�00000000000�10233756413�014043� 5����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������tmexpand-0.1.2-0/doc/man/tmexpand.1�����������������������������������������������������������������0100644�0026574�0026574�00000004043�10221320562�015730� 0����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" <http://shell.ipoline.com/~elmert/comp/docbook2X/> .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng <steve@ggi-project.org>. .TH "TMEXPAND" "1" "25 March 2005" "" "" .SH NAME tmexpand \- jed text-macro processor .SH SYNOPSIS \fBtmexpand\fR [ \fB--version\fR] [ \fB-g\fR] [ \fB-I\fIinclude-dir\fB -I\fIinclude-dir\fB ...\fR] [ \fB\fIinput-file\fB|-\fR] [ \fB\fIoutput-file\fB|-\fR] .SH "DESCRIPTION" .PP \fBtmexpand\fR is a simple \fBjed-script\fR program for expanding a text-macro file. Both the S-Lang and \fBjed\fR documentation, as well as the jedsoft.org web pages are written in text-macro format. .PP Included in the \fBtmexpand\fR distribution are macros for the creation of jedsoft.org style HTML pages, macros for producing linuxdoc and docbook SGML files, and macros for expanding S-Lang function text-macro documentation to the S-Lang help file format. .SH "OPTIONS" .TP \fB--version\fR Print version information .TP \fB-g\fR Load with _traceback set to 1. This is useful for debugging \fBtmexpand\fR itself. .TP \fB-I\fIinclude-dir\fB\fR Append the directory to the macro-directory search list. .SH "REQUIREMENTS" .PP \fBtmexpand\fR is a S-Lang script that is processed by the \fBjed\fR editor. Version 0.99-17 or later of the \fBjed\fR editor is required to run the script. To get the most out of \fBtmexpand\fR, jed should be compiled against S-Lang version 2. .SH "USAGE" .PP This section is incomplete. .SH "BUGS" .PP Debugging the output when something goes wrong can be tricky. .SH "AUTHOR" .PP The author of \fBtmexpand\fR is John E. Davis <jed@jedsoft.org>. .PP Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation. .PP On Debian systems, the complete text of the GNU General Public License can be found in \fI/usr/share/common-licenses/GPL\fR ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������tmexpand-0.1.2-0/doc/Makefile.in��������������������������������������������������������������������0100644�0026574�0026574�00000001316�10233753156�015334� 0����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������install_dir = @prefix@/man/man1 INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ MKINSDIR = ../autoconf/mkinsdir.sh #--------------------------------------------------------------------------- # DESTDIR is designed to facilitate making packages. Normally it is empty #--------------------------------------------------------------------------- DESTDIR = DEST_INSTALL_DIR = $(DESTDIR)$(install_dir) #--------------------------------------------------------------------------- all: # $(DEST_INSTALL_DIR): $(MKINSDIR) $(DEST_INSTALL_DIR) install: $(DEST_INSTALL_DIR) @echo $(INSTALL_DATA) man/tmexpand.1 $(DEST_INSTALL_DIR) $(INSTALL) man/tmexpand.1 $(DEST_INSTALL_DIR) clean: /bin/rm -rf *~ #* distclean: clean # ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������tmexpand-0.1.2-0/doc/examples/����������������������������������������������������������������������0040755�0026574�0026574�00000000000�10233756413�015106� 5����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������tmexpand-0.1.2-0/doc/examples/web/������������������������������������������������������������������0040755�0026574�0026574�00000000000�10233756413�015663� 5����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������tmexpand-0.1.2-0/doc/examples/web/sidebar.tm��������������������������������������������������������0100644�0026574�0026574�00000000164�10221320562�017621� 0����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#d corner_html Something for the corner \sidebar_link{index.html}{Index Page} \sidebar_link{other.html}{Other Page} ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������tmexpand-0.1.2-0/doc/examples/web/other.tm����������������������������������������������������������0100644�0026574�0026574�00000000212�10221320562�017323� 0����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#i jdweb.tm #d pagename The Other Page #d pagedescription \pagename \p This text forms the main text for the \pagename. #i jdweb_end.tm ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������tmexpand-0.1.2-0/doc/examples/web/index.tm����������������������������������������������������������0100644�0026574�0026574�00000000216�10221320562�017315� 0����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#i jdweb.tm #d pagename Example Index Page #d pagedescription \pagename \p This text forms the main text for the \pagename. #i jdweb_end.tm ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������tmexpand-0.1.2-0/doc/examples/web/Makefile����������������������������������������������������������0100644�0026574�0026574�00000000511�10221320562�017302� 0����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������# -*- sh -*- TMEXPAND = ../../bin/tmexpand MACRODIR = ../../macros TMFILES = index.tm other.tm all: index.html other.html index.html: sidebar.tm $(TMEXPAND) -I$(MACRODIR) index.tm index.html other.html: sidebar.tm $(TMEXPAND) -I$(MACRODIR) other.tm other.html clean: /bin/rm -f *~ "#*" distclean: clean /bin/rm -f *.html ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������tmexpand-0.1.2-0/doc/examples/help.tm���������������������������������������������������������������0100644�0026574�0026574�00000001110�10221320562�016353� 0����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#%+ Text appearing between the #%+/- delimiters will be ignored and not appear when expanded. This example shows how slang function documentation may be expanded using the slhlp macros. It does not expand to .sgml, but to the text format that slang reads. #%- #i slhlp.tm #d int Integer_Type \function{my_function} \synopsis{A function returning an integer} \usage{\int my_function ()} \description This function returns an integer. \example #v+ if (my_function ()) exit (1); #v- \notes This function is obsolete \seealso{my_other_function, bobs_function} \done ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������tmexpand-0.1.2-0/doc/examples/Makefile��������������������������������������������������������������0100644�0026574�0026574�00000000336�10233750314�016537� 0����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������TMEXPAND = ../bin/tmexpand MACRODIR = ../macros TMFILES = help.tm all: help.hlp help.hlp: help.tm $(TMEXPAND) -I$(MACRODIR) help.tm help.hlp clean: /bin/rm -f *-error *~ "#*" distclean: clean /bin/rm -f *.sgml *.hlp ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������tmexpand-0.1.2-0/images/����������������������������������������������������������������������������0040755�0026574�0026574�00000000000�10233756413�013770� 5����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������tmexpand-0.1.2-0/images/anybrowser4b.png������������������������������������������������������������0100644�0026574�0026574�00000000625�10221320562�017104� 0����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������‰PNG  ��� IHDR���X������¦âs���gAMA��¯È7Šé��� PLTE���ÿÿÿÿ���ÿÿ’9Î8���tIMEÍ+ÚȽé���tEXtSoftware�XPaint 2.4.4.¿ÁÇ���IDATxœ•пjÃ@ pÁ­½ŠàÖõ:´sß/z÷bí†{wh»Š¨þ“Ð8C4¿A‡>ø<š8äwøòƒ‘çlŽKTç9Î^ÙnlzÇ~ÇÆ;SJ9XR ÀÛ—±¤‘4©QN¼sÃ%*¡&Æ+㘆Pb&uÄoL’1Ê ‡-@LèÌŒ;¿t¼·[:ææ_Îk²®ß}+",ª%;‡§zj[ ‚ ä `åzªµíÅ àÖܬ<Í<õâѸ¸VõS»…-š70øÆçK÷[]D-1±eÙ¸½Ì[\‚x"î:é;Ù.z¬ê ?4ø/Ìé‘ÑÛ°b2Â����IEND®B`‚�����������������������������������������������������������������������������������������������������������tmexpand-0.1.2-0/images/Makefile.in�����������������������������������������������������������������0100644�0026574�0026574�00000002157�10233753156�016040� 0����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������IMG_FILES = anybrowser4b.png new.png valid-html401.png madewithjed.jpg \ sidebar_arrow_cccccc.png #--------------------------------------------------------------------------- # Directory where macros and sl files are to be installed #--------------------------------------------------------------------------- install_dir = @prefix@/share/tmexpand/images INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ MKINSDIR = ../autoconf/mkinsdir.sh #--------------------------------------------------------------------------- # DESTDIR is designed to facilitate making packages. Normally it is empty #--------------------------------------------------------------------------- DESTDIR = DEST_INSTALL_DIR = $(DESTDIR)$(install_dir) #--------------------------------------------------------------------------- all: clean: /bin/rm -rf *~ #* distclean: clean $(DEST_INSTALL_DIR): $(MKINSDIR) $(DEST_INSTALL_DIR) install: $(DEST_INSTALL_DIR) @for X in $(IMG_FILES); \ do \ echo $(INSTALL_DATA) $$X $(DEST_INSTALL_DIR); \ $(INSTALL_DATA) $$X $(DEST_INSTALL_DIR); \ if [ "$$?" != "0" ]; then \ exit 1; \ fi; \ done # �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������tmexpand-0.1.2-0/images/fig/������������������������������������������������������������������������0040755�0026574�0026574�00000000000�10233756413�014535� 5����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������tmexpand-0.1.2-0/images/fig/sidebar_arrow.fig.tm����������������������������������������������������0100644�0026574�0026574�00000000634�10221320562�020453� 0����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#d __remove_empty_lines 0 #i bgcolor.tm \#FIG 3.2 Landscape Center Metric A4 12.00 Single -2 1200 2 0 32 #303030 0 33 \bgcolor 2 1 0 10 7 7 50 0 -1 0.000 0 0 -1 0 0 2 3161 6319 4286 5689 2 1 0 5 0 7 50 0 -1 0.000 0 0 -1 0 0 2 3195 5085 3195 6300 2 1 0 5 32 7 50 0 -1 0.000 0 0 -1 0 0 2 3195 5130 4230 5625 2 2 0 1 33 33 200 0 20 0.000 0 0 -1 0 0 5 2925 4635 4545 4635 4545 6390 2925 6390 2925 4635 ����������������������������������������������������������������������������������������������������tmexpand-0.1.2-0/images/fig/new.fig�����������������������������������������������������������������0100644�0026574�0026574�00000000701�10221320562�015775� 0����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#FIG 3.2 Landscape Center Metric A4 50.00 Single -2 1200 2 2 3 0 1 0 31 50 0 20 0.000 0 0 -1 0 0 28 8010 5400 7920 5130 7875 5535 7695 5355 7695 5535 7425 5580 7650 5760 7335 6120 7515 6075 7695 6165 7875 5985 8055 6165 8280 5895 8505 6210 8820 5850 9090 6075 9180 5805 9720 5670 9270 5625 9315 5175 9135 5355 9045 5085 8775 5445 8595 5040 8370 5355 8145 5130 8010 5355 8010 5400 4 0 1 50 0 19 27 0.0000 4 315 990 7920 5805 New!\001 ���������������������������������������������������������������tmexpand-0.1.2-0/images/fig/Makefile����������������������������������������������������������������0100644�0026574�0026574�00000000450�10221320562�016156� 0����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������COLOR = cccccc TM = ../../bin/tm2xxx FILE = sidebar_arrow_$(COLOR) $(FILE).png: sidebar_arrow.fig.tm echo "#d bgcolor #$(COLOR)" > bgcolor.tm $(TM) sidebar_arrow.fig.tm $(FILE).fig fig2dev -L png -m 0.1 $(FILE).fig $(FILE).png /bin/rm $(FILE).fig bgcolor.tm clean: /bin/rm -rf *~ *.png #* ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������tmexpand-0.1.2-0/images/new.png���������������������������������������������������������������������0100644�0026574�0026574�00000001346�10221320562�015255� 0����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������‰PNG  ��� IHDR���T���*���¢!ë'��� pHYs�� M�� MÒέN���tEXtSoftware�GNU Ghostscript 5.10—N��oIDATxœåš[’Ä Eeª7“ý/&Ëa>L;y%鮹_©.A$¦ËÕÏÓ”R ��Àýó¾îŸ’�p?è°®T<f?ÂóO) ? We$7·›f´v™)!ìÇpUF2ÁÀ}ù­‹ÐX¿}òþGª&^1²ÐF?àå{~ÆÏ’˺#à{‹•H)[ ëó¦l¿\ ¶eÓÌ—CðdJ•c¹l†ó_ /Û}äÞÕÚ›ši¬R8“Áó)y;ýTœùøÜsK£Äz†•mÏ ü¹VãY)s»ÍÿW“_¶ þ·K.œµ=¿MÄf¿8T #ƒ°âáG0¶nûvà³LˆÌê±¾ ¾ÁøLº$ê´çkmwé¸ä—ÉB×¼¶ëšð6ÿô½FÜAãÌÑíêÙKVc{fÏ#âqIÖ«äG=ž¥åܤŸ?êÑÄPÝãJ]±Ãé1¢tÔÕÐø_³cû$7²á³A‚ Ñ»d„Å9¯ç?õâH|1ï ¸Wæ½ýÌD²KŸ«•À§.ÊÛÒOVÅv|Ãjû¯ ¯ò}½™Â9l%Rt,õü·º™Z¹&Öª®ïù\·;Ø#EŠY |:yŠõWðSø+Èë³ÞúY$#Db¾xù2˜GË4ü2O®ÿÿž•¼e£‹"e¦”÷®c:–6ñõèl"Ë/`ÌÖËÃúOÑÓZõNÊÃÙê²&2kg,ƒ»×§×lnöŒ•RQûC‚ãò²¬íFínoåÏe›¾±{±²¤ªð”Æ™|/Ë¹ŠæŒèôá¤Ñ/'4ÎhOKu����IEND®B`‚������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������tmexpand-0.1.2-0/images/madewithjed.jpg�������������������������������������������������������������0100644�0026574�0026574�00000003532�10221320562�016744� 0����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ÿØÿà�JFIF������ÿÛ�C�    $.' ",#(7),01444'9=82<.342ÿÛ�C  2!!22222222222222222222222222222222222222222222222222ÿÀ���Z"�ÿÄ����������� ÿÄ�µ���}�!1AQa"q2‘¡#B±ÁRÑð$3br‚ %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyzƒ„…†‡ˆ‰Š’“”•–—˜™š¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖרÙÚáâãäåæçèéêñòóôõö÷øùúÿÄ�������� ÿÄ�µ��w�!1AQaq"2B‘¡±Á #3RðbrÑ $4á%ñ&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz‚ƒ„…†‡ˆ‰Š’“”•–—˜™š¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖרÙÚâãäåæçèéêòóôõö÷øùúÿÚ� ��?�wÅÿ�øÃž3ŠÇHÕ´ i…<”l±w唞€WoñKÆr®¿¹û<cøåuÿ�µXtŒ¶—ó\ù ‘ YT¶UÙ.1w0çµdCâ}.óìë¨Ë+Cö)!%åÌs_ÎmØÜ ÌP¹S¹¹#'»)£¥b½¿ÄŸ¸MÚÑ'nîcõÿ�vµ<]i}%­æ¦Ë,:H»#;XpFBÕ†ÕQ´Î¨¤:ˆ…ú¯ÚŠ€­322´§)°óÆ"<€ UÍSZ†âÚìYIÃqq3•—ÍV¹ 3âE_õgåÀÜÃp(q‚«]µþ9E[p´ñf»6š›ýÁƒµG¥j?‰u,§¸¹»•’gu\d€¹8®nÊ<F»”PÈÏZÙ–>Ÿq ÏÎŒ™$wR+IF=ŽNgrƒüAÖ-Ö!y¦H¿hÄvæ+Û¤=eÑêF~†¬x˜9#DˆæOùÿ�?üj¶|Iá¦/áÕ!Nûè¶ò8ùXÖÿ�„õ„½3XÁ§ÝFá¥ÕËG呞F#|ç<ôû£¯l ·fܲ{#’ˆZœ{u £2Ÿ*ßʼV (l¢í_q“ìjÔ~:ÖÁùü7|Ãþbgÿ�TºåÄ+=WK²Ša$W0½œžyÚ—‡1«nù€CÉœÐøzÊÖûT¿‘¬æh‚B;ËF„†Ëä„•AÁÈä c<p¯ \-.Äÿ�ð’i÷žÔ¯¬3£mes:ÚÜɉTÆ2hc•É^A#œprÌóxËÄ2Ï$­Ý‚ìX…¸À=‡j÷»­ £ðl7“òeÜ2¹!˜3ZH ürkæã'1óøVR÷_ºÍéY­Qêr~!D äý8ýä•™àÁ`Ê~ÚlÜŨZÎÿ�h ÿ�è_Í�·ÞÈ)ò –ì*‰¾.Óu¯\JúuÖëeû0o=W;Xž›O÷Ns°k:Q–ÆèÝ<ôéÿ�|UÁÅhØõµìz®•.™§ÚD™ÓF ‘4e€‰Æ÷`Ã*ˇ„’£å Œp[Ê¿b²Óe6Ž‘ØÜeHÙ–eiÙ�dõ@=ÃsæPø‡NJX\dg!¥R:ÿ�»Wbñ•´'riî~aÁ”qù ÙJÈ|Ýèvk˜×!C9ùk/Qñ%õ¿Ú,®tû[i_ä ×x#×÷_0ü}Žk‹âHˆ�4ÁŒ:Þÿ�õ¨ºø•Ü>UÖ‡mq²:¬ß8 ŒgžüŸÎœªEõ1)-ÑÖ_ø¢]nçFƒMŠYî ºº ¡·’�ëëSOñhu)äRdýÚ4SÌð˜KnùB7<€s‚6×kñ Œ–žÓíå(Ê^%ÚHë‚F8àS/~&=äÂk¯h÷2mP¯<EØL“Ó$Ön¤KT¥Øë5?ˆ1ÝǸӭ£˜ÏŽhgiXmž7`AEÀ!Iàž@ã¸Ö¶øš4ÝFââ XnÖhbB&¡(T¿<#g;‡§Jóh¾$´2¾ðÖá¼gìg8`A{¸$~5j/Š1*á¼áGÂŽ¶?ýzÍÕƒV4TYé: åæ³áé~Ï –ÏO°ž+»¸Mßfu ¹êrAÀèÎ23à®ø‘¾UêåzDŸõ¢I¤Ûh:]­¤ÉŽÝЮzW•›¦b[o^~ñ¨©Ræ§Ë±ÿÙ����������������������������������������������������������������������������������������������������������������������������������������������������������������������tmexpand-0.1.2-0/images/sidebar_arrow_cccccc.png����������������������������������������������������0100644�0026574�0026574�00000000320�10221320562�020557� 0����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������‰PNG  ��� IHDR��� ��� ���K��� pHYs�� M�� MÒέN���tEXtSoftware�GNU Ghostscript 5.10—N���YIDATxœ•Ñ» À0ÐsäX‰± dFJAÇGN®¡¸'„ÄRUÜò\ÅOÄÌÌ<¡ÃÝU5œˆô(u¥%•އ‹È9gÜ€ˆ�˜YRQ[gÔÖ‘õåw/è(k·…g����IEND®B`‚����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������tmexpand-0.1.2-0/images/valid-html401.png�����������������������������������������������������������0100644�0026574�0026574�00000005604�10221320562�016753� 0����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������‰PNG  ��� IHDR���X������cÈ à���gAMA��± üa���bKGD�ÿ�ÿ�ÿ ½§“��� pHYs�� �� ÒÝ~ü���tIMEÑ+Øxé�� IDATxœÝš!”âJÖÇó' W¸DÖY•vÁŒL;Ú5’uŒëvI»Æ î!ÁÑ®ã&¸ŽúNÉàR.åfE$!ôÎîÙóÞìÞsè[·R·þuëŸ{«ù²ßïðˉý«ø—ÄZp¥Ô—fÛo�¾ïÿù^Ý“€^þÕ^ü´è4#Š5BŒ'³«ößþŸ~Bþ["Xk°¶Ýçÿû½ù”T!8ƒÝ_/‚Å­[ÞÛŠÞ6;´ØÖÿgmo]òJŸkùõ�®úiíùVˆ²ÑÂI+×[3Ï¡Ó)a(íÎ.¶Õ~B\ƺ¶ýì*Š7Üe”+¹¢ˆ¶u°7ôm6mŸK„`÷‘¢Âóå¾@Aâ}¡[½pH2T¸B…+î†ÅU=¼¡ÂIš3_íQáŠÞxƒÉ�ŠghÒmPáŠåæ\É|ó WDûô´š\@»u¥bû|ÐGž7 C×qpÖÇÍ×YÄd4àiXÏ8ŽÆNß°6§M”Óå}6,\°–årIš¦<<<àû>I’ º]”ã\ùžÙâùYt/ GcÑGËÃ}—Ùó�“å<Ïw(Gðû×�®ÛA§–£)>Ë胧q€ù&!Ñ€ÔX•vÆT#òg¢˜ŠýµÔ�V]‰¶–·Xó:®èe6Ûä à½N9ìuqÓiðX2èœ5ÏÏÏ, �^^^Øn·¼¿¿3 PaxåóéiñA3Æ�g`�¤’Œ‡ÖXžç;<%?z•ù_)X¬<î8¦9Ë7#Gc¹xׄ© ô€ƒ¥<<ÖïvÉ‘¾WD•§$Aàï4úhPŽ<÷‰÷lÎðaÀl\DÏá#eô!\X”;ÁÃr¹Äó<†Ã!»ÝŽápˆµ–ÑhTŸá‰ÞJÕ!1’CÍñ!Ø<¿àiÊÉ–”"|yLÞbNs¬µ|ûL‡ž 6f¦Nrÿ!¾ï+°9ñA×ô¾r!ˈöu}Qú Ï‘xŽd¯SÈ2F¡_.Òr¹DJÉv»e6›ñýûwîïïñ<Ïóê3u—'Cl;æÇ~ÂfV,X^Á ‡õŒÀZx =<%™.ö,V†"ðÕ¥K)EAG‚ŸàâªM»\ô¸]Þ@t tˆ¶½¥ ኢàóõ©\f£ÁÙ6Š"žŸŸ‘òýüñËåíª­ºé¤’ ¹Þ™•›âï…;ó’O;ÀÓ¸G¢ úh™Žýf׳,V{¦Ó˜élËò-¹áQ  Ðëõd>¯=\¥iŽô=—Ý!%9<GrÐGâ†.ćôLñAsL ÃG ,0šG[–³!Ž,а֒eá‰g+R‹Þ>¥ïnWø¾' :°àJIà;ÜÝuËùY¾ƒçRàžï`ò!:ŒE(”#ñ}—äÖžs§º„}‡ÌB¼M±X,„^È6ÎBp\½ï^°€ÑúGÿÛ·/­� <‡]ôA´ÕxCŸM¬‹ï){M´×LB¿ŒæœQP€4_ï8l?Àíï5ï"…ÀZ‹R ¥TÛpu±—/¾×åûò¡P–\×ïuù¾z(îK[Ù…÷ŵȲð4êñ4º;ƒ³y Kl,žçò}u_tцÇÐãñ¦çÅ«ÚàßR:‰Aî.Ѿ_,ȳìG°Xü­µTz ä…Þv(Ça:êœõñA#Ü.ï ³é±XÆ<L#Œµ! ˆÂWui«ÖNµûD¯9²YõÙÚßE¥°¨¾¸nUŒ³ÕdoÉUn‘¬×è8þÿV€ž‹è >Ò”]r$Ñ¥º¥~¯/úÀWȸ?&éfÂf6D¸.q¼g%g€oˆÔäŒ×gù¨¸ÑÖf×ÌUöþÖ÷F!Ðë„ýË®µ�ï==á†á—V€¥øÊåh,¯o{È-ž+‘R0ðTMz¹]‚a_ñ4ìè°Œö@q$úS\[ƒæ$Å©®m·¼åOv¢m1iJ3Rk~¶ù�ú-!žÆ­$Ò{z¢ÿúúEqû4í~  ³¼Å tЍÎút¾’­ýƒžЩÅZ~žjAUߦ‡$#Š3]C‡ftSË:ʘo2ÖQÆ1m<«d(Î(²ÑS[1x²ÜctZYÌÊ”àF%¸—^…œÀ=yvà°¯Š|0·8Ž$‘:ô¢,[¥Ü)÷Ÿ¢•šã'6Ô©£¹×Ê(Œ¶9Ï+ÃleˆöYÃðrÝ%“eÊ22lË·È0Yfì’°˜ mY¼gÌV†MœUÆÃbO<ß?ǘ¤²cM\V•µØ‚Áï¿×À…O�ö•Sî{Þ™g=%ñ=²âeèHÁ:Nøû"¦ŠÓAÈ,žrÑìv»Öq‹QÝð¢˜Ô[”13x® Ó-á¼¢Š"[ù¶1“¡d3UL‡c,¯›b'­âŒ¯ó”hgétNkSŒs˜oÙ.‹Š1Õ†Í(âë²*,"wó5j-œ»ãþlvõ/£OÜC_ù9zOò0ð }Y }‹,1ÏËd}4%÷æ¾b0°Z­H’zâÞV|4“‚x›ñúž`Têçfa9蜣åÂA½ÊkIR]ž%A}Lý–œÁ=o{kyŽ9Æ%µÈ­ŠõiY±6åÓóà ç0wÝsv’ÐWLÝ.ƒ^¡Ÿ‚$e±Ú±Ù&X &5HÏeúà!„`2™0éõzH)ÑZ³^¯‡Áåä® àáPDnO fã.‰†ƒh*•SÎóœœ"/.2/‹Å}®!ËrüAå v»¬váöTßAïŽunµ–÷¯Qm¤*9¹¡ÂúNËÂòi÷<—§aïL'Q®ài88úô=‡Ílˆwçp<Œ±xw›éÃ9:=Ïc:²Z­xyya½^óøøx£T.Æ[¼[2 žq’' I-ñ6»ä±•Ùu8¥Éâük)èà“-ÏåÏ*‹p»„‹¼PÁ¬>½coÒ¯äÍ×òi !ÎÅŵޯm•ÐW ^GìSCÎ'qU Ã4MÑZ#„h¯ìʤÿÄç]ÑÁò¶³åØpЖD[zw›èZ”ÛASœ§Ç“"“”Ûiy‰–ƒÚ¢!x éȘý:¹JObÁÄÇŸ Ð:»aUÈç�ßîךvI)d;Uû]?TÅžì`òЛƒ(bm¯s–‘!𣠋”‚u”ñmcßKÆÃ.Oð¾µÌÞ2_Š]pï Š„çñyÞ VПHW²ïZ3îÁSoÒkí¿Á‰TÖÍWeÒo-H gçî”Àó  ¤�×½œõÿ>êâts¢½añf‘ÆdžR†ÄN'çN Üè§voÒC¸âç¸N 'pOçÎmŽWäË~¿ÿñëýðd~£±HÅê›§\€†ÎØ‚:d÷´Ûš&°XD2U›„c¤yް‚§>Þø¹EÇâ‡' ¸“§×ö_öüšÒ|¥W!ZÚZtR�êÄ­ÍWVù,hTk ;#pBÅ=!™ÎàžÌn1u!¿Àg?m9ïæµ„m‚ 5lØ6F­RJ*_¶p 'PÔ*©óÎgÖå7Qž×&IB–e­FŠœò¨ìtÚÀp}¾s#ÿü—¥-›ãTÚNœ¯–DUf›üfŒa:bŒ!¿¼Vét:äyþ§]ÏãbÉMBGrkÙëI¬…D§Heh“�@çþ“ô½_¥����IEND®B`‚����������������������������������������������������������������������������������������������������������������������������tmexpand-0.1.2-0/bin/�������������������������������������������������������������������������������0040755�0026574�0026574�00000000000�10233756413�013273� 5����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������tmexpand-0.1.2-0/bin/Makefile.in��������������������������������������������������������������������0100644�0026574�0026574�00000001270�10233753156�015336� 0����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������install_dir = @prefix@/bin INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ MKINSDIR = ../autoconf/mkinsdir.sh #--------------------------------------------------------------------------- # DESTDIR is designed to facilitate making packages. Normally it is empty #--------------------------------------------------------------------------- DESTDIR = DEST_INSTALL_DIR = $(DESTDIR)$(install_dir) #--------------------------------------------------------------------------- all: # $(DEST_INSTALL_DIR): $(MKINSDIR) $(DEST_INSTALL_DIR) install: $(DEST_INSTALL_DIR) @echo $(INSTALL) tmexpand $(DEST_INSTALL_DIR) $(INSTALL) tmexpand $(DEST_INSTALL_DIR) clean: /bin/rm -rf *~ #* distclean: clean # ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������tmexpand-0.1.2-0/bin/tmexpand�����������������������������������������������������������������������0100755�0026574�0026574�00000052433�10233750314�015037� 0����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#! /usr/bin/env jed-script % -*- mode: slang; mode: fold -*- static variable TM_Expand_Version = "0.1.2-0"; static define do_usage () { () = fprintf (stderr, "Usage: %s [-g] [--version] [-Iinclude_dir...] [-Mmacro-pkg] <input-file>|- <output-file>|-\n", __argv[0]); exit (1); } public define tm_map_character (); public define tm_add_macro (); public define tm_set_include_path (); public define tm_get_include_path (); public variable __TM_FILE__; static define tm_process_buffer (); static define exit_with_version () { () = fprintf (stdout, "Version %s\n", TM_Expand_Version); () = fprintf (stdout, " (jed version: %s)\n", _jed_version_string); () = fprintf (stdout, " (S-Lang version: %s)\n", _slang_version_string); exit (0); } static define write_buffer_to_outfile (outfile) %{{{ { if (outfile != "-") { () = write_buffer (outfile); return; } bob (); while (not (eobp ())) { push_mark (); eol (); go_right (1); () = fputs (bufsubstr (), stdout); } } %}}} static define read_input_file (infile) %{{{ { if (infile != "-") { if (1 != file_status (infile)) { fprintf (stderr, "%s does not exist as an ordinary file", infile); exit (1); } () = read_file (infile); return; } setbuf ("*stdin*"); variable line; while (-1 != fgets (&line, stdin)) { insert (line); } bob (); } %}}} public define jedscript_main () %{{{ { variable i; variable infile = NULL; variable outfile = NULL; variable macro_pkg = NULL; if (__argc < 2) do_usage (); variable istart = 1; % Make allowances for running this script as jed --script script-name if (__argv[1] == "-script") istart = 3; % setup the include path variable local_include_dirs = "."; for (i = istart; i < __argc; i++) { variable arg = __argv[i]; if (0 == strncmp (__argv[i], "-I", 2)) { local_include_dirs = strcat(local_include_dirs, ",", arg[[2:]]); continue; } if (0 == strncmp (arg, "-M", 2)) { macro_pkg = arg[[2:]]; continue; } if (arg == "--version") exit_with_version (); if (arg == "-g") { _traceback = 1; continue; } break; } variable dir = getenv ("TM_INCLUDE"); if (dir != NULL) local_include_dirs = strcat (local_include_dirs, ",", path2list (dir)); % An now some system include paths. Base this on where this script is % located, e.g., if it is /usr/bin/tmexpand, then use /usr/share/tmexpand dir = path_dirname (path_dirname (__argv[0])); foreach (["share/tmexpand/macros", "lib/tmexpand/macros"]) { variable subdir = (); subdir = path_concat (dir, subdir); if (2 == file_status (subdir)) local_include_dirs = strcat (local_include_dirs, ",", subdir); } tm_set_include_path (local_include_dirs); if (i != __argc - 2) do_usage (); infile = __argv[i]; outfile = __argv[i+1]; if ((infile == outfile) and (infile != "-")) { () = fprintf (stderr, "input and output files are the same\n"); exit (1); } read_input_file (infile); #if (_slang_version < 20000) ERROR_BLOCK { % Write out what we have to provide some additional debugging clues write_buffer_to_outfile (outfile); vmessage ("*** An error occurred. Look at %s for a hint of what and where.", outfile); exit (1); } #endif __TM_FILE__ = infile; #if (_slang_version >= 20000) variable e; try (e) { #endif tm_process_buffer (macro_pkg); write_buffer_to_outfile (outfile); #if (_slang_version >= 20000) } catch AnyError: { () = fprintf (stderr, "%S:%S:%S:%S\n", e.file, e.line, e.function,e.descr); () = fprintf (stderr, "*** The following error occurred:\n%S\n",e.message); write_buffer_to_outfile (outfile); () = fprintf (stderr, "*** Look in %s near line %d for a clue where the failure occurred.\n", outfile, what_line()); exit (1); } #endif exit (0); } %}}} %{{{ Notes about environments %% Notes: %% #%+ %% These symbols denote comments that get removed from the final %% output file. %% #%- %% #% This is a comment that will NOT appear in the final output. %% #c This is a comment line that will appear in the output as a comment %% #v+ %% These are verbatim sections where \macros are not expanded. However, %% character translation will take place. The region will be surrounded %% by verbatim control sequences defined by __verbatim_begin/end %% #v- %% #p+ %% This text is enclosed in a passthru environment in which no character %% translation nor macro expansion will take place. %% #p- %% #s+ %% This contains embedded slang code that gets evaluated. %% #s- %% In macro definitions (#d lines), only \objects are expanded but no character %% translation will take place. This also means that if a literal < is used %% in the definition, it will not get mapped to "<", otherwise the macros %% would be useless. %% %% Note that the arguments to textmacro functions will be fully evaluated %% before the function is called. This is not the case for macros. %% %}}} %{{{ Local Variables static variable Dictionary; static variable TextMac_Include_Dirs = "."; static variable Char_Mapping_Table; static variable Remove_Comment_Lines; static variable Trim_Empty_Lines; static variable Comment_Begin; static variable Comment_End; static variable Verbatim_Begin; static variable Verbatim_End; static variable Passthru_Begin; static variable Passthru_End; %}}} %{{{ Macro Functions % This is useful in conjunction with \if. static define strlen_function (str) { vinsert ("%d", strlen (str)); } static define strcmp_function (a,b) { vinsert ("%d", strcmp (a,b)); } static define if_function () { variable expr, this, that = ""; if (_NARGS == 3) that = (); (expr,this)=(); %expr = tm_expand_expression (); if (eval(expr)) insert (this); else insert (that); %vmessage ("running \if{%s}{%s}{%s}\n", expr, this, that); } static define btrim_function () { push_mark (); bskip_chars ("\n\t "); del_region (); } static define newline_function () { newline (); } static define space_function () { variable n = 1; if (_NARGS) n = integer (); insert_spaces (n); } static define today_function () { variable months = "JanFebMarAprMayJunJulAugSepOctNovDec"; variable tm = localtime (_time ()); vinsert ("%s %d, %d", months[[0:2]+3*tm.tm_mon], tm.tm_mday, 1900+tm.tm_year); } static define get_username_function () { insert (get_username ()); } static define get_hostname_function () { insert (get_hostname ()); } static define get_realname_function () { insert (get_realname ()); } static define getenv_function () { variable e, d = ""; if (_NARGS == 2) d = (); e = (); variable s = getenv (e); if (s == NULL) s = d; insert (s); } static define escape_function (s) { variable h = ""; foreach (s) { variable ch = (); h += sprintf ("&#%d;", ch); } insert (h); } %}}} %{{{ Core Functions that implement the macro processor static define create_macro_struct (definition, min_args, max_args) { variable s = struct { definition, min_args, max_args }; s.definition = definition; s.min_args = min_args; s.max_args = max_args; % vmessage ("Adding define=%S, min_args=%S, max_args=%S", % definition, s.min_args, s.max_args); return s; } static define tm_is_defined (fname) { if (assoc_key_exists (Dictionary, fname)) return Dictionary[fname]; return NULL; } static define tm_do_function (fun, argv, argc) { variable i; _for (1, argc - 1, 1) { i = (); argv[i]; } variable args = __pop_args (argc-1); (@fun) (__push_args (args)); } static define tm_do_macro (argv, argc) { variable i; bob (); while (fsearch_char ('$')) { del (); i = what_char (); if (i == 'n') { del (); insert (string (argc)); continue; } i -= '0'; if ((i > 0) and (i < argc)) { del (); insert (argv[i]); } } } public define tm_add_macro () { variable name, def, min_args, max_args; if (_NARGS == 4) (min_args, max_args) = (); else { max_args = (); min_args = max_args; } (name, def) = (); Dictionary[name] = create_macro_struct (def, min_args, max_args); } #iffalse static define dump_dictionary () { pop2buf ("*dict*"); foreach (Dictionary) using ("keys", "values") { variable keys, values; (keys, values) = (); vinsert ("Key:%s:Nargs:%d-%d:Value:%s\n", keys, values.min_args, values.max_args, values.definition); } } #endif static define get_min_max_args (s, a, b) { variable n = sscanf (s, "%d:%d", a, b); if (n == 1) @b = @a; else if (n == 0) return -1; return 0; } static define get_control_variable_value (name) { return sprintf ("%S", tm_is_defined (name).definition); } static define get_definitions () { variable name, num_args, def; bob (); while (bol_fsearch ("#d ")) { variable min_args, max_args; go_right (2); skip_white (); push_mark (); skip_chars ("-a-zA-Z0-9_"); name = bufsubstr (); min_args = 0; max_args = 0; if (looking_at ("#")) { go_right(1); push_mark (); skip_chars ("0-9:"); if (-1 == get_min_max_args (bufsubstr (), &min_args, &max_args)) verror ("Function %s has illegal specification", name); } skip_white (); push_mark (); eol (); def = bufsubstr (); tm_add_macro (name, def, min_args, max_args); delete_line (); } Comment_Begin = get_control_variable_value ("__comment_begin"); Comment_End = get_control_variable_value ("__comment_end"); Remove_Comment_Lines = get_control_variable_value ("__remove_comment_lines"); Remove_Comment_Lines = (Remove_Comment_Lines != "0"); Verbatim_Begin = get_control_variable_value ("__verbatim_begin"); Verbatim_End = get_control_variable_value ("__verbatim_end"); Passthru_Begin = get_control_variable_value ("__passthru_begin"); Passthru_End = get_control_variable_value ("__passthru_end"); Trim_Empty_Lines = get_control_variable_value ("__remove_empty_lines"); Trim_Empty_Lines = integer (Trim_Empty_Lines); } static define parse_buffer (); % forward declaration static variable NTIMES= 1; static define parse_buffer () { variable def; variable fname, argc, argv; argv = String_Type [4]; bob (); while (fsearch ("\\")) { push_spot_bol (); if (looking_at_char ('#')) { pop_spot (); eol (); continue; } pop_spot (); % Now look for special forms if (orelse {looking_at ("\\\\")} {looking_at ("\\{")} {looking_at ("\\}")} {looking_at ("\\#")}) { go_right (2); continue; } del (); % nuke \\ push_mark (); variable pnt = _get_point (); skip_chars ("-a-zA-Z_0-9"); if (pnt == _get_point ()) { go_right (1); % It must be \X where X is some other character } fname = bufsubstr_delete (); variable s; s = tm_is_defined (fname); if (s == NULL) { %verror ("Reference to %s undefined.", fname); vmessage ("Reference to %s undefined.", fname); % undefined--- put it back %pop_mark_1 (); vinsert ("\\%s", fname); push_spot (); vmessage ("Line is: %s", line_as_string ()); pop_spot (); continue; } variable min_argc = s.min_args + 1; variable max_argc = s.max_args + 1; variable definition = s.definition; variable is_fun = typeof (definition) == Ref_Type; push_mark (); % we will return here for expansion if (is_fun == 0) insert (definition); % Now get arguments push_mark (); % mark for del_region below if (max_argc == 1) { if (looking_at ("{}")) % allow {} in \macro{}blabla deln (2); } if (max_argc > length (argv)) argv = String_Type [max_argc]; argv[*] = ""; % Build argument list argc = 1; if (max_argc > 1) forever { variable m = create_user_mark (); skip_chars ("\n\t "); !if (looking_at_char ('{')) { goto_user_mark (m); if (argc < min_argc) verror ("Expecting at least %d arguments for %s.", s.min_args, fname); break; } argc++; if (argc > max_argc) { insert ("<----Parsing stopped here---->"); verror ("Expecting at most %d arguments for %s -- found %d (max_argc=%d)", s.max_args, fname, argc, max_argc); } push_mark (); if (1 != find_matching_delimiter (0)) { pop_mark_1 (); verror ("Unable to find closing '}' for expansion of %s args", fname); } del (); % del } exchange_point_and_mark (); del (); % del { exchange_point_and_mark (); if (is_fun) { % If it is a function, then make sure % the arguments are fully evaluated before passing them % to the function. narrow_to_region (); parse_buffer (); mark_buffer (); widen_region (); } argv[argc-1] = bufsubstr (); } del_region (); % deletes the argument list if (is_fun) { tm_do_function (definition, argv, max_argc); pop_mark_1 (); } else if (max_argc > 1) { narrow_to_region (); tm_do_macro (argv, max_argc); bob (); widen_region (); } else pop_mark_1 (); } } static define tm_parse_buffer () { get_definitions (); runhooks ("tm_parse_buffer_before_hook"); parse_buffer (); #iffalse dump_dictionary (); #endif } % leaves point at END of insertion public define tm_include_file (file) { variable dir, dirfile; variable n; if (strncmp (file, "/", 1) and strncmp (file, "./", 2) and strncmp (file, "../", 3)) { n = 0; dirfile = ""; variable dirs; (,dirs,,) = getbuf_info (); dirs += "," + TextMac_Include_Dirs; while (dir = extract_element (dirs, n, ','), (dir != NULL)) { n++; dirfile = dircat (dir, file); if (1 == file_status (dirfile)) break; %vmessage ("Trying %s", dirfile); } file = dirfile; } if (-1 == insert_file (file)) verror ("Unable to insert %s", file); } static define tm_preprocess_buffer () { variable token; variable file, cs; variable n, list; variable is_verb; bob (); while (bol_fsearch ("#i ")) { go_right (2); skip_white (); push_mark_eol (); file = strtrim (bufsubstr ()); !if (strlen (file)) continue; delete_line (); % Is this include part of a verbatim section? If so, include the file % but indent it so that any macro definitions, etc are not detected % as such. This also allows for a file to include itself. push_spot (); is_verb = 0; if (bol_bsearch ("#v+")) { n = what_line (); pop_spot (); push_spot (); if ((0 == bol_bsearch ("#v-")) or (what_line () < n)) is_verb = 1; } pop_spot (); push_mark (); tm_include_file (file); if (is_verb == 0) { pop_mark_1 (); continue; } narrow_to_region (); bob (); do { insert (" "); eol_trim (); % also avoids insertion at eob } while (down_1 ()); widen_region (); } % Get rid of fold marks, if any bob (); while (fsearch ("#%{{{")) del_eol (); bob (); while (fsearch ("#%}}}")) del_eol (); % Now join continuation lines bob (); while (bol_fsearch_char ('#')) { while (not (eobp) and ffind ("\\\n")) { del(); del (); } eol (); } % delete commented sections bob (); while (bol_fsearch ("#%+")) { push_mark (); if (bol_fsearch ("#%-")) { eol (); go_right(1); del_region (); } else { pop_mark (1); error ("Unterminated #%+"); } } % Process embedded slang code bob (); while (bol_fsearch ("#s+")) { push_mark (); !if (bol_fsearch ("#s-")) error ("Unterminated %s+"); delete_line (); % remove #s- narrow_to_region (); bob(); delete_line (); % remove #s+ evalbuffer (); erase_buffer (); widen_region (); } % Mark passthru environments bob (); while (bol_fsearch ("#p+")) { while (down (1) and not (looking_at ("#p-"))) { insert ("#p "); } } % replace <, >, &, etc with SGML equivalents. % Avoid lines that start with #. bob (); if (Char_Mapping_Table != NULL) while (re_fsearch ("^[^#]")) { push_mark (); !if (bol_fsearch_char ('#')) eob (); translate_region (Char_Mapping_Table); } % Mark verbatim environments cs = CASE_SEARCH; CASE_SEARCH = 1; bob (); while (bol_fsearch ("#v")) { !if (looking_at ("#v+")) throw ParseError, "Expected #v+, found something else"; while (down (1) and not (looking_at ("#v"))) { insert ("#v "); } !if (looking_at ("#v-")) throw ParseError, "Expected to find #v-"; eol (); } bob (); CASE_SEARCH=cs; } static define trim_excess_lines (num_empties_allowed) { bob (); do { eol (); trim (); } while (down_1()); bob (); push_mark (); skip_chars ("\n"); del_region (); eob (); push_mark (); bskip_chars ("\n"); go_right(1); del_region (); bob(); do { eol (); if (bolp ()) { loop (num_empties_allowed) { go_right (1); !if (eolp ()) break; } push_mark (); skip_chars ("\n"); del_region (); } } while (down_1()); } static define tm_clean_buffer (remove_empty_lines_val) { variable v, cs; bob (); while (bol_fsearch_char ('#')) { del (); switch (what_char ()) { case 'd': delete_line (); } { case '%': delete_line (); } { case 'c': if (Remove_Comment_Lines) delete_line (); else { del (); insert (Comment_Begin); eol (); insert (Comment_End); } } { insert_char ('#'); } } % Now expand the escaped characters bob (); while (fsearch_char ('\\')) { push_spot_bol (); if (looking_at_char ('#'), pop_spot ()) { eol (); continue; } if (orelse {looking_at ("\\}")} {looking_at ("\\\\")} {looking_at ("\\#")} {looking_at ("\\{")} ) del (); go_right_1 (); } if (remove_empty_lines_val>0) trim_excess_lines (remove_empty_lines_val-1); % Now remove verbatim marks bob (); cs = CASE_SEARCH; CASE_SEARCH = 0; while (bol_fsearch ("#v")) { del (); v = what_char () - 'V'; del (); if (what_char == '+') { if (v) { del_eol (); insert (Verbatim_Begin); } else delete_line (); } else if (what_char == '-') { if (v) { del_eol (); insert (Verbatim_End); } else delete_line (); } else if (not (eolp)) del (); % The trim may have removed space } % handle passthru environments bob (); while (bol_fsearch ("#p")) { del (); del (); if (what_char == '+') { del_eol (); insert (Passthru_Begin); } else if (what_char == '-') { del_eol (); insert (Passthru_End); } else if (not (eolp)) del (); % delete the space } CASE_SEARCH = cs; bob (); } % This can be used in #s+/#s- environments public define tm_map_character (ch, str) { Char_Mapping_Table[ch] = str; } static define tm_process_buffer (macro_pkg) { variable cs = CASE_SEARCH; variable cbuf, html_buf; cbuf = whatbuf (); CASE_SEARCH = 1; ERROR_BLOCK { CASE_SEARCH = cs; } html_buf = strcat ("*textmac*", cbuf); if (BATCH) sw2buf (html_buf); else pop2buf (html_buf); erase_buffer (); insbuf (cbuf); % Make sure the proper syntax table is in place before processing tm_mode (); bob (); if (macro_pkg != NULL) { vinsert ("#i %s.tm\n", macro_pkg); bob (); } Char_Mapping_Table = String_Type[256]; tm_map_character ('&', "&"); tm_map_character ('<', "<"); tm_map_character ('>', ">"); %tm_map_character ('$', "$"); Dictionary = Assoc_Type[Struct_Type]; tm_add_macro ("if", &if_function, 2, 3); tm_add_macro ("strlen", &strlen_function, 1, 1); tm_add_macro ("strcmp", &strcmp_function, 2, 2); tm_add_macro ("get_username", &get_username_function, 0, 0); tm_add_macro ("get_realname", &get_realname_function, 0, 0); tm_add_macro ("get_hostname", &get_hostname_function, 0, 0); tm_add_macro ("getenv", &getenv_function, 1, 2); tm_add_macro ("escape", &escape_function, 1, 1); tm_add_macro ("__today__", &today_function, 0, 0); tm_add_macro ("__btrim__", &btrim_function, 0, 0); tm_add_macro ("__newline__", &newline_function, 0, 0); tm_add_macro ("__space__", &space_function, 0, 1); tm_add_macro ("__verbatim_end", "</pre>", 0, 0); tm_add_macro ("__verbatim_begin", "<pre>", 0, 0); tm_add_macro ("__passthru_begin", "", 0, 0); tm_add_macro ("__passthru_end", "", 0, 0); tm_add_macro ("__comment_begin", "<!--", 0, 0); tm_add_macro ("__comment_end", " -->", 0, 0); tm_add_macro ("__remove_comment_lines", "0", 0, 0); % if 0, do not remove empty lines. If N, remove N or more consecutive % blank lines. tm_add_macro ("__remove_empty_lines", "1", 0, 0); tm_preprocess_buffer (); tm_parse_buffer (); tm_clean_buffer (Trim_Empty_Lines); Dictionary = NULL; bob (); EXECUTE_ERROR_BLOCK; } public define tm_set_include_path (path) { %vmessage ("Path set to: %s", path); TextMac_Include_Dirs = path; } public define tm_get_include_path () { return TextMac_Include_Dirs; } %}}} �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������tmexpand-0.1.2-0/ChangeLog��������������������������������������������������������������������������0100644�0026574�0026574�00000001116�10233753156�014272� 0����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������2005-4-27 John E. Davis <davis@space.mit.edu> * bin/tmexpand (jedscript_main): changed directory tm to tmexpand/macros 2005-4-23 John E. Davis <davis@space.mit.edu> * macros/linuxdoc.tm: made the second argument to the ref macro optional. 2005-4-22 John E. Davis <davis@space.mit.edu> * macros/slhlp.tm: added env, exc, icon, and dtype macros * bin/tmexpand (jedscript_main): added some line number info for debugging purposes. (TM_Expand_Version): bumped to 0.1.2-0 2005-3-26 John E. Davis <davis@space.mit.edu> * examples/Makefile: changed help.sgml to help.hlp ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������tmexpand-0.1.2-0/COPYRIGHT��������������������������������������������������������������������������0100644�0026574�0026574�00000001310�10221321122�013764� 0����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ Copyright (c) 2003-2005 John E. Davis This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������tmexpand-0.1.2-0/COPYING����������������������������������������������������������������������������0100644�0026574�0026574�00000043070�10221320721�013541� 0����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 675 Mass Ave, Cambridge, MA 02139, USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. <one line to give the program's name and a brief idea of what it does.> Copyright (C) 19yy <name of author> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) 19yy name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. <signature of Ty Coon>, 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������tmexpand-0.1.2-0/autoconf/��������������������������������������������������������������������������0040755�0026574�0026574�00000000000�10233756413�014341� 5����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������tmexpand-0.1.2-0/autoconf/install.sh����������������������������������������������������������������0100755�0026574�0026574�00000012736�10233753156�016355� 0����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#!/bin/sh # # install - install a program, script, or datafile # This comes from X11R5 (mit/util/scripts/install.sh). # # Copyright 1991 by the Massachusetts Institute of Technology # # Permission to use, copy, modify, distribute, and sell this software and its # documentation for any purpose is hereby granted without fee, provided that # the above copyright notice appear in all copies and that both that # copyright notice and this permission notice appear in supporting # documentation, and that the name of M.I.T. not be used in advertising or # publicity pertaining to distribution of the software without specific, # written prior permission. M.I.T. makes no representations about the # suitability of this software for any purpose. It is provided "as is" # without express or implied warranty. # # Calling this script install-sh is preferred over install.sh, to prevent # `make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. It can only install one file at a time, a restriction # shared with many OS's install programs. # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit="${DOITPROG-}" # put in absolute paths if you don't have them in your path; or use env. vars. mvprog="${MVPROG-mv}" cpprog="${CPPROG-cp}" chmodprog="${CHMODPROG-chmod}" chownprog="${CHOWNPROG-chown}" chgrpprog="${CHGRPPROG-chgrp}" stripprog="${STRIPPROG-strip}" rmprog="${RMPROG-rm}" mkdirprog="${MKDIRPROG-mkdir}" transformbasename="" transform_arg="" instcmd="$mvprog" chmodcmd="$chmodprog 0755" chowncmd="" chgrpcmd="" stripcmd="" rmcmd="$rmprog -f" mvcmd="$mvprog" src="" dst="" dir_arg="" while [ x"$1" != x ]; do case $1 in -c) instcmd="$cpprog" shift continue;; -d) dir_arg=true shift continue;; -m) chmodcmd="$chmodprog $2" shift shift continue;; -o) chowncmd="$chownprog $2" shift shift continue;; -g) chgrpcmd="$chgrpprog $2" shift shift continue;; -s) stripcmd="$stripprog" shift continue;; -t=*) transformarg=`echo $1 | sed 's/-t=//'` shift continue;; -b=*) transformbasename=`echo $1 | sed 's/-b=//'` shift continue;; *) if [ x"$src" = x ] then src=$1 else # this colon is to work around a 386BSD /bin/sh bug : dst=$1 fi shift continue;; esac done if [ x"$src" = x ] then echo "install: no input file specified" exit 1 else true fi if [ x"$dir_arg" != x ]; then dst=$src src="" if [ -d $dst ]; then instcmd=: chmodcmd="" else instcmd=mkdir fi else # Waiting for this to be detected by the "$instcmd $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if [ -f $src -o -d $src ] then true else echo "install: $src does not exist" exit 1 fi if [ x"$dst" = x ] then echo "install: no destination specified" exit 1 else true fi # If destination is a directory, append the input filename; if your system # does not like double slashes in filenames, you may need to add some logic if [ -d $dst ] then dst="$dst"/`basename $src` else true fi fi ## this sed command emulates the dirname command dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` # Make sure that the destination directory exists. # this part is taken from Noah Friedman's mkinstalldirs script # Skip lots of stat calls in the usual case. if [ ! -d "$dstdir" ]; then defaultIFS=' ' IFS="${IFS-${defaultIFS}}" oIFS="${IFS}" # Some sh's can't handle IFS=/ for some reason. IFS='%' set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'` IFS="${oIFS}" pathcomp='' while [ $# -ne 0 ] ; do pathcomp="${pathcomp}${1}" shift if [ ! -d "${pathcomp}" ] ; then $mkdirprog "${pathcomp}" else true fi pathcomp="${pathcomp}/" done fi if [ x"$dir_arg" != x ] then $doit $instcmd $dst && if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi && if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi && if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi && if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi else # If we're going to rename the final executable, determine the name now. if [ x"$transformarg" = x ] then dstfile=`basename $dst` else dstfile=`basename $dst $transformbasename | sed $transformarg`$transformbasename fi # don't allow the sed command to completely eliminate the filename if [ x"$dstfile" = x ] then dstfile=`basename $dst` else true fi # Make a temp file name in the proper directory. dsttmp=$dstdir/#inst.$$# # Move or copy the file name to the temp name $doit $instcmd $src $dsttmp && trap "rm -f ${dsttmp}" 0 && # and set any options; do chmod last to preserve setuid bits # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $instcmd $src $dsttmp" command. if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi && if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi && if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi && if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi && # Now rename the file to the real destination. $doit $rmcmd -f $dstdir/$dstfile && $doit $mvcmd $dsttmp $dstdir/$dstfile fi && exit 0 ����������������������������������tmexpand-0.1.2-0/autoconf/Makefile.in���������������������������������������������������������������0100644�0026574�0026574�00000000343�10233753156�016404� 0����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������@SET_MAKE@ SHELL = /bin/sh all: cd macros; $(MAKE) cd bin; $(MAKE) cd doc; $(MAKE) cd images; $(MAKE) install: cd macros; $(MAKE) install cd bin; $(MAKE) install cd doc; $(MAKE) install cd images; $(MAKE) install # ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������tmexpand-0.1.2-0/autoconf/configure.in��������������������������������������������������������������0100644�0026574�0026574�00000000275�10233753156�016654� 0����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������AC_INIT(bin/tmexpand) AC_CONFIG_AUX_DIR(autoconf) AC_PROG_MAKE_SET AC_PROG_INSTALL AC_OUTPUT(Makefile:autoconf/Makefile.in \ bin/Makefile macros/Makefile doc/Makefile images/Makefile) �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������tmexpand-0.1.2-0/autoconf/mkinsdir.sh���������������������������������������������������������������0100755�0026574�0026574�00000001136�10233753156�016517� 0����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#! /bin/sh # mkinstalldirs --- make directory hierarchy # Author: Noah Friedman <friedman@prep.ai.mit.edu> # Created: 1993-05-16 # Public domain errstatus=0 for file do set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` shift pathcomp= for d in ${1+"$@"} ; do pathcomp="$pathcomp$d" case "$pathcomp" in -* ) pathcomp=./$pathcomp ;; esac if test ! -d "$pathcomp"; then echo "mkdir $pathcomp" 1>&2 mkdir "$pathcomp" || errstatus=$? fi pathcomp="$pathcomp/" done done exit $errstatus # mkinstalldirs ends here ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������tmexpand-0.1.2-0/README�����������������������������������������������������������������������������0100644�0026574�0026574�00000000716�10221321005�013362� 0����������������������������������������������������������������������������������������������������ustar �davis���������������������������davis������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������This package contains a text-macro processing script to facilitate the creation of HTML and SGML documents. In order to use this package, you will need to have at least version 0.99-17 or later of the jed editor, See http://www.jedsoft.org/jed/ for more information about obtaining jed. The documentation is sparse. See doc/man for a man page and then pop doc/tm/tmexpand.tm into the editor and improve it :) The examples directory contains some examples. ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������