-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathcreate-documentation
More file actions
executable file
·27 lines (25 loc) · 983 Bytes
/
create-documentation
File metadata and controls
executable file
·27 lines (25 loc) · 983 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#! /usr/bin/bash
# On Fedora 30 and Centos 8 we need rst2man but on earlier versions we need rst2man-3
CONV=rst2man
source /etc/os-release
if [[ $ID == fedora ]] && (( $VERSION_ID < 30 )); then
CONV=rst2man-3
fi
if [[ $ID == centos ]] && (( $VERSION_ID < 8 )); then
CONV=rst2man-3
fi
mkdir -p man1
rm -f man1/*.1
$CONV ct/README.ct-cache.rst man1/ct-cache.1
$CONV ct/README.ct-cache-clean.rst man1/ct-cache-clean.1
$CONV ct/README.ct-cake.rst man1/ct-cake.1
$CONV ct/README.rst man1/compiletools.1
$CONV ct/README.ct-commandline.rst man1/ct-commandline.1
$CONV ct/README.ct-config.rst man1/ct-config.1
$CONV ct/README.ct-findtargets.rst man1/ct-findtargets.1
$CONV ct/README.ct-filelist.rst man1/ct-filelist.1
$CONV ct/README.ct-gitroot.rst man1/ct-gitroot.1
$CONV ct/README.ct-headertree.rst man1/ct-headertree.1
$CONV ct/README.ct-jobs.rst man1/ct-jobs.1
$CONV ct/README.ct-list-variants.rst man1/ct-list-variants.1
$CONV ct/README.ct-magicflags.rst man1/ct-magicflags.1