csharp-s6ts
authorSparky6 <sparky6@core>
Mon, 13 Mar 2023 11:28:03 +0000 (12:28 +0100)
committerSparky6 <sparky6@core>
Mon, 13 Mar 2023 11:28:03 +0000 (12:28 +0100)
csharp/.dummy [new file with mode: 0644]
debian/mdoc-tools.build [new file with mode: 0755]
debian/mdoc-tools.changelog [new file with mode: 0644]
debian/mdoc-tools.conf [new file with mode: 0644]
debian/mdoc-tools.control [new file with mode: 0644]
debian/mdoc-tools.cp [new file with mode: 0755]
debian/mdoc-tools.prebuild [new file with mode: 0755]
doc/README

diff --git a/csharp/.dummy b/csharp/.dummy
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/debian/mdoc-tools.build b/debian/mdoc-tools.build
new file mode 100755 (executable)
index 0000000..4cb48ba
--- /dev/null
@@ -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 (file)
index 0000000..9f018e5
--- /dev/null
@@ -0,0 +1,4 @@
+mdoc (0.1-%BUILD%) unstable; urgency=medium
+  * C# port for mmailc
+ -- Michael Wagner <michael@wagnertech.de>  Fri,  30 Dec 2022 16:54:48 +0100
+
diff --git a/debian/mdoc-tools.conf b/debian/mdoc-tools.conf
new file mode 100644 (file)
index 0000000..9077468
--- /dev/null
@@ -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 (file)
index 0000000..3ce29f8
--- /dev/null
@@ -0,0 +1,12 @@
+Source: mdoc
+Section: main
+Priority: optional
+Maintainer: WagnerTech UG <mail@wagnertech.de>
+
+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 (executable)
index 0000000..d41f3cd
--- /dev/null
@@ -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 (executable)
index 0000000..a20ea2c
--- /dev/null
@@ -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
+
index a1a42dc..3589af7 100644 (file)
@@ -15,7 +15,7 @@ Dabei gelten folgende Regeln:
    Hier finden sich Definitionen, die in jeder XML-Tiefe auftreten dürfen
  x <hierarchical>
    Hier finden sich Definitionen in derselben hierarchischen Ordnung wie im Docbook
-- XML-Tags im Template können das "position"-Attribut haben:
+- XML-Tags unter <global> 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,