Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gen_manpage.sh « utils - github.com/rpm-software-management/createrepo_c.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9691b9afe0b33659bc5f208d857e8d7ad6d3a15c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

# /usr/share/man/man8/createrepo_c.8.gz

EXPECTED_ARGS=2
if [ $# -ne $EXPECTED_ARGS ]
then
    echo "Usage: `basename $0` <input_file> <outputdir>"
    echo
    echo "Example: `basename $0` ../src/cmd_parser.c ../doc/"
    exit 1
fi

MY_DIR=`dirname $0`
MY_DIR="$MY_DIR/"

python $MY_DIR/gen_rst.py $1 | rst2man | gzip > $2/createrepo_c.8.gz