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
Branches containing commit
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` ;
...
@@ -21,107 +21,87 @@ FIG2DEV=`which fig2dev` ;
DOXYGEN
=
`
which doxygen
`
;
DOXYGEN
=
`
which doxygen
`
;
error
=
0
;
if
[[
-d
${
LAMMPSSRC
}
&&
-d
${
LAMMPSDEVELOPERDOC
}
&&
-d
${
LAMMPSDOC
}
&&
-f
${
LAMMPSDOCMAKE
}
&&
-d
${
LAMMPSDOXYGEN
}
&&
-f
${
LAMMPSDOXYFILE
}
]]
;
if
[[
-d
${
LAMMPSSRC
}
&&
-d
${
LAMMPSDEVELOPERDOC
}
&&
-d
${
LAMMPSDOC
}
&&
-f
${
LAMMPSDOCMAKE
}
&&
-d
${
LAMMPSDOXYGEN
}
&&
-f
${
LAMMPSDOXYFILE
}
]]
;
then
then
cd
${
LAMMPSSRC
}
;
cd
${
LAMMPSSRC
}
;
make no-all
;
make no-all
;
cd
${
LAMMPSBASE
}
;
cd
${
LAMMPSBASE
}
;
else
else
error
=
1
;
echo
"Cannot configure LAMMPS sources - Please run doxygen.sh from the LAMMPS root directory."
>
&2
;
echo
"Cannot configure LAMMPS sources - Please run doxygen.sh from the LAMMPS root directory."
exit
1
;
fi
;
fi
;
if
[
${
error
}
==
0
]
;
if
[
!
-x
${
FIG2DEV
}
]
;
then
then
if
[[
!
-x
${
FIG2DEV
}
]]
;
echo
"
${
FIG2DEV
}
not found - Please install
${
FIG2DEV
}
for Your operating system."
>
&2
;
then
exit
1
;
error
=
1
;
echo
"
${
FIG2DEV
}
not found - Please install
${
FIG2DEV
}
for Your operating system."
;
fi
;
fi
;
fi
;
if
[
${
error
}
==
0
]
;
if
[
-d
${
LAMMPSDEVELOPERDOC
}
]
;
then
then
if
[[
-d
${
LAMMPSDEVELOPERDOC
}
]]
;
${
FIG2DEV
}
-L
png
${
LAMMPSDEVELOPERDOC
}
/classes.fig
>
tools/doxygen/classes.png
;
then
${
FIG2DEV
}
-L
eps
${
LAMMPSDEVELOPERDOC
}
/classes.fig
>
tools/doxygen/classes.eps
;
${
FIG2DEV
}
-L
png
${
LAMMPSDEVELOPERDOC
}
/classes.fig
>
tools/doxygen/classes.png
;
else
${
FIG2DEV
}
-L
eps
${
LAMMPSDEVELOPERDOC
}
/classes.fig
>
tools/doxygen/classes.eps
;
echo
"LAMMPS developer documentation not found - Please control Your LAMMPS installation."
>
&2
;
else
exit
1
;
error
=
1
;
fi
;
echo
"LAMMPS developer documentation not found - Please control Your LAMMPS installation."
;
fi
;
fi
;
if
[
${
error
}
==
0
]
;
if
[
!
-x
${
DOXYGEN
}
]
;
then
then
if
[[
!
-x
${
DOXYGEN
}
]]
;
echo
"doxygen not found - Please install doxygen for Your operating system."
>
&2
;
then
exit
1
;
error
=
1
;
echo
"doxygen not found - Please install doxygen for Your operating system."
;
fi
;
fi
;
fi
;
if
[
${
error
}
==
0
]
;
if
[
[
-d
${
LAMMPSSRC
}
&&
-f
${
LAMMPSDOXYFILE
}
&&
-f
${
LAMMPSDEVELOPERDOXFILE
}
]
]
;
then
then
if
[[
-d
${
LAMMPSSRC
}
&&
-f
${
LAMMPSDOXYFILE
}
&&
-f
${
LAMMPSDEVELOPERDOXFILE
}
]]
;
ICS
=
' '
;
then
read
-r
-a
array <
${
LAMMPSSRC
}
/version.h
;
ICS
=
' '
;
version
=
`
echo
${
array
[2]
}
${
array
[3]
}
${
array
[4]
}
|
sed
s/
\"
//g
`
;
read
-r
-a
array <
${
LAMMPSSRC
}
/version.h
;
cp
-av
${
LAMMPSDOXYFILE
}
${
DOXYFILE
}
;
version
=
`
echo
${
array
[2]
}
${
array
[3]
}
${
array
[4]
}
|
sed
s/
\"
//g
`
;
sed
-i
"s/LAMMPS_VERSION/
${
version
}
/g"
${
DOXYFILE
}
;
cp
-av
${
LAMMPSDOXYFILE
}
${
DOXYFILE
}
;
cp
-av
${
LAMMPSDEVELOPERDOXFILE
}
${
DEVELOPERDOXFILE
}
;
sed
-i
"s/LAMMPS_VERSION/
${
version
}
/g"
${
DOXYFILE
}
;
sed
-i
"s/LAMMPS_VERSION/
${
version
}
/g"
${
DEVELOPERDOXFILE
}
;
cp
-av
${
LAMMPSDEVELOPERDOXFILE
}
${
DEVELOPERDOXFILE
}
;
${
DOXYGEN
}
${
DOXYFILE
}
;
sed
-i
"s/LAMMPS_VERSION/
${
version
}
/g"
${
DEVELOPERDOXFILE
}
;
else
${
DOXYGEN
}
${
DOXYFILE
}
;
echo
"Doxyfile prototype not found - Please control Your LAMMPS installation."
>
&2
;
else
exit
1
;
echo
"Doxyfile prototype not found - Please control Your LAMMPS installation."
;
fi
;
fi
;
fi
;
if
[
${
error
}
==
0
]
;
if
[
[
-d
${
LAMMPSDOC
}
&&
-f
${
LAMMPSDOCMAKE
}
]
]
;
then
then
if
[[
-d
${
LAMMPSDOC
}
&&
-f
${
LAMMPSDOCMAKE
}
]]
;
cd
${
LAMMPSDOC
}
;
then
for
d
in
${
LAMMPSDOCTMP
}
;
cd
${
LAMMPSDOC
}
;
do
if
[
-d
${
LAMMPSDOCTMP
}
]
;
rm
-vrf
$d
;
then
done
;
rm
-vrf
${
LAMMPSDOCTMP
}
;
make clean
;
fi
;
make html
;
make clean
;
make pdf
;
make html
;
cd
${
LAMMPSBASE
}
;
make pdf
;
echo
"
${
LAMMPSDOC
}
exists."
;
cd
${
LAMMPSBASE
}
;
else
echo
"
${
LAMMPSDOC
}
exists."
;
echo
"Cannot build LAMMPS native documentation - Please run doxygen.sh from the LAMMPS root directory."
i
>
&2
;
else
exit
1
;
error
=
1
;
echo
"Cannot build LAMMPS native documentation - Please run doxygen.sh from the LAMMPS root directory."
;
fi
;
fi
;
fi
;
if
[
${
error
}
==
0
]
;
if
[
-d
${
LAMMPSDOCHTML
}
]
;
then
then
if
[
[
${
error
}
==
0
&&
-d
${
LAMMPSDO
CHTM
L
}
]
]
;
if
[
-d
${
LAMMPSDO
XYGENDOCMANUA
L
}
]
;
then
then
if
[
-d
${
LAMMPSDOXYGENDOCMANUAL
}
]
;
rm
-vrf
${
LAMMPSDOXYGENDOCMANUAL
}
;
then
echo
"
${
LAMMPSDOXYGENDOCMANUAL
}
removed."
;
rm
-vrf
${
LAMMPSDOXYGENDOCMANUAL
}
;
fi
;
echo
"
${
LAMMPSDOXYGENDOCMANUAL
}
removed."
;
cp
-av
${
LAMMPSDOCHTML
}
${
LAMMPSDOXYGENDOCMANUAL
}
;
fi
;
cp
-av
${
LAMMPSDOC
}
/
*
.pdf
${
LAMMPSDOXYGENDOCMANUAL
}
;
cp
-av
${
LAMMPSDOCHTML
}
${
LAMMPSDOXYGENDOCMANUAL
}
;
echo
"
${
LAMMPSDOXYGENDOCMANUAL
}
copied."
;
cp
-av
${
LAMMPSDOC
}
/
*
.pdf
${
LAMMPSDOXYGENDOCMANUAL
}
;
else
echo
"
${
LAMMPSDOXYGENDOCMANUAL
}
copied."
;
echo
"Cannot include LAMMPS native documentation into the doxygen documentation - Please run doxygen.sh from the LAMMPS root directory."
>
&2
;
else
exit
1
;
error
=
1
;
echo
"Cannot include LAMMPS native documentation into the doxygen documentation - Please run doxygen.sh from the LAMMPS root directory."
;
fi
;
fi
;
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