commit 0e7f121
hovercats
·
2024-09-16 01:41:56 +0000 UTC
parent 7559ce8
scdoc: port to oasis' buildsystem. when building scdoc, we will use $outdir/scdoc, as opposed so scdoc in PATH. this avoids making users having scdoc in PATH before bootstrap, but users would have to run an extra command before 'samu commit', if scdoc is to be installed. I consider this only a minor inconvience.
12 files changed,
+35,
-48
+3,
-0
1@@ -287,3 +287,6 @@
2 [submodule "pkg/u-config/src"]
3 path = pkg/u-config/src
4 url = https://github.com/skeeto/u-config
5+[submodule "pkg/scdoc/src"]
6+ path = pkg/scdoc/src
7+ url = https://git.sr.ht/~sircmpwn/scdoc
+1,
-0
1@@ -75,6 +75,7 @@ subgen 'rcinit'
2 subgen 'rcsm'
3 subgen 'samurai'
4 subgen 'sbase'
5+subgen 'scdoc'
6 subgen 'sdhcp'
7 subgen 'skeleton'
8 subgen 'smu'
+1,
-0
1@@ -0,0 +1 @@
2+/local.ninja
+28,
-0
1@@ -0,0 +1,28 @@
2+cflags{
3+ [[-D 'VERSION="1.11.3"']],
4+ '-std=c99',
5+ '-Wall',
6+ '-Wno-unused-parameter',
7+ '-I $srcdir/include',
8+}
9+
10+exe('scdoc', [[
11+ src/(
12+ main.c string.c
13+ utf8_chsize.c utf8_decode.c
14+ utf8_encode.c utf8_fgetch.c
15+ utf8_fputch.c utf8_size.c
16+ util.c
17+ )
18+]])
19+
20+file('bin/scdoc', '755', '$outdir/scdoc')
21+
22+rule('doc', '$outdir/scdoc < $in >$out')
23+build('doc', '$outdir/scdoc.1', '$srcdir/scdoc.1.scd')
24+build('doc', '$outdir/scdoc.5', '$srcdir/scdoc.5.scd')
25+
26+man{'$outdir/scdoc.1'}
27+man{'$outdir/scdoc.5'}
28+
29+fetch 'git'
+1,
-0
1@@ -0,0 +1 @@
2+Subproject commit 0528bcb993cac6c412acd3ae2e09539e994c0a59
+1,
-0
1@@ -0,0 +1 @@
2+1.11.3 r0
+0,
-37
1@@ -1,37 +0,0 @@
2-scdoc
3-________________________________________________________________________________
4-
5-scdoc is a simple man page generator for POSIX systems written in C99. [0]
6-
7-Upstream: https://git.sr.ht/~sircmpwn/scdoc
8-
9-
10-[000] Index
11-________________________________________________________________________________
12-
13-* Installation ........................................................... [001]
14-* Usage .................................................................. [002]
15-* References ............................................................. [003]
16-
17-
18-[001] Installation
19-________________________________________________________________________________
20-
21-+------------------------------------------------------------------------------+
22-| |
23-| $ kiss b scdoc |
24-| |
25-+------------------------------------------------------------------------------+
26-
27-
28-[002] Usage
29-________________________________________________________________________________
30-
31-Refer to the manual pages and command help output.
32-
33-
34-[003] References
35-________________________________________________________________________________
36-
37-[0] https://git.sr.ht/~sircmpwn/scdoc
38-
+0,
-7
1@@ -1,7 +0,0 @@
2-#!/bin/sh -e
3-
4-make PREFIX=/usr
5-make PREFIX=/usr DESTDIR="$1" install
6-
7-# Compress manpages
8-find "$1/usr/share/man" -type f -exec gzip -n -9 {} +
+0,
-1
1@@ -1 +0,0 @@
2-241d4d907395bdd25a17fea878e8c476ec988f2e247fcea462955fd43f2f98ac21
+0,
-1
1@@ -1 +0,0 @@
2-https://git.sr.ht/~sircmpwn/scdoc/archive/1.11.3.tar.gz
+0,
-1
1@@ -1 +0,0 @@
2-1.11.3 2
+0,
-1
1@@ -1,2 +1 @@
2 go make
3-scdoc make