Commit bc598002 authored by david_v's avatar david_v
Browse files

from Valentin David <valentin@lrde.epita.fr>

	* configure.ac: Check for help2man. Generate version.str.

	* config/version.str.in, config/seealso.sed, src/mancmds: New.
	* config/Makefile.am, src/Makefile.am: Update.

	* src/pp/pp-boxedsdf.str, src/boxed2sdf/boxed2sdf.str,
	* src/boxed2pp-table/boxed2pp-table.str,
	* src/pack-boxedsdf/pack-boxedsdf.str,
	* src/boxedsdf-merge/boxedsdf-merge.str,
	* src/parser/parse-boxedsdf-module.str,
	* src/parser/parse-boxedsdf-definition.str,
	* src/boxedsdf-update/boxedsdf-update.str:
	Add help.

	* src/pp/Makefile.am, src/boxed2sdf/Makefile.am,
	* src/boxed2pp-table/Makefile.am, src/pack-boxedsdf/Makefile.am,
	* src/boxedsdf-merge/Makefile.am, src/parser/Makefile.am,
	* src/boxedsdf-update/Makefile.am:
	Generate man pages.
parent 59e79e43
2004-04-15 Valentin David <valentin@lrde.epita.fr>
* configure.ac: Check for help2man. Generate version.str.
* config/version.str.in, config/seealso.sed, src/mancmds: New.
* config/Makefile.am, src/Makefile.am: Update.
* src/pp/pp-boxedsdf.str, src/boxed2sdf/boxed2sdf.str,
* src/boxed2pp-table/boxed2pp-table.str,
* src/pack-boxedsdf/pack-boxedsdf.str,
* src/boxedsdf-merge/boxedsdf-merge.str,
* src/parser/parse-boxedsdf-module.str,
* src/parser/parse-boxedsdf-definition.str,
* src/boxedsdf-update/boxedsdf-update.str:
Add help.
* src/pp/Makefile.am, src/boxed2sdf/Makefile.am,
* src/boxed2pp-table/Makefile.am, src/pack-boxedsdf/Makefile.am,
* src/boxedsdf-merge/Makefile.am, src/parser/Makefile.am,
* src/boxedsdf-update/Makefile.am:
Generate man pages.
2004-04-13 Valentin David <valentin@lrde.epita.fr>
* Makefile.am: Fix uninstall.
......
......@@ -11,5 +11,6 @@ mkinstalldirs
EXTRA_DIST = \
autoxt.m4 \
Makefile.xt
Makefile.xt \
version.str.in \
seealso.sed
1i [SEE ALSO]
$s/$/ (1)/
$!s/$/ (1),/
s/^/.BR /
/*
* Copyright (C) 2004 EPITA Research and Development Laboratory
*
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
module version
strategies
mybasename = explode-string
; !([], <id>)
; rec x(?(<id>, [])
<+ ((![], ?[47|<id>]); x)
<+ {n,ns: ?(_,[n|ns]); (<concat> [<id>, [n]], !ns); x})
; implode-string
long-description(p) = !["This is a part of the Transformers project.\n\n",
"For more documentation: ",
"http://transformers.lrde.epita.fr/\n\n",
"Report bugs to <transfomers-bugs@lrde.epita.fr>"]
override-system-about = <concat-strings> [<get-config; mybasename> "program",
" @VERSION@\n"]
; echo
; <concat-strings> [
"Copyright (C) 2003, 2004 EPITA Research and Development Laboratory\n\n",
"This program is free software; you can redistribute it and/or modify\n",
"it under the terms of the GNU General Public License as published by\n",
"the Free Software Foundation; either version 2 of the License, or\n",
"(at your option) any later version.\n\n",
"This program is distributed in the hope that it will be useful,\n",
"but WITHOUT ANY WARRANTY; without even the implied warranty of\n",
"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n",
"GNU General Public License for more details.\n\n",
"You should have received a copy of the GNU General Public License\n",
"along with this program; if not, write to the Free Software\n",
"Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA"]
; echo
......@@ -36,10 +36,17 @@ test -f $PGEN/bin/sdf2table ||
test -f $STRATEGO_TOOLS/bin/sdf-to-sig ||
AC_MSG_ERROR([cannot find sdf-to-sig. Use --with-strategoxt.])
AC_CHECK_PROGS([HELP2MAN], [help2man], [NONE])
if test x"$HELP2MAN" = xNONE; then
AC_MSG_ERROR([cannot find help2man. Check your path.])
fi
AC_SUBST([HELP2MAN])
AC_PROG_CC
AC_PROG_INSTALL
AC_CONFIG_FILES([Makefile
config/version.str
lib/Makefile
lib/ppgen/Makefile
src/Makefile
......
......@@ -10,3 +10,5 @@ SUBDIRS = syn \
boxedsdf-update
BOOTCLEAN_SUBDIRS = $(SUBDIRS)
EXTRA_DIST = mancmds
......@@ -2,10 +2,20 @@ include $(top_srcdir)/config/Makefile.xt
-include boxed2pp-table.c.dep
bin_PROGRAMS = boxed2pp-table
man_MANS = boxed2pp-table.1
SCFLAGS = --main $* --verbose 0
STRINCLUDES = -I $(top_builddir)/src/syn \
-I $(ASFIX_TOOLS)/share/asfix-tools \
-I $(top_srcdir)/lib/ppgen
CLEANFILES = boxed2pp-table.{c.dep,c}
-I $(top_srcdir)/lib/ppgen \
-I $(top_builddir)/config
CLEANFILES = boxed2pp-table.{c.dep,c} $(man_MANS) boxed2pp-table.inc
nodist_boxed2pp_table_SOURCES = boxed2pp-table.c
EXTRA_DIST = boxed2pp-table.str
boxed2pp-table.1: boxed2pp-table boxed2pp-table.inc
$(HELP2MAN) -S LRDE -i boxed2pp-table.inc \
--no-info ./boxed2pp-table -o $@
boxed2pp-table.inc: $(top_srcdir)/src/mancmds
sed -e "/^boxed2pp-table$$/d" $< | \
sed -f $(top_srcdir)/config/seealso.sed >$@
/**
* BoxedSdf
* Copyright (C) 2003 LRDE
* Copyright (C) 2003, 2004 LRDE
*
* 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
......@@ -21,10 +21,14 @@
* Author: Valentin David <valentin@lrde.epita.fr>
*/
module boxed2pp-table
imports BoxedSdf2 prodcons sdf-2-pp-lib
imports BoxedSdf2 prodcons sdf-2-pp-lib version
strategies
short-description(p) = !["boxed2pp-table generates a pp-table AST ",
"from a BoxedSdf AST.\n\n",
"Usage: ", <p>(), " [options]"]
at-pp(s) = oncetd(BoxedAttr(pplist(s)))
/**
......
......@@ -2,8 +2,16 @@ include $(top_srcdir)/config/Makefile.xt
-include boxed2sdf.c.dep
bin_PROGRAMS = boxed2sdf
man_MANS = boxed2sdf.1
SCFLAGS = --main $* --verbose 0
STRINCLUDES = -I $(top_builddir)/src/syn
CLEANFILES = boxed2sdf.{c.dep,c}
STRINCLUDES = -I $(top_builddir)/src/syn \
-I $(top_builddir)/config
CLEANFILES = boxed2sdf.{c.dep,c} $(man_MANS) boxed2sdf.inc
nodist_boxed2sdf_SOURCES = boxed2sdf.c
EXTRA_DIST = boxed2sdf.str
boxed2sdf.1: boxed2sdf boxed2sdf.inc
$(HELP2MAN) -S LRDE -i boxed2sdf.inc --no-info ./boxed2sdf -o $@
boxed2sdf.inc: $(top_srcdir)/src/mancmds
sed -e "/^boxed2sdf$$/d" $< | sed -f $(top_srcdir)/config/seealso.sed >$@
/**
* BoxedSdf
* Copyright (C) 2003 LRDE
* Copyright (C) 2003, 2004 LRDE
*
* 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
......@@ -22,10 +22,14 @@
* Author: Valentin David <valentin@lrde.epita.fr>
*/
module boxed2sdf
imports lib BoxedSdf2
imports lib BoxedSdf2 version
strategies
short-description(p) = !["boxed2sdf cleans up boxedsdf extensions ",
"from a BoxedSdf AST.\n\n",
"Usage: ", <p>(), " [options]"]
/**
* Main strategy. Skip all the pp attributes in the AST.
*/
......
......@@ -2,11 +2,21 @@ include $(top_srcdir)/config/Makefile.xt
-include boxedsdf-merge.c.dep
bin_PROGRAMS = boxedsdf-merge
man_MANS = boxedsdf-merge.1
SCFLAGS = --main $* --verbose 0
STRINCLUDES = -I $(top_builddir)/src/syn \
-I $(XTC)/share/xtc \
-I $(ASFIX_TOOLS)/share/asfix-tools \
-I $(top_srcdir)/lib/ppgen
CLEANFILES = boxedsdf-merge.{c.dep,c}
-I $(top_srcdir)/lib/ppgen \
-I $(top_builddir)/config
CLEANFILES = boxedsdf-merge.{c.dep,c} $(man_MANS) boxedsdf-merge.inc
nodist_boxedsdf_merge_SOURCES = boxedsdf-merge.c
EXTRA_DIST = boxedsdf-merge.str
boxedsdf-merge.1: boxedsdf-merge boxedsdf-merge.inc
$(HELP2MAN) -S LRDE -i boxedsdf-merge.inc \
--no-info ./boxedsdf-merge -o $@
boxedsdf-merge.inc: $(top_srcdir)/src/mancmds
sed -e "/^boxedsdf-merge$$/d" $< | \
sed -f $(top_srcdir)/config/seealso.sed >$@
/**
* BoxedSdf
* Copyright (C) 2003 LRDE
* Copyright (C) 2003, 2004 LRDE
*
* 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
......@@ -24,7 +24,7 @@
* Author: Valentin David <valentin@lrde.epita.fr>
*/
module boxedsdf-merge
imports lib BoxedSdf2 xtc-lib stratego-xt-xtc-tools sdf-2-pp-lib
imports lib BoxedSdf2 xtc-lib stratego-xt-xtc-tools sdf-2-pp-lib version
signature
constructors
Pptable : String -> Option
......@@ -55,6 +55,10 @@ rules
strategies
short-description(p) = !["boxedsdf-merge merges a pp-table file into ",
"a SDF AST.\n\n",
"Usage: ", <p>(), " [options]"]
/**
* -p/--pptable option
* to specify the pp table
......
......@@ -2,9 +2,19 @@ include $(top_srcdir)/config/Makefile.xt
-include boxedsdf-update.c.dep
bin_PROGRAMS = boxedsdf-update
man_MANS = boxedsdf-update.1
SCFLAGS = --main $* --verbose 0
STRINCLUDES = -I $(top_builddir)/src/syn \
-I $(XTC)/share/xtc
CLEANFILES = boxedsdf-update.{c.dep,c}
-I $(XTC)/share/xtc \
-I $(top_builddir)/config
CLEANFILES = boxedsdf-update.{c.dep,c} $(man_MANS) boxedsdf-update.inc
nodist_boxedsdf_update_SOURCES = boxedsdf-update.c
EXTRA_DIST = boxedsdf-update.str
boxedsdf-update.1: boxedsdf-update boxedsdf-update.inc
$(HELP2MAN) -S LRDE -i boxedsdf-update.inc \
--no-info ./boxedsdf-update -o $@
boxedsdf-update.inc: $(top_srcdir)/src/mancmds
sed -e "/^boxedsdf-update$$/d" $< | \
sed -f $(top_srcdir)/config/seealso.sed >$@
/**
* BoxedSdf
* Copyright (C) 2003 LRDE
* Copyright (C) 2003, 2004 LRDE
*
* 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
......@@ -27,7 +27,7 @@
* Author: Valentin David <valentin@lrde.epita.fr>
*/
module boxedsdf-update
imports BoxedSdf2 xtc-lib
imports BoxedSdf2 xtc-lib version
signature
constructors
......@@ -42,6 +42,10 @@ rules
strategies
short-description(p) = !["boxedsdf-update helps to check ",
"modifications on a grammar.\n\n",
"Usage: ", <p>(), " [options]"]
get-syntax = (<get-config> "-s" <+ !"BoxedSdf2")
; if-verbose2(debug(!"Using grammar: "))
; !(<id>, ".tbl")
......
boxed2pp-table
boxed2sdf
boxedsdf-merge
boxedsdf-update
pack-boxedsdf
parse-boxedsdf-module
parse-boxedsdf-definition
pp-boxedsdf
......@@ -2,10 +2,20 @@ include $(top_srcdir)/config/Makefile.xt
-include pack-boxedsdf.c.dep
bin_PROGRAMS = pack-boxedsdf
man_MANS = pack-boxedsdf.1
SCFLAGS = --main $* --verbose 0
STRINCLUDES = -I $(top_builddir)/src/syn \
-I $(ASFIX_TOOLS)/share/asfix-tools \
-I $(XTC)/share/xtc
CLEANFILES = pack-boxedsdf.{c.dep,c}
-I $(XTC)/share/xtc \
-I $(top_builddir)/config
CLEANFILES = pack-boxedsdf.{c.dep,c} $(man_MANS) pack-boxedsdf.inc
nodist_pack_boxedsdf_SOURCES = pack-boxedsdf.c
EXTRA_DIST = pack-boxedsdf.str
pack-boxedsdf.1: pack-boxedsdf pack-boxedsdf.inc
$(HELP2MAN) -S LRDE -i pack-boxedsdf.inc \
--no-info ./pack-boxedsdf -o $@
pack-boxedsdf.inc: $(top_srcdir)/src/mancmds
sed -e "/^pack-boxedsdf$$/d" $< | \
sed -f $(top_srcdir)/config/seealso.sed >$@
......@@ -19,9 +19,16 @@ module pack-boxedsdf
imports xtc-proc lib stratego-xt-xtc-tools
imports Sdf-ParseTree-Syntax Kernel-Sdf-Syntax
imports asfix-abstractions pack-modules AsFix2-Syntax
imports version
strategies
short-description(p) = !["pack-boxedsdf packs all boxedsdf module files ",
"to give a syntax definition.\n\nIt works like ",
"pack-sdf, except it can accept customs SDF ",
"grammars.\n\n",
"Usage: ", <p>(), " [options]"]
get-syntax = (<get-config> "-s" <+ !"BoxedSdf2")
; if-verbose2(debug(!"Using grammar: "))
; !(<id>, ".tbl")
......
......@@ -2,10 +2,32 @@ include $(top_srcdir)/config/Makefile.xt
-include parse-boxedsdf-module.c.dep parse-boxedsdf-definition.c.dep
bin_PROGRAMS = parse-boxedsdf-module parse-boxedsdf-definition
man_MANS = parse-boxedsdf-module.1 parse-boxedsdf-definition.1
SCFLAGS = --main $* --verbose 0
STRINCLUDES = -I $(XTC)/share/xtc
STRINCLUDES = -I $(XTC)/share/xtc \
-I $(top_builddir)/config
CLEANFILES = parse-boxedsdf-module.{c.dep,c} \
parse-boxedsdf-definition.{c.dep,c}
parse-boxedsdf-definition.{c.dep,c} \
$(man_MANS) \
parse-boxedsdf-module.inc \
parse-boxedsdf-definition.inc
nodist_parse_boxedsdf_module_SOURCES = parse-boxedsdf-module.c
nodist_parse_boxedsdf_definition_SOURCES = parse-boxedsdf-definition.c
EXTRA_DIST = parse-boxedsdf-module.str parse-boxedsdf-definition.str
parse-boxedsdf-definition.1: parse-boxedsdf-definition \
parse-boxedsdf-definition.inc
$(HELP2MAN) -S LRDE -i parse-boxedsdf-definition.inc \
--no-info ./parse-boxedsdf-definition -o $@
parse-boxedsdf-module.1: parse-boxedsdf-module parse-boxedsdf-module.inc
$(HELP2MAN) -S LRDE -i parse-boxedsdf-module.inc \
--no-info ./parse-boxedsdf-module -o $@
parse-boxedsdf-module.inc: $(top_srcdir)/src/mancmds
sed -e "/^parse-boxedsdf-module$$/d" $< | \
sed -f $(top_srcdir)/config/seealso.sed >$@
parse-boxedsdf-definition.inc: $(top_srcdir)/src/mancmds
sed -e "/^parse-boxedsdf-definition$$/d" $< | \
sed -f $(top_srcdir)/config/seealso.sed >$@
/**
* BoxedSdf
* Copyright (C) 2003 LRDE
* Copyright (C) 2003, 2004 LRDE
*
* 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
......@@ -21,10 +21,14 @@
* Author: Valentin David <valentin@lrde.epita.fr>
*/
module parse-boxedsdf-definition
imports xtc-lib stratego-xt-xtc-tools
imports xtc-lib stratego-xt-xtc-tools version
strategies
short-description(p) = !["parse-boxedsdf-definition parses boxedsdf ",
"definition files.\n\n",
"Usage: ", <p>(), " [options]"]
/**
* XTC parse strategy
*/
......
/**
* BoxedSdf
* Copyright (C) 2003 LRDE
* Copyright (C) 2003, 2004 LRDE
*
* 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
......@@ -21,10 +21,14 @@
* Author: Valentin David <valentin@lrde.epita.fr>
*/
module parse-boxedsdf-module
imports xtc-lib stratego-xt-xtc-tools
imports xtc-lib stratego-xt-xtc-tools version
strategies
short-description(p) = !["parse-boxedsdf-module parses boxedsdf ",
"module files.\n\n",
"Usage: ", <p>(), " [options]"]
/**
* XTC parse strategy
*/
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment