From 2e8e630ea17cf00fdca617d85711537398b16ec4 Mon Sep 17 00:00:00 2001 From: dcw Date: Tue, 20 May 2014 19:13:55 +0000 Subject: [PATCH] Initial revision --- debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 16 ++++++++++++++++ debian/copyright | 43 +++++++++++++++++++++++++++++++++++++++++++ debian/dirs | 2 ++ debian/docs | 2 ++ debian/rules | 13 +++++++++++++ test/xxx.in | 10 ++++++++++ test/yyy.in | 7 +++++++ 9 files changed, 99 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/dirs create mode 100644 debian/docs create mode 100755 debian/rules create mode 100644 test/xxx.in create mode 100644 test/yyy.in diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..a3ad8e0 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +datadec (1.1-1) unstable; urgency=low + + * Initial release, created by dh_make as a test + + -- Lloyd Kamara Wed, 04 Sep 2013 12:15:00 +0100 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..afdc1b8 --- /dev/null +++ b/debian/control @@ -0,0 +1,16 @@ +Source: datadec +Section: devel +Priority: optional +Maintainer: Duncan C. White +Build-Depends: debhelper (>= 7) +Standards-Version: 3.8.3 +Homepage: + +Package: datadec +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Recursive data type generator + Datadec takes recursive data types modelled on those found in functional + languages (Hope, Miranda, Haskell etc) and generates ANSI C code to + implement them. + diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..fee5806 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,43 @@ +This work was packaged for Debian by: + + Duncan C. White on Tue, 14 Sep 2010 16:50:39 +0100 + +It was downloaded from + +Upstream Author(s): + + + + +Copyright: + + + + +License: + + This program is free software; you can redistribute it and/or modify it + under the terms of the "Artistic License" which comes with Debian. + + THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED + WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES + OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. + +On Debian systems, the complete text of the Artistic License +can be found in `/usr/share/common-licenses/Artistic'. + +The Debian packaging is: + + Copyright (C) 2010 Duncan C. White + +# Please chose a license for your packaging work. If the program you package +# uses a mainstream license, using the same license is the safest choice. +# Please avoid to pick license terms that are more restrictive than the +# packaged work, as it may make Debian's contributions unacceptable upstream. +# If you just want it to be GPL version 3, leave the following lines in. + +and is licensed under the GPL version 3, +see `/usr/share/common-licenses/GPL-3'. + +# Please also look if there are files or directories which have a +# different copyright/license attached and list them here. diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 0000000..1317f86 --- /dev/null +++ b/debian/dirs @@ -0,0 +1,2 @@ +/usr/bin +/usr/share/man/man1 diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..ff37da8 --- /dev/null +++ b/debian/docs @@ -0,0 +1,2 @@ +README +INSTALL diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..917d9bf --- /dev/null +++ b/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +%: + dh $@ diff --git a/test/xxx.in b/test/xxx.in new file mode 100644 index 0000000..7113afe --- /dev/null +++ b/test/xxx.in @@ -0,0 +1,10 @@ +TYPE { + list = nil + or cons( int head, list tail ) 1 ", " 2; + + fred = a + or b( int x, fred a ) 1 " ++b++ " 2 + or c( char a, int z, fred k ) 1 " --c-- " 2 " --c-- " 3 + or d( int x ) + or e; +} diff --git a/test/yyy.in b/test/yyy.in new file mode 100644 index 0000000..774af3a --- /dev/null +++ b/test/yyy.in @@ -0,0 +1,7 @@ +TYPE { + +intlist = null "null" | cons( int first, intlist next ) 1 " , " 2; +illist = null "n\nll" | cons( intlist first, illist next ) "[ " 1 " ] , " 2; +idtree = leaf( string id, intlist l ) "leaf( '" 1 "', " 2 ")" + | node( idtree left, idtree right ) "( " 1 " , " 2 " )"; +} -- GitLab