diff options
author | dos-reis <gdr@axiomatics.org> | 2007-09-03 08:53:28 +0000 |
---|---|---|
committer | dos-reis <gdr@axiomatics.org> | 2007-09-03 08:53:28 +0000 |
commit | e8f503af9672295632df3a7e6b6cff1941359064 (patch) | |
tree | ef1a44e4cca8ea0f2b20a8522ec7b688e5e21347 | |
parent | 7eb38fea596969878a33f30e36fe33b125f9c4bd (diff) | |
download | open-axiom-e8f503af9672295632df3a7e6b6cff1941359064.tar.gz |
* Makefile.pamphlet (clef_SOURCES): Don't reference pamphlet.
(clef_sources): Remove.
(clef_objects): Adjust.
(%.c): Remove.
(mostlyclean-local): Don't remove sources.
(pamphlets): _SOURCES are no longer pamphlet.
* Makefile.in: Regenerate.
* edible.c: New. Replace corresponding pamphlet.
* edible.c.pamphlet: Remove.
-rw-r--r-- | src/clef/ChangeLog | 12 | ||||
-rw-r--r-- | src/clef/Makefile.pamphlet | 18 | ||||
-rw-r--r-- | src/clef/edible.c (renamed from src/clef/edible.c.pamphlet) | 95 |
3 files changed, 53 insertions, 72 deletions
diff --git a/src/clef/ChangeLog b/src/clef/ChangeLog index f6d20b8d..506e408a 100644 --- a/src/clef/ChangeLog +++ b/src/clef/ChangeLog @@ -1,3 +1,15 @@ +2007-09-02 Gabriel Dos Reis <gdr@cs.tamu.edu> + + * Makefile.pamphlet (clef_SOURCES): Don't reference pamphlet. + (clef_sources): Remove. + (clef_objects): Adjust. + (%.c): Remove. + (mostlyclean-local): Don't remove sources. + (pamphlets): _SOURCES are no longer pamphlet. + * Makefile.in: Regenerate. + * edible.c: New. Replace corresponding pamphlet. + * edible.c.pamphlet: Remove. + 2007-07-29 Gabriel Dos Reis <gdr@cs.tamu.edu> * Makefile.pamphlet (clef_LDADD): Set to libtoolized libspad. diff --git a/src/clef/Makefile.pamphlet b/src/clef/Makefile.pamphlet index bf6d57bc..e6fb9106 100644 --- a/src/clef/Makefile.pamphlet +++ b/src/clef/Makefile.pamphlet @@ -17,11 +17,9 @@ INC= $(axiom_src_srcdir)/include bin_PROGRAMS = clef$(EXEEXT) -clef_sources = edible.c +clef_SOURCES = edible.c -clef_SOURCES = $(addsuffix .pamphlet, $(clef_sources)) - -clef_objects = $(clef_sources:.c=.lo) +clef_objects = $(clef_SOURCES:.c=.lo) clef_LDADD = $(axiom_target_libdir)/libspad.la clef_DEPENDENCIES = @@ -34,12 +32,8 @@ $(axiom_target_bindir)/clef$(EXEEXT): $(clef_objects) $(clef_DEPENDENCIES) .SUFFIXES: .SUFFIXES: .c .lo .h -.PRECIOUS: %.c .PRECIOUS: %.lo -%.c: $(srcdir)/%.c.pamphlet - $(axiom_build_document) --tangle --output=$@ $< - %.lo: ${INC}/useproto.h ${INC}/edible.h \ $(axiom_configdir)/axiom-c-macros.h @@ -48,7 +42,6 @@ $(axiom_target_bindir)/clef$(EXEEXT): $(clef_objects) $(clef_DEPENDENCIES) mostlyclean-local: @rm -f $(clef_objects) - @rm -f $(clef_sources) @rm -f stamp clean-local: mostlyclean-local @@ -62,7 +55,7 @@ distclean-local: clean-local subdir = src/clef/ -pamphlets = $(clef_SOURCES) Makefile.pamphlet +pamphlets = Makefile.pamphlet .PHONY: all all-clef all: all-ax @@ -77,8 +70,5 @@ stamp: $(axiom_target_bindir)/clef$(EXEEXT) <<edible>> @ -\eject -\begin{thebibliography}{99} -\bibitem{1} nothing -\end{thebibliography} + \end{document} diff --git a/src/clef/edible.c.pamphlet b/src/clef/edible.c index 56f7a619..f9093f58 100644 --- a/src/clef/edible.c.pamphlet +++ b/src/clef/edible.c @@ -1,50 +1,35 @@ -\documentclass{article} -\usepackage{axiom} -\begin{document} -\title{\$SPAD/src/clef edible.c} -\author{The Axiom Team} -\maketitle -\begin{abstract} -\end{abstract} -\eject -\tableofcontents -\eject -<<license>>= /* -Copyright (c) 1991-2002, The Numerical ALgorithms Group Ltd. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - - Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - - Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in - the documentation and/or other materials provided with the - distribution. - - - Neither the name of The Numerical ALgorithms Group Ltd. nor the - names of its contributors may be used to endorse or promote products - derived from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS -IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A -PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER -OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + Copyright (c) 1991-2002, The Numerical ALgorithms Group Ltd. + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in + the documentation and/or other materials provided with the + distribution. + + - Neither the name of The Numerical ALgorithms Group Ltd. nor the + names of its contributors may be used to endorse or promote products + derived from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS + IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A + PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -@ -<<*>>= -<<license>> #include "axiom-c-macros.h" #include "useproto.h" @@ -209,8 +194,8 @@ main(int argc, char *argv[]) if (dup2(serverNum, 1) == -1) perror("dup2 1 failed"); if (dup2(serverNum, 2) == -1) perror("dup2 2 failed"); if( (dup2(serverNum, 0) == -1) || - (dup2(serverNum, 1) == -1) || - (dup2(serverNum, 2) == -1) ) { + (dup2(serverNum, 1) == -1) || + (dup2(serverNum, 2) == -1) ) { perror("clef trying to dup2"); exit(-1); } @@ -238,9 +223,9 @@ main(int argc, char *argv[]) else{ program = getenv("SHELL"); if (!program) - program = strdup("/bin/sh"); + program = strdup("/bin/sh"); else - program = strdup (program); + program = strdup (program); execlp( program,program, 0); perror("clef trying to execlp the default child"); fprintf(stderr, "Process --> %s\n", program); @@ -287,7 +272,7 @@ main(int argc, char *argv[]) char pbuff[1024]; tcgetattr(contNum, &ptermio); sprintf(pbuff, "child's settings: Lflag = %d, Oflag = %d, Iflag = %d\n", - ptermio.c_lflag, ptermio.c_oflag, ptermio.c_iflag); + ptermio.c_lflag, ptermio.c_oflag, ptermio.c_iflag); write(logfd, pbuff, strlen(pbuff)); } #endif @@ -328,8 +313,8 @@ main(int argc, char *argv[]) if(FD_ISSET(0,&rfds)) { num_read = read(0, in_buff, MAXLINE); #ifdef log - write(logfd, "IN<<<<<", strlen("IN<<<<<")); - write(logfd, in_buff, num_read); + write(logfd, "IN<<<<<", strlen("IN<<<<<")); + write(logfd, in_buff, num_read); #endif check_flip(); if(MODE == CLEFRAW ) @@ -601,9 +586,3 @@ set_function_chars(void) _EOL = childbuf.c_cc[VEOL]; return; } -@ -\eject -\begin{thebibliography}{99} -\bibitem{1} nothing -\end{thebibliography} -\end{document} |