Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zmap
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
zmap
Commits
de0269c1
Commit
de0269c1
authored
16 years ago
by
rds
Browse files
Options
Downloads
Patches
Plain Diff
improved foocanvas doc generation
parent
98860f32
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/zmap_make_docs.sh
+96
-5
96 additions, 5 deletions
scripts/zmap_make_docs.sh
with
96 additions
and
5 deletions
scripts/zmap_make_docs.sh
+
96
−
5
View file @
de0269c1
...
...
@@ -20,25 +20,32 @@ zmap_message_out "Running in $INITIAL_DIR on $(hostname) under $(uname)"
zmap_message_out
"cmd line options = '
$*
'"
ZMAP_BUILD_CONTAINER
=
$1
zmap_check
${
ZMAP_BUILD_CONTAINER
:
=
$INITIAL_DIR
}
zmap_cd
$BASE_DIR
zmap_goto_cvs_module_root
ZMAP_CHECKOUT_ROOT
=
$(
pwd
)
zmap_cd src
if
[
"x
$ZMAP_MASTER_BUILD_DOXYGEN_DOCS
"
==
"x
$ZMAP_TRUE
"
]
;
then
zmap_message_out
"Running make docs ..."
# need to find a Makefile to run make against
MAKEFILE_LOC
=
$(
find
.
-name
Makefile |
head
-1
)
SAVE_DIR
=
$(
pwd
)
zmap_cd
$(
dirname
$MAKEFILE_LOC
)
make docs
||
zmap_message_exit
"Failed making documentation."
zmap_cd
$SAVE_DIR
fi
if
[
"x
$ENSCRIPT_EXE
"
!=
"x"
]
;
then
zmap_check
${
ENSCRIPT_OUTPUT_FLAG
:
=-w
}
CANVAS_DOCS_OUT_DIR
=
$ZMAP_
BUILD_CONTAINER
/
$FOOCANVAS_DOC_TARGET
CANVAS_DOCS_OUT_DIR
=
$ZMAP_
CHECKOUT_ROOT
/
$FOOCANVAS_DOC_TARGET
mkdir
-p
$CANVAS_DOCS_OUT_DIR
||
zmap_message_exit
"Failed creating output directory."
...
...
@@ -60,14 +67,98 @@ if [ "x$ENSCRIPT_EXE" != "x" ]; then
zmap_cd
$foo_headers_dir
foo_headers
=
`
find
.
-name
'foo*.h'
`
touch
$CANVAS_DOCS_OUT_DIR
/this_links.ini
touch
$CANVAS_DOCS_OUT_DIR
/index.shtml
c
=
$(
date
"+%S%N"
)
cat
>
$CANVAS_DOCS_OUT_DIR
/this_links.ini
<<
LINKS
# Auto generated by
$0
Include
$c
=<<INC
<span class="barhead">Foocanvas Interface</span>
INC
LINKS
cat
>
$CANVAS_DOCS_OUT_DIR
/index.shtml
<<
SHTML
<!-- Auto generated by
$0
. Do not edit! -->
<!--#set var="banner" value="ZMap Developer Site"-->
<!--#include virtual="/perl/header"-->
<!--#set var="author" value="edgrif@sanger.ac.uk" -->
<h5>FooCanvas Interface</h5>
<p>Documentation for the FooCanvas Interface generated by enscript.
<pre>
$ENSCRIPT_EXE
--color
$ENSCRIPT_OUTPUT_FLAG
html -Ec -o [FILENAME].shtml [FILENAME]
</pre>
</p>
<ul>
SHTML
# -------------------------------------------------------- #
# Create the html pages and the navigation for them #
# -------------------------------------------------------- #
for
header
in
$foo_headers
;
do
header
=
$(
basename
$header
)
zmap_message_out
"Creating enscript doc for FooCanvas file
$header
"
$ENSCRIPT_EXE
--color
$ENSCRIPT_OUTPUT_FLAG
html
-Ec
-o
$CANVAS_DOCS_OUT_DIR
/
$header
.shtml
$header
||
zmap_message_exit
"Failed to
$enscript
$header
"
(
cat
-
$CANVAS_DOCS_OUT_DIR
/
$header
.shtml
<<
SHTML
<!-- Automatically added by
$0
. Do not edit! -->
<!--
$ENSCRIPT_EXE
generated most of this file. Do not edit! -->
<!--#include virtual="/perl/header"-->
<!--#set var="author" value="edgrif@sanger.ac.uk" -->
SHTML
)
>
tmp
&&
mv
tmp
$CANVAS_DOCS_OUT_DIR
/
$header
.shtml
perl
-i
-lne
'print if !/HTML/'
$CANVAS_DOCS_OUT_DIR
/
$header
.shtml
perl
-i
-lne
'print if !/HEAD/'
$CANVAS_DOCS_OUT_DIR
/
$header
.shtml
perl
-i
-lne
'print if !/TITLE/'
$CANVAS_DOCS_OUT_DIR
/
$header
.shtml
perl
-i
-lne
'print if !/BODY/'
$CANVAS_DOCS_OUT_DIR
/
$header
.shtml
perl
-i
-lne
'print if !/NAME/'
$CANVAS_DOCS_OUT_DIR
/
$header
.shtml
cat
>>
$CANVAS_DOCS_OUT_DIR
/this_links.ini
<<
LINKS
$header
=
$header
.shtml
LINKS
cat
>>
$CANVAS_DOCS_OUT_DIR
/index.shtml
<<
SHTML
<li><a href="
$header
.shtml">
$header
</a></li>
SHTML
cat
>>
$CANVAS_DOCS_OUT_DIR
/
$header
.shtml
<<
SHTML
<!-- Automatically added by
$0
. Do not edit! -->
<p>Authors: <a href="mailto:edgrif@sanger.ac.uk">Ed Griffiths <edgrif@sanger.ac.uk></a>
& <a href="mailto:rds@sanger.ac.uk">Roy Storey <rds@sanger.ac.uk></a>
<p>
<!--#include virtual="/perl/footer"-->
SHTML
done
cat
>>
$CANVAS_DOCS_OUT_DIR
/index.shtml
<<
SHTML
<!-- Automatically added by
$0
. Do not edit! -->
</ul>
<p>Authors: <a href="mailto:edgrif@sanger.ac.uk">Ed Griffiths <edgrif@sanger.ac.uk></a>
& <a href="mailto:rds@sanger.ac.uk">Roy Storey <rds@sanger.ac.uk></a>
<p>
<!--#include virtual="/perl/footer"-->
SHTML
zmap_cd
$this_dir
else
zmap_message_err
"Failed to find libfoocanvas directory under
$GTK_PREFIX
/include. Is it installed there?"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment