Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
a83c19f4
Commit
a83c19f4
authored
May 07, 2005
by
William Poetra Yoga H
Committed by
Alexandre Julliard
May 07, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support building man pages outside of the source directory.
parent
2c7a2480
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
7 deletions
+22
-7
Makedll.rules.in
dlls/Makedll.rules.in
+3
-3
c2man.pl
tools/c2man.pl
+19
-4
No files found.
dlls/Makedll.rules.in
View file @
a83c19f4
...
...
@@ -67,13 +67,13 @@ $(MAINSPEC).c: $(MAINSPEC) $(ALL_OBJS)
# Rules for auto documentation
man: $(C_SRCS)
$(C2MAN) -o $(TOPOBJDIR)/documentation/man$(api_manext) -R$(TOPOBJDIR) -S$(api_manext) $(INCLUDES) $(MAINSPEC:%=-w %) $(SPEC_SRCS16:%=-w %) $(C_SRCS) $(C_SRCS16)
$(C2MAN) -o $(TOPOBJDIR)/documentation/man$(api_manext) -R$(TOPOBJDIR) -
C$(SRCDIR) -
S$(api_manext) $(INCLUDES) $(MAINSPEC:%=-w %) $(SPEC_SRCS16:%=-w %) $(C_SRCS) $(C_SRCS16)
doc-html: $(C_SRCS)
$(C2MAN) -o $(TOPOBJDIR)/documentation/html -R$(TOPSRCDIR) $(INCLUDES) -Th $(MAINSPEC:%=-w %) $(SPEC_SRCS16:%=-w %) $(C_SRCS) $(C_SRCS16)
$(C2MAN) -o $(TOPOBJDIR)/documentation/html -R$(TOP
OBJDIR) -C$(
SRCDIR) $(INCLUDES) -Th $(MAINSPEC:%=-w %) $(SPEC_SRCS16:%=-w %) $(C_SRCS) $(C_SRCS16)
doc-sgml: $(C_SRCS)
$(C2MAN) -o $(TOPOBJDIR)/documentation/api-guide -R$(TOPSRCDIR) $(INCLUDES) -Ts $(MAINSPEC:%=-w %) $(SPEC_SRCS16:%=-w %) $(C_SRCS) $(C_SRCS16)
$(C2MAN) -o $(TOPOBJDIR)/documentation/api-guide -R$(TOP
OBJDIR) -C$(
SRCDIR) $(INCLUDES) -Ts $(MAINSPEC:%=-w %) $(SPEC_SRCS16:%=-w %) $(C_SRCS) $(C_SRCS16)
.PHONY: man doc-html doc-sgml
...
...
tools/c2man.pl
View file @
a83c19f4
...
...
@@ -42,6 +42,7 @@ my $FLAG_64PAIR = 64; # The 64 bit version of a matching 32 bit function
# Options
my
$opt_output_directory
=
"man3w"
;
# All default options are for nroff (man pages)
my
$opt_manual_section
=
"3w"
;
my
$opt_source_dir
=
""
;
my
$opt_wine_root_dir
=
""
;
my
$opt_output_format
=
""
;
# '' = nroff, 'h' = html, 's' = sgml
my
$opt_output_empty
=
0
;
# Non-zero = Create 'empty' comments (for every implemented function)
...
...
@@ -120,7 +121,10 @@ sub process_spec_file($)
# We allow opening to fail just to cater for the peculiarities of
# the Wine build system. This doesn't hurt, in any case
open
(
SPEC_FILE
,
"<$spec_name"
)
||
return
;
open
(
SPEC_FILE
,
"<$spec_name"
)
||
((
$opt_source_dir
ne
""
)
&&
open
(
SPEC_FILE
,
"<$opt_source_dir/$spec_name"
))
||
return
;
while
(
<
SPEC_FILE
>
)
{
...
...
@@ -236,7 +240,10 @@ sub process_source_file($)
{
print
"Processing "
.
$source_file
.
"\n"
;
}
open
(
SOURCE_FILE
,
"<$source_file"
)
||
die
"couldn't open "
.
$source_file
.
"\n"
;
open
(
SOURCE_FILE
,
"<$source_file"
)
||
((
$opt_source_dir
ne
""
)
&&
open
(
SOURCE_FILE
,
"<$opt_source_dir/$source_file"
))
||
die
"couldn't open "
.
$source_file
.
"\n"
;
# Add this source file to the list of source files
$source_files
{
$source_file
}
=
[
$source_details
];
...
...
@@ -2115,6 +2122,9 @@ sub usage()
"Options:\n"
,
" -Th : Output HTML instead of a man page\n"
,
" -Ts : Output SGML (Docbook source) instead of a man page\n"
,
" -C <dir> : Source directory, to find source files if they are not found in the\n"
,
" current directory. Default is \""
,
$opt_source_dir
,
"\"\n"
,
" -R <dir> : Root of build directory, default is \""
,
$opt_wine_root_dir
,
"\"\n"
,
" -o <dir> : Create output in <dir>, default is \""
,
$opt_output_directory
,
"\"\n"
,
" -s <sect>: Set manual section to <sect>, default is "
,
$opt_manual_section
,
"\n"
,
" -e : Output \"FIXME\" documentation from empty comments.\n"
,
...
...
@@ -2156,6 +2166,10 @@ while(defined($_ = shift @ARGV))
}
last
;
};
s/^C//
&&
do
{
if
(
$_
ne
""
)
{
$opt_source_dir
=
$_
;
}
last
;
};
s/^R//
&&
do
{
if
(
$_
=~
/^\//
)
{
$opt_wine_root_dir
=
$_
;
}
else
{
$opt_wine_root_dir
=
`cd $pwd/$_ && pwd`
;
}
$opt_wine_root_dir
=~
s/\n//
;
...
...
@@ -2181,8 +2195,9 @@ if ($opt_verbose > 3)
{
print
"Output dir:'"
.
$opt_output_directory
.
"'\n"
;
print
"Section :'"
.
$opt_manual_section
.
"'\n"
;
print
"Format :'"
.
$opt_output_format
.
"'\n"
;
print
"Root :'"
.
$opt_wine_root_dir
.
"'\n"
;
print
"Format :'"
.
$opt_output_format
.
"'\n"
;
print
"Source dir:'"
.
$opt_source_dir
.
"'\n"
;
print
"Root :'"
.
$opt_wine_root_dir
.
"'\n"
;
print
"Spec files:'@opt_spec_file_list'\n"
;
print
"Includes :'@opt_header_file_list'\n"
;
print
"Sources :'@opt_source_file_list'\n"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment