1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

move ifupdown2/* .

ifupdown2 code was one level deeper because ifupdown2 initially
had ifupdown2 and ifupdown2-addons as two separate packages.
Since they were combined into one package, it makes sense to
move all combined code under the top level directory

Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
This commit is contained in:
Roopa Prabhu
2015-08-02 05:45:48 -07:00
parent 65c4a2e548
commit c9a33a72d4
94 changed files with 0 additions and 0 deletions

29
scripts/genmanpages.sh Executable file
View File

@@ -0,0 +1,29 @@
#!/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 "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."