aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorLars Thorsen <[email protected]>2010-09-28 09:46:32 +0200
committerLars Thorsen <[email protected]>2010-12-01 12:10:51 +0100
commitf11f263bade1738009d6aa8678b4ae381d2d47df (patch)
tree4700752e882c76cba1fd5029fbc3cecb07bc58fb /erts
parent9c37a5e56076c85e583848b02400e900a279ac5b (diff)
downloadotp-f11f263bade1738009d6aa8678b4ae381d2d47df.tar.gz
otp-f11f263bade1738009d6aa8678b4ae381d2d47df.tar.bz2
otp-f11f263bade1738009d6aa8678b4ae381d2d47df.zip
Fix format_man_pages so it handles all man sections and remove warnings/errors in man pages
Diffstat (limited to 'erts')
-rw-r--r--erts/etc/unix/format_man_pages31
1 files changed, 9 insertions, 22 deletions
diff --git a/erts/etc/unix/format_man_pages b/erts/etc/unix/format_man_pages
index 2c4f6eee4f..93dcdcd8fa 100644
--- a/erts/etc/unix/format_man_pages
+++ b/erts/etc/unix/format_man_pages
@@ -3,7 +3,7 @@
#
# %CopyrightBegin%
#
-# Copyright Ericsson AB 1996-2009. All Rights Reserved.
+# Copyright Ericsson AB 1996-2010. All Rights Reserved.
#
# The contents of this file are subject to the Erlang Public License,
# Version 1.1, (the "License"); you may not use this file except in
@@ -59,34 +59,21 @@ esac
# Create the 'cat' directories (probably not needed)
#
-cd $ERL_ROOT
+cd $ERL_ROOT/man
-if [ ! -d man/cat1 ]
-then
- mkdir man/cat1
-fi
+for d in 0 1 2 3 4 5 6 7 8 9
+do
+ if [ ! -d cat$d ]
+ then
+ mkdir cat$d
+ fi
-if [ ! -d man/cat3 ]
-then
- mkdir man/cat3
-fi
-
-if [ ! -d man/cat4 ]
-then
- mkdir man/cat4
-fi
-
-if [ ! -d man/cat6 ]
-then
- mkdir man/cat6
-fi
+done
#
# Cleanup old formatting
#
-cd $ERL_ROOT/man
-
rm -f whatis windex
# Remove old cat files