From fc162da32c95cdc384311d8c15718fff9bd774a0 Mon Sep 17 00:00:00 2001 From: Sparky6 Date: Mon, 13 Mar 2023 12:28:03 +0100 Subject: [PATCH] csharp-s6ts --- csharp/.dummy | 0 debian/mdoc-tools.build | 15 +++++++++++++++ debian/mdoc-tools.changelog | 4 ++++ debian/mdoc-tools.conf | 5 +++++ debian/mdoc-tools.control | 12 ++++++++++++ debian/mdoc-tools.cp | 11 +++++++++++ debian/mdoc-tools.prebuild | 26 ++++++++++++++++++++++++++ doc/README | 2 +- 8 files changed, 74 insertions(+), 1 deletion(-) create mode 100644 csharp/.dummy create mode 100755 debian/mdoc-tools.build create mode 100644 debian/mdoc-tools.changelog create mode 100644 debian/mdoc-tools.conf create mode 100644 debian/mdoc-tools.control create mode 100755 debian/mdoc-tools.cp create mode 100755 debian/mdoc-tools.prebuild diff --git a/csharp/.dummy b/csharp/.dummy new file mode 100644 index 0000000..e69de29 diff --git a/debian/mdoc-tools.build b/debian/mdoc-tools.build new file mode 100755 index 0000000..4cb48ba --- /dev/null +++ b/debian/mdoc-tools.build @@ -0,0 +1,15 @@ +#!/bin/bash +set -e + +pushd csharp/mutil >/dev/null + make mutil.dll +popd >/dev/null + +pushd csharp/mDocLib >/dev/null + make mdoclib.dll +popd >/dev/null + +pushd csharp/mDoc >/dev/null + make mdoc.exe +popd >/dev/null + diff --git a/debian/mdoc-tools.changelog b/debian/mdoc-tools.changelog new file mode 100644 index 0000000..9f018e5 --- /dev/null +++ b/debian/mdoc-tools.changelog @@ -0,0 +1,4 @@ +mdoc (0.1-%BUILD%) unstable; urgency=medium + * C# port for mmailc + -- Michael Wagner Fri, 30 Dec 2022 16:54:48 +0100 + diff --git a/debian/mdoc-tools.conf b/debian/mdoc-tools.conf new file mode 100644 index 0000000..9077468 --- /dev/null +++ b/debian/mdoc-tools.conf @@ -0,0 +1,5 @@ +compile_type=ANY +compile_target=mdoc + +target_type=DEB + diff --git a/debian/mdoc-tools.control b/debian/mdoc-tools.control new file mode 100644 index 0000000..3ce29f8 --- /dev/null +++ b/debian/mdoc-tools.control @@ -0,0 +1,12 @@ +Source: mdoc +Section: main +Priority: optional +Maintainer: WagnerTech UG + +Package: mdoc-tools +Section: base +Priority: optional +Architecture: _DEB_HOST_ARCH +Depends: mono-runtime +Description: documentation utilities + diff --git a/debian/mdoc-tools.cp b/debian/mdoc-tools.cp new file mode 100755 index 0000000..d41f3cd --- /dev/null +++ b/debian/mdoc-tools.cp @@ -0,0 +1,11 @@ +#!/bin/bash +set -e + +BUILD_DIR=~/build +mkdir -p $1/usr/lib/mdoc-tools +cp $BUILD_DIR/csharp/mutil/mutil.dll $1/usr/lib/mdoc-tools +cp $BUILD_DIR/csharp/mDocLib/mdoclib.dll $1/usr/lib/mdoc-tools +cp $BUILD_DIR/csharp/mDoc/mdoc.exe $1/usr/lib/mdoc-tools +mkdir -p $1/usr/bin +cp csharp/bin/mdoc $1/usr/bin + diff --git a/debian/mdoc-tools.prebuild b/debian/mdoc-tools.prebuild new file mode 100755 index 0000000..a20ea2c --- /dev/null +++ b/debian/mdoc-tools.prebuild @@ -0,0 +1,26 @@ +#!/bin/bash +set -e + +pushd csharp/mDoc >/dev/null + ln -s /usr/share/mbuild/makefile . + echo "SOURCES=\\" >> make.pre + find . -name "*.cs" -exec echo " "{}" \\" >> make.pre \; + echo >> make.pre + echo "CSLIBS = -r:../mDocLib/mdoclib.dll" >> make.pre +popd >/dev/null + +pushd csharp/mutil >/dev/null + ln -s /usr/share/mbuild/makefile . + echo "SOURCES=\\" >> make.pre + find . -name "*.cs" -exec echo " "{}" \\" >> make.pre \; + echo >> make.pre +popd >/dev/null + +pushd csharp/mDocLib >/dev/null + ln -s /usr/share/mbuild/makefile . + echo "SOURCES=\\" >> make.pre + find . -name "*.cs" -exec echo " "{}" \\" >> make.pre \; + echo >> make.pre + echo "CSLIBS = -r:../mutil/mutil.dll" >> make.pre +popd >/dev/null + diff --git a/doc/README b/doc/README index a1a42dc..3589af7 100644 --- a/doc/README +++ b/doc/README @@ -15,7 +15,7 @@ Dabei gelten folgende Regeln: Hier finden sich Definitionen, die in jeder XML-Tiefe auftreten dürfen x Hier finden sich Definitionen in derselben hierarchischen Ordnung wie im Docbook -- XML-Tags im Template können das "position"-Attribut haben: +- XML-Tags unter können das "position"-Attribut haben: x position="first" positioniert den tpl-Wert vor die weitere Verarbeitung x Ohne Attribut wird mit der Ausgabe des Docbookinhalts fortgefahren. Bei der Weiterverarbeitung wird zuerst der (allfällige) Wert des Docbook-Tags ausgegeben, -- 2.20.1