Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lammps
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
multiscale
lammps
Commits
86ed5559
Commit
86ed5559
authored
7 years ago
by
Dr. Nandor Tamaskovics
Browse files
Options
Downloads
Patches
Plain Diff
The bash shell script doxygen.sh has been revised.
parent
26d6f6d1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/doxygen/doxygen.sh
+52
-72
52 additions, 72 deletions
tools/doxygen/doxygen.sh
with
52 additions
and
72 deletions
tools/doxygen/doxygen.sh
+
52
−
72
View file @
86ed5559
...
...
@@ -21,107 +21,87 @@ FIG2DEV=`which fig2dev` ;
DOXYGEN
=
`
which doxygen
`
;
error
=
0
;
if
[[
-d
${
LAMMPSSRC
}
&&
-d
${
LAMMPSDEVELOPERDOC
}
&&
-d
${
LAMMPSDOC
}
&&
-f
${
LAMMPSDOCMAKE
}
&&
-d
${
LAMMPSDOXYGEN
}
&&
-f
${
LAMMPSDOXYFILE
}
]]
;
then
cd
${
LAMMPSSRC
}
;
make no-all
;
cd
${
LAMMPSBASE
}
;
else
error
=
1
;
echo
"Cannot configure LAMMPS sources - Please run doxygen.sh from the LAMMPS root directory."
echo
"Cannot configure LAMMPS sources - Please run doxygen.sh from the LAMMPS root directory."
>
&2
;
exit
1
;
fi
;
if
[
${
error
}
==
0
]
;
if
[
!
-x
${
FIG2DEV
}
]
;
then
if
[[
!
-x
${
FIG2DEV
}
]]
;
then
error
=
1
;
echo
"
${
FIG2DEV
}
not found - Please install
${
FIG2DEV
}
for Your operating system."
;
fi
;
echo
"
${
FIG2DEV
}
not found - Please install
${
FIG2DEV
}
for Your operating system."
>
&2
;
exit
1
;
fi
;
if
[
${
error
}
==
0
]
;
if
[
-d
${
LAMMPSDEVELOPERDOC
}
]
;
then
if
[[
-d
${
LAMMPSDEVELOPERDOC
}
]]
;
then
${
FIG2DEV
}
-L
png
${
LAMMPSDEVELOPERDOC
}
/classes.fig
>
tools/doxygen/classes.png
;
${
FIG2DEV
}
-L
eps
${
LAMMPSDEVELOPERDOC
}
/classes.fig
>
tools/doxygen/classes.eps
;
else
error
=
1
;
echo
"LAMMPS developer documentation not found - Please control Your LAMMPS installation."
;
fi
;
fi
;
${
FIG2DEV
}
-L
png
${
LAMMPSDEVELOPERDOC
}
/classes.fig
>
tools/doxygen/classes.png
;
${
FIG2DEV
}
-L
eps
${
LAMMPSDEVELOPERDOC
}
/classes.fig
>
tools/doxygen/classes.eps
;
else
echo
"LAMMPS developer documentation not found - Please control Your LAMMPS installation."
>
&2
;
exit
1
;
fi
;
if
[
${
error
}
==
0
]
;
if
[
!
-x
${
DOXYGEN
}
]
;
then
if
[[
!
-x
${
DOXYGEN
}
]]
;
then
error
=
1
;
echo
"doxygen not found - Please install doxygen for Your operating system."
;
fi
;
echo
"doxygen not found - Please install doxygen for Your operating system."
>
&2
;
exit
1
;
fi
;
if
[
${
error
}
==
0
]
;
if
[
[
-d
${
LAMMPSSRC
}
&&
-f
${
LAMMPSDOXYFILE
}
&&
-f
${
LAMMPSDEVELOPERDOXFILE
}
]
]
;
then
if
[[
-d
${
LAMMPSSRC
}
&&
-f
${
LAMMPSDOXYFILE
}
&&
-f
${
LAMMPSDEVELOPERDOXFILE
}
]]
;
then
ICS
=
' '
;
read
-r
-a
array <
${
LAMMPSSRC
}
/version.h
;
version
=
`
echo
${
array
[2]
}
${
array
[3]
}
${
array
[4]
}
|
sed
s/
\"
//g
`
;
cp
-av
${
LAMMPSDOXYFILE
}
${
DOXYFILE
}
;
sed
-i
"s/LAMMPS_VERSION/
${
version
}
/g"
${
DOXYFILE
}
;
cp
-av
${
LAMMPSDEVELOPERDOXFILE
}
${
DEVELOPERDOXFILE
}
;
sed
-i
"s/LAMMPS_VERSION/
${
version
}
/g"
${
DEVELOPERDOXFILE
}
;
${
DOXYGEN
}
${
DOXYFILE
}
;
else
echo
"Doxyfile prototype not found - Please control Your LAMMPS installation."
;
fi
;
ICS
=
' '
;
read
-r
-a
array <
${
LAMMPSSRC
}
/version.h
;
version
=
`
echo
${
array
[2]
}
${
array
[3]
}
${
array
[4]
}
|
sed
s/
\"
//g
`
;
cp
-av
${
LAMMPSDOXYFILE
}
${
DOXYFILE
}
;
sed
-i
"s/LAMMPS_VERSION/
${
version
}
/g"
${
DOXYFILE
}
;
cp
-av
${
LAMMPSDEVELOPERDOXFILE
}
${
DEVELOPERDOXFILE
}
;
sed
-i
"s/LAMMPS_VERSION/
${
version
}
/g"
${
DEVELOPERDOXFILE
}
;
${
DOXYGEN
}
${
DOXYFILE
}
;
else
echo
"Doxyfile prototype not found - Please control Your LAMMPS installation."
>
&2
;
exit
1
;
fi
;
if
[
${
error
}
==
0
]
;
if
[
[
-d
${
LAMMPSDOC
}
&&
-f
${
LAMMPSDOCMAKE
}
]
]
;
then
if
[[
-d
${
LAMMPSDOC
}
&&
-f
${
LAMMPSDOCMAKE
}
]]
;
then
cd
${
LAMMPSDOC
}
;
if
[
-d
${
LAMMPSDOCTMP
}
]
;
then
rm
-vrf
${
LAMMPSDOCTMP
}
;
fi
;
make clean
;
make html
;
make pdf
;
cd
${
LAMMPSBASE
}
;
echo
"
${
LAMMPSDOC
}
exists."
;
else
error
=
1
;
echo
"Cannot build LAMMPS native documentation - Please run doxygen.sh from the LAMMPS root directory."
;
fi
;
cd
${
LAMMPSDOC
}
;
for
d
in
${
LAMMPSDOCTMP
}
;
do
rm
-vrf
$d
;
done
;
make clean
;
make html
;
make pdf
;
cd
${
LAMMPSBASE
}
;
echo
"
${
LAMMPSDOC
}
exists."
;
else
echo
"Cannot build LAMMPS native documentation - Please run doxygen.sh from the LAMMPS root directory."
i
>
&2
;
exit
1
;
fi
;
if
[
${
error
}
==
0
]
;
if
[
-d
${
LAMMPSDOCHTML
}
]
;
then
if
[
[
${
error
}
==
0
&&
-d
${
LAMMPSDO
CHTM
L
}
]
]
;
if
[
-d
${
LAMMPSDO
XYGENDOCMANUA
L
}
]
;
then
if
[
-d
${
LAMMPSDOXYGENDOCMANUAL
}
]
;
then
rm
-vrf
${
LAMMPSDOXYGENDOCMANUAL
}
;
echo
"
${
LAMMPSDOXYGENDOCMANUAL
}
removed."
;
fi
;
cp
-av
${
LAMMPSDOCHTML
}
${
LAMMPSDOXYGENDOCMANUAL
}
;
cp
-av
${
LAMMPSDOC
}
/
*
.pdf
${
LAMMPSDOXYGENDOCMANUAL
}
;
echo
"
${
LAMMPSDOXYGENDOCMANUAL
}
copied."
;
else
error
=
1
;
echo
"Cannot include LAMMPS native documentation into the doxygen documentation - Please run doxygen.sh from the LAMMPS root directory."
;
fi
;
rm
-vrf
${
LAMMPSDOXYGENDOCMANUAL
}
;
echo
"
${
LAMMPSDOXYGENDOCMANUAL
}
removed."
;
fi
;
cp
-av
${
LAMMPSDOCHTML
}
${
LAMMPSDOXYGENDOCMANUAL
}
;
cp
-av
${
LAMMPSDOC
}
/
*
.pdf
${
LAMMPSDOXYGENDOCMANUAL
}
;
echo
"
${
LAMMPSDOXYGENDOCMANUAL
}
copied."
;
else
echo
"Cannot include LAMMPS native documentation into the doxygen documentation - Please run doxygen.sh from the LAMMPS root directory."
>
&2
;
exit
1
;
fi
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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