1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00
Julien Fortin d486dd0df0 ifupdown2 2.0.0 release
This is a major update coming all at once from master-next branch
master-next branch was started with --orphan option which is basically a new
branch without history.

The major changes are:
    - repackaging
    - cleanup the directory tree
    - rewritte setup.py to allow install from deb file or pypi (pip install)
    - add a Makefile to make things (like building a deb) easier
    - review all debian files

Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
2018-12-13 11:43:32 -08:00

29 lines
627 B
Bash
Executable File

#!/bin/sh
#
# Copyright 2013 Cumulus Networks, Inc.
# All rights reserved.
#
# Install the man pages into the sysroot
SRC_MAN_DIR=$1
DST_MAN_DIR=$2
echo -n "Generating man pages .."
# Loop over all the man directories
mkdir -p $DST_MAN_DIR
for p in $(ls $SRC_MAN_DIR/*.rst) ; do
# strip src man path
src_file=$p
dst_file=${p##.*\/}
dst_file="${DST_MAN_DIR}/${dst_file%.rst}"
# treat warnings as errors
rst2man --halt=2 "$p" > $dst_file || {
echo
echo "Error: problems generating man page: $p"
rm -f $dst_file &>/dev/null
exit 1
}
echo -n "."
done
echo " done."