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
6a2824ef
Commit
6a2824ef
authored
Jan 18, 2001
by
John R. Sheets
Committed by
Alexandre Julliard
Jan 18, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up db2html-winehq HTML generation script. Works in Debian, and
may actually work in Redhat now, too.
parent
0005e81f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
9 deletions
+30
-9
db2html-winehq
documentation/db2html-winehq
+30
-9
No files found.
documentation/db2html-winehq
View file @
6a2824ef
...
...
@@ -6,10 +6,27 @@
##
## John R. Sheets <jsheets@codeweavers.com>
## Other possible SGML stylesheets (default Debian versions...may be
## different on other distributions).
#DB_STYLESHEET=/usr/lib/sgml/stylesheet/dsssl/docbook/cygnus/cygnus-both.dsl
#DB_STYLESHEET=/usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh/html/docbook.dsl
## The DocBook installations behave differently for the various Linux
## distributions. Try to make some sense out of it all....
##
## $LINUXDIST holds the name of the distribution
## $JADETAG adds "/#html" to the stylesheet-specification in the Jade
## command line (see comments below), if necessary for that dist.
if
[
-a
/etc/debian_version
]
;
then
LINUXDIST
=
"Debian"
JADETAG
=
\#
html
fi
if
[
-a
/etc/redhat_release
]
;
then
LINUXDIST
=
"Redhat"
JADETAG
=
fi
## FIXME: Add more distributions here...
if
[
-n
"
$LINUXDIST
"
]
;
then
echo
"Using db2html parameters for a
$LINUXDIST
Linux distribution..."
fi
## Use included default.dsl DSSSL stylesheet unless explicitly overridden with
## the $WINEDOC_STYLESHEET envar.
...
...
@@ -49,7 +66,6 @@ then
then
# now make sure that the output directory is always a subdirectory
# of the current directory
echo
input_file
=
`
basename
$1
`
output
=
"
`
echo
$input_file
|
sed
's,\.sgml$,,;s,\.sgm$,,'
`
"
echo
"input file was called
$input_file
-- output will be in
$output
"
...
...
@@ -60,13 +76,18 @@ fi
mkdir
$TMPDIR
SAVE_PWD
=
`
pwd
`
if
[
$1
=
`
basename
$1
`
]
;
then
echo
"working on ../
$1
"
(
cd
$TMPDIR
;
jade
-t
sgml
-ihtml
-d
${
DB_STYLESHEET
}
\#
html ../
$1
;
cd
$SAVE_PWD
)
EXTRA_PATH
=
../
else
echo
"working on
$1
"
(
cd
$TMPDIR
;
jade
-t
sgml
-ihtml
-d
${
DB_STYLESHEET
}
\#
html
$1
;
cd
$SAVE_PWD
)
EXTRA_PATH
=
fi
JADE_CMD
=
"jade -t sgml -ihtml -d
${
DB_STYLESHEET
}${
JADETAG
}
${
EXTRA_PATH
}
$1
"
echo
"Invoking command '
$JADE_CMD
'"
echo
echo
"working on
${
EXTRA_PATH
}
$1
"
(
cd
$TMPDIR
;
$JADE_CMD
;
cd
$SAVE_PWD
)
if
[
$#
-eq
1
]
then
if
[
-d
${
output
}
.junk
]
...
...
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