Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
ec47448e
Commit
ec47448e
authored
Aug 10, 2012
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added check for docu version
parent
81a663da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
scripts/check_consistency.sh
scripts/check_consistency.sh
+13
-2
No files found.
scripts/check_consistency.sh
View file @
ec47448e
...
...
@@ -9,23 +9,34 @@ if [ ! -d manual ]; then
exit
fi
make
-C
manual &>/dev/null
echo
"build manual/manual.pdf"
make
-C
manual pdf &>/dev/null
if
[
$?
-ne
0
]
;
then
echo
"failure during build!"
exit
fi
echo
"read manual.pdf"
PDF1
=
$(
pdf2txt.py manual.pdf
)
echo
"read manual/manual.pdf"
PDF2
=
$(
pdf2txt.py manual/manual.pdf
)
if
[
"
$PDF1
"
!=
"
$PDF2
"
]
;
then
echo
"manual.pdf and manual/manual.pdf differ!"
exit
else
echo
"manual.pdf up-to-date"
fi
CMAKE_VERSION
=
$(
grep
-oE
"set
\(
LIBCPPA_VERSION_(MAJOR|MINOR|PATCH) [0-9]+"
CMakeLists.txt |
awk
'{ if (NR > 1) printf "." ; printf $2 } END { printf "\n" }'
)
MANUAL_VERSION
=
$(
echo
"
$PDF1
"
|
grep
-oE
"version [0-9]+(
\.
[0-9]+){2}"
|
awk
'{print $2}'
)
CHANGELOG_VERSION
=
$(
head
-n1
ChangeLog |
awk
'{print $2}'
)
DOCU_VERSION
=
$(
grep
-oE
"Version [0-9]+(
\.
[0-9]+){2}"
Doxyfile.in |
awk
'{print $2}'
)
echo
"libcppa version in CMakeLists.txt is
$CMAKE_VERSION
"
echo
"libcppa version in manual.pdf is
$MANUAL_VERSION
"
echo
"libcppa version in ChangeLog is
$CHANGELOG_VERSION
"
echo
"libcppa version in documentation is
$DOCU_VERSION
"
if
[
"
$CMAKE_VERSION
"
==
"
$MANUAL_VERSION
"
]
&&
[
"
$CMAKE_VERSION
"
==
"
$CHANGELOG_VERSION
"
]
;
then
if
[
"
$CMAKE_VERSION
"
==
"
$MANUAL_VERSION
"
]
&&
[
"
$CMAKE_VERSION
"
==
"
$CHANGELOG_VERSION
"
]
&&
[
"
$CMAKE_VERSION
"
==
"
$DOCU_VERSION
"
]
;
then
echo
"no errors found"
else
echo
"versions differ"
...
...
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