debian/0000755000000000000000000000000012201216574007166 5ustar debian/changelog0000644000000000000000000000630012201216471011033 0ustar foundry (0.0.20130809-2) unstable; urgency=low * Add nothrow dtors for exceptions (powerpc complained) -- Simon Richter Fri, 09 Aug 2013 18:47:32 +0200 foundry (0.0.20130809-1) unstable; urgency=low * New upstream release -- Simon Richter Fri, 09 Aug 2013 17:28:46 +0200 foundry (0.0.20130716-1) unstable; urgency=low * New upstream release -- Simon Richter Tue, 16 Jul 2013 20:09:04 +0200 foundry (0.0.20130703-3) unstable; urgency=low * Update gcc 4.8 workaround -- Simon Richter Wed, 03 Jul 2013 15:11:08 +0200 foundry (0.0.20130703-2) unstable; urgency=low * Work around #714851. -- Simon Richter Wed, 03 Jul 2013 14:44:05 +0200 foundry (0.0.20130703-1) unstable; urgency=low * New upstream release -- Simon Richter Wed, 03 Jul 2013 12:10:58 +0200 foundry (0.0.20130624-1) unstable; urgency=low * New upstream release -- Simon Richter Mon, 24 Jun 2013 14:05:31 +0200 foundry (0.0.20100226-3) unstable; urgency=low * Fix build with gcc 4.8 (Closes: #701279) * Bump Standards-Version * Use debhelper 9 * Fix lintian warnings -- Simon Richter Fri, 14 Jun 2013 21:45:26 +0200 foundry (0.0.20100226-2) unstable; urgency=low * Fix build against bison 2.7 (Closes: #710652) -- Simon Richter Sat, 01 Jun 2013 13:39:46 +0200 foundry (0.0.20100226-1) unstable; urgency=low * New upstream release -- Simon Richter Fri, 26 Feb 2010 14:47:11 +0100 foundry (0.0.20100221-1) unstable; urgency=low * New upstream release * Switch to 3.0 (quilt) format * Kill xcontrol file -- Simon Richter Sun, 21 Feb 2010 00:24:34 +0100 foundry (0.0.20090514-3) unstable; urgency=low * Update Boost build dependencies * Add support for parallel builds -- Simon Richter Thu, 27 Aug 2009 16:46:45 +0200 foundry (0.0.20090514-2) unstable; urgency=low * Remove bashism in debian/rules (Closes: #535381) * Bump Standards-Version -- Simon Richter Thu, 02 Jul 2009 10:18:12 +0200 foundry (0.0.20090514-1) unstable; urgency=low * New upstream release -- Simon Richter Thu, 14 May 2009 17:28:27 +0200 foundry (0.0.20090513-1) unstable; urgency=low * New upstream release * Move to unstable in anticipation of dependency from debian-xcontrol -- Simon Richter Wed, 13 May 2009 12:48:35 +0200 foundry (0.0.20090508.1751-1) experimental; urgency=low * New upstream release -- Simon Richter Fri, 08 May 2009 17:52:08 +0200 foundry (0.0.20090508-1) experimental; urgency=low * New upstream release -- Simon Richter Fri, 08 May 2009 16:06:26 +0200 foundry (0.0.20090507-1) experimental; urgency=low * New upstream release -- Simon Richter Thu, 07 May 2009 10:17:03 +0200 foundry (0.0.20090506-1) experimental; urgency=low * New upstream release -- Simon Richter Wed, 06 May 2009 10:36:57 +0200 foundry (0.0.20090505-1) experimental; urgency=low * Initial release -- Simon Richter Tue, 05 May 2009 21:31:15 +0200 debian/foundry.docs0000644000000000000000000000002112171307176011524 0ustar doc/foundry-tree debian/rules0000755000000000000000000000033712171306444010253 0ustar #!/usr/bin/make -f ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) $(error Cross compilation not supported) endif %: dh $@ --parallel override_dh_auto_build: dh_auto_build --parallel -- CXXFLAGS+='-W -Wall -Werror' debian/compat0000644000000000000000000000000212156675351010377 0ustar 9 debian/watch0000644000000000000000000000007711340066542010224 0ustar version=3 http://www.hogyros.de/download/foundry-(.*)\.tar\.gz debian/source/0000755000000000000000000000000012201206236010460 5ustar debian/source/format0000644000000000000000000000001411340067043011672 0ustar 3.0 (quilt) debian/source/include-binaries0000644000000000000000000000370512201206435013626 0ustar build/foundry-build.o lang/foundry-parse lang/foundry-tree lang/stage1/bison_output_visitor.o lang/stage1/bison_to_ast_visitor.o lang/stage1/foundry-parse lang/stage1/foundry-parse.o lang/stage1/header_output_visitor.o lang/stage1/impl_output_visitor.o lang/stage1/inline_simple_visitor.o lang/stage1/lex_output_visitor.o lang/stage1/mark_nodes_visitor.o lang/stage1/parse_cst_cst.o lang/stage1/parse_cst_lex.o lang/stage1/parse_cst_parse.o lang/stage1/parse_cst_to_ast_visitor.o lang/stage1/parse_tree.o lang/stage1/resolve_literals_visitor.o lang/stage1/resolve_regexes_visitor.o lang/stage1/resolve_symbols_visitor.o lang/stage1/smartpointer_visitor.o lang/stage1/tree_bison.o lang/stage1/tree_bison_cst.o lang/stage1/tree_bison_lex.o lang/stage1/tree_bison_parse.o lang/stage1/tree_cst.o lang/stage1/tree_cst_cst.o lang/stage1/tree_cst_lex.o lang/stage1/tree_cst_parse.o lang/stage1/tree_cst_to_ast_visitor.o lang/stage1/tree_tree.o lang/stage1/unroll_repetitions_visitor.o lang/stage2/bison_output_visitor.o lang/stage2/bison_to_ast_visitor.o lang/stage2/foundry-parse.o lang/stage2/foundry-tree.o lang/stage2/header_output_visitor.o lang/stage2/impl_output_visitor.o lang/stage2/inline_simple_visitor.o lang/stage2/lex_output_visitor.o lang/stage2/mark_nodes_visitor.o lang/stage2/parse_cst_cst.o lang/stage2/parse_cst_lex.o lang/stage2/parse_cst_parse.o lang/stage2/parse_cst_to_ast_visitor.o lang/stage2/parse_tree.o lang/stage2/resolve_literals_visitor.o lang/stage2/resolve_regexes_visitor.o lang/stage2/resolve_symbols_visitor.o lang/stage2/smartpointer_visitor.o lang/stage2/tree_bison.o lang/stage2/tree_bison_cst.o lang/stage2/tree_bison_lex.o lang/stage2/tree_bison_parse.o lang/stage2/tree_cst.o lang/stage2/tree_cst_cst.o lang/stage2/tree_cst_lex.o lang/stage2/tree_cst_parse.o lang/stage2/tree_cst_to_ast_visitor.o lang/stage2/tree_tree.o lang/stage2/unroll_repetitions_visitor.o build/build_tree.o build/foundry-build lang/stage1/foundry-tree lang/stage1/foundry-tree.o debian/copyright0000644000000000000000000000223711340066542011126 0ustar This package was debianized by: Simon Richter on Tue, 05 May 2009 21:31:15 +0200 It was downloaded from: http://www.hogyros.de/download/ Upstream Author: Simon Richter Copyright: Copyright (C) 2009 Simon Richter License: 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 3 of the License, or (at your option) any later version. This package 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, see . On Debian systems, the complete text of the GNU General Public License version 3 can be found in `/usr/share/common-licenses/GPL-3'. The Debian packaging is: Copyright (C) 2009 Simon Richter and is licensed under the GPL version 3, see above. debian/control0000644000000000000000000000074312156675342010610 0ustar Source: foundry Section: devel Priority: extra Maintainer: Simon Richter Build-Depends: libboost-dev, debhelper (>= 9), flex, bison Standards-Version: 3.9.4 Package: foundry Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: Code generation tools This is (the start of) a collection of code generators for various common tasks in software development. . Contains: * an AST/CST class generator (with a heavy bias towards C++ and Boost) debian/patches/0000755000000000000000000000000012201216332010605 5ustar debian/patches/c++110000644000000000000000000000057312201206055011250 0ustar Description: Use C++11 even if CXXFLAGS have been passed Author: Simon Richter Last-Update: 2013-08-09 --- foundry-0.0.20130809.orig/lang/Makefile +++ foundry-0.0.20130809/lang/Makefile @@ -7,7 +7,7 @@ CPPFLAGS ?= CXXFLAGS ?= -W -Wall -Werror -g LDFLAGS ?= -W -Wall -Werror -g -CXXFLAGS += -std=c++0x +override CXXFLAGS += -std=c++0x MKDIR ?= mkdir -p debian/patches/series0000644000000000000000000000007312201216137012025 0ustar distclean c++11 warning include test install gcc48 nothrow debian/patches/nothrow0000644000000000000000000000255412201216332012236 0ustar Description: Add nothrow dtors to exceptions Author: Simon Richter Last-Update: 2013-08-09 --- foundry-0.0.20130809.orig/lang/errors.h +++ foundry-0.0.20130809/lang/errors.h @@ -12,6 +12,7 @@ class internal_error : public: internal_error(std::string const &msg) : std::runtime_error("internal error: " + msg) { } + virtual ~internal_error() throw() { } }; class input_error : @@ -19,6 +20,7 @@ class input_error : { public: input_error(std::string const &msg) : std::logic_error(msg) { } + virtual ~input_error() throw() { } }; class unknown_production : @@ -26,6 +28,7 @@ class unknown_production : { public: unknown_production() : input_error("unknown production") { } + virtual ~unknown_production() throw() { } }; class unhandled_directive : @@ -35,6 +38,7 @@ public: unhandled_directive(std::string const &directive) : input_error("unhandled directive " + directive), directive(directive) { } + virtual ~unhandled_directive() throw() { } std::string const directive; }; @@ -45,6 +49,7 @@ public: duplicate_rule(std::string const &rule) : input_error("duplicate rule " + rule), rule(rule) { } + virtual ~duplicate_rule() throw() { } std::string const rule; }; debian/patches/test0000644000000000000000000000045412201206470011514 0ustar Description: Add missing "test" target Author: Simon Richter Last-Update: 2013-08-09 --- foundry-0.0.20130809.orig/build/Makefile +++ foundry-0.0.20130809/build/Makefile @@ -9,7 +9,7 @@ override CXXFLAGS += -I. all:: foundry-build -check: all +test check: all update: all debian/patches/distclean0000644000000000000000000000115712201205746012511 0ustar Description: Add missing distclean targets Author: Simon Richter Last-Update: 2013-08-09 --- foundry-0.0.20130809.orig/lang/Makefile +++ foundry-0.0.20130809/lang/Makefile @@ -62,9 +62,9 @@ update: $(addprefix update/,$(BOOTSTRAP) check test: $(addprefix update/,$(BOOTSTRAP)) -.PHONY: clean +.PHONY: clean distclean -clean: +clean distclean: $(RM) foundry-parse foundry-tree $(RM) -r stage1 $(RM) -r stage2 --- foundry-0.0.20130809.orig/build/Makefile +++ foundry-0.0.20130809/build/Makefile @@ -13,6 +13,8 @@ check: all update: all +distclean: clean + clean:: $(RM) foundry-build debian/patches/warning0000644000000000000000000000101112201206154012167 0ustar Description: Fix a warning Author: Simon Richter Last-Update: 2013-08-09 --- foundry-0.0.20130809.orig/build/foundry-build.cpp +++ foundry-0.0.20130809/build/foundry-build.cpp @@ -16,7 +16,7 @@ int main(int, char **) if(!d) return 1; - for(dirent *ent; ent = ::readdir(d);) + for(dirent *ent; (ent = ::readdir(d));) { if(ent->d_type != DT_REG) continue; debian/patches/gcc480000644000000000000000000000073612201207327011452 0ustar Description: Fix build with gcc 4.8 Author: Simon Richter Last-Update: 2013-08-09 --- foundry-0.0.20130809.orig/lang/Makefile +++ foundry-0.0.20130809/lang/Makefile @@ -192,8 +192,8 @@ stage1/%.o: stage1/%.cpp %_parse.cpp: %.yy $(YACC) -o $@ $< -stage1/%_lex.o: CXXFLAGS+=-Wno-unused -stage2/%_lex.o: CXXFLAGS+=-Wno-unused +stage1/%_lex.o: CXXFLAGS+=-Wno-unused-parameter +stage2/%_lex.o: CXXFLAGS+=-Wno-unused-parameter stage1/.%.d: @mkdir -p $(@D) debian/patches/install0000644000000000000000000000045312201206577012212 0ustar Description: Add missing install target Author: Simon Richter Last-Update: 2013-08-09 --- foundry-0.0.20130809.orig/build/Makefile +++ foundry-0.0.20130809/build/Makefile @@ -9,6 +9,8 @@ override CXXFLAGS += -I. all:: foundry-build +install: + test check: all update: all debian/patches/include0000644000000000000000000000061512201206371012157 0ustar Description: Explicitly include current dir Author: Simon Richter Last-Update: 2013-08-09 --- foundry-0.0.20130809.orig/build/Makefile +++ foundry-0.0.20130809/build/Makefile @@ -5,7 +5,7 @@ SOURCES = $(wildcard *.cpp) OBJECTS = $(SOURCES:.cpp=.o) $(TREESOURCES:.ftree=_tree.o) DEPENDS = $(OBJECTS:%.o=.%.d) -CXXFLAGS = -I. +override CXXFLAGS += -I. all:: foundry-build