File tree Expand file tree Collapse file tree 4 files changed +22
-13
lines changed Expand file tree Collapse file tree 4 files changed +22
-13
lines changed Original file line number Diff line number Diff line change @@ -10,13 +10,14 @@ install:
10
10
install -D -m 0755 -t $(DESTDIR )$(prefix ) /bin target/release/bootc
11
11
install -d $(DESTDIR )$(prefix ) /lib/bootc/install
12
12
# Support installing pre-generated man pages shipped in source tarball, to avoid
13
- # a dependency on pandoc downstream
14
- if test -d man; then install -D -m 0644 -t $( DESTDIR) $( prefix) /share/man/man5 man/* .5; fi
15
- if test -d man; then install -D -m 0644 -t $( DESTDIR) $( prefix) /share/man/man8 man/* .8; fi
16
-
17
- # These are not installed by default; one recommendation is to put them in a separate
18
- # sub-package or sub-component.
19
- install-systemd-auto :
13
+ # a dependency on pandoc downstream. But in local builds these end up in target/man,
14
+ # so we honor that too.
15
+ for d in man target/man; do \
16
+ if test -d $$ d; then \
17
+ install -D -m 0644 -t $(DESTDIR )$(prefix ) /share/man/man5 $$ d/* .5; \
18
+ install -D -m 0644 -t $(DESTDIR )$(prefix ) /share/man/man8 $$ d/* .8; \
19
+ fi ; \
20
+ done
20
21
install -D -m 0644 -t $(DESTDIR ) /$(prefix ) /lib/systemd/system systemd/* .service systemd/* .timer
21
22
22
23
bin-archive : all
Original file line number Diff line number Diff line change
1
+ % bootc-fetch-apply-updates(5)
2
+
1
3
# NAME
2
4
3
5
bootc-fetch-apply-updates.service
@@ -17,11 +19,15 @@ project is enabled for daily updates.
17
19
However, it is fully expected that different operating systems
18
20
and distributions choose different defaults.
19
21
20
- ## Customizing updates
22
+ # CUSTOMIZING UPDATES
21
23
22
24
Note that all three of these steps can be decoupled; they
23
25
are:
24
26
25
27
- ` bootc upgrade --check `
26
28
- ` bootc upgrade `
27
29
- ` bootc upgrade --apply `
30
+
31
+ # SEE ALSO
32
+
33
+ ** bootc(1)**
Original file line number Diff line number Diff line change @@ -17,4 +17,5 @@ camino = "1.0"
17
17
chrono = { version = " 0.4.23" , default_features = false , features = [" std" ] }
18
18
fn-error-context = " 0.2.0"
19
19
tempfile = " 3.3"
20
+ mandown = " 0.1"
20
21
xshell = { version = " 0.2" }
Original file line number Diff line number Diff line change @@ -104,11 +104,12 @@ fn manpages(sh: &Shell) -> Result<()> {
104
104
. file_stem ( )
105
105
. and_then ( |name| name. to_str ( ) )
106
106
. ok_or_else ( || anyhow ! ( "Expected filename in {srcpath:?}" ) ) ?;
107
- cmd ! (
108
- sh,
109
- "pandoc --from=markdown --to=man --output=target/man/{base_filename}.5 {srcpath}"
110
- )
111
- . run ( ) ?;
107
+ let src =
108
+ std:: fs:: read_to_string ( & srcpath) . with_context ( || format ! ( "Reading {srcpath:?}" ) ) ?;
109
+ let section = 5 ;
110
+ let buf = mandown:: convert ( & src, base_filename, section) ;
111
+ let target = format ! ( "target/man/{base_filename}.{section}" ) ;
112
+ std:: fs:: write ( & target, buf) . with_context ( || format ! ( "Writing {target}" ) ) ?;
112
113
}
113
114
Ok ( ( ) )
114
115
}
You can’t perform that action at this time.
0 commit comments