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
885f2285
Commit
885f2285
authored
Jul 28, 2014
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove outdated and unused script
parent
f87cea82
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
52 deletions
+0
-52
scripts/check_consistency.sh
scripts/check_consistency.sh
+0
-52
No files found.
scripts/check_consistency.sh
deleted
100755 → 0
View file @
f87cea82
#!/bin/bash
command
-v
pdf2txt.py &>/dev/null
if
[
$?
-ne
0
]
;
then
echo
"pdf2txt.py not found"
exit
fi
if
[
!
-d
manual
]
;
then
echo
"directory 'manual' does not exist"
exit
fi
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"
# compare PDFs without timestamp
MONTH_RX
=
"(January|February|March|April|May|June|July|August|September|October|November|December)"
PDF1
=
$(
pdf2txt.py manual.pdf |
grep
-vE
"
$MONTH_RX
"
)
echo
"read manual/manual.pdf"
PDF2
=
$(
pdf2txt.py manual/manual.pdf |
grep
-vE
"
$MONTH_RX
"
)
if
[
"
$PDF1
"
!=
"
$PDF2
"
]
;
then
echo
"manual.pdf and manual/manual.pdf differ!"
exit
else
echo
"manual.pdf up-to-date"
fi
function
expand_version_string
{
echo
"
$1
.0"
|
awk
'BEGIN {FS="."};{printf $1 "." $2 "." $3}'
;
}
CMAKE_VERSION
=
$(
cat
VERSION
)
MANUAL_VERSION
=
$(
echo
"
$PDF1
"
|
grep
-oE
"version [0-9]+(
\.
[0-9]+){1,2}"
|
awk
'{print $2}'
)
CHANGELOG_VERSION
=
$(
head
-n1
ChangeLog.md |
awk
'{print $2}'
)
MANUAL_VERSION
=
$(
expand_version_string
"
$MANUAL_VERSION
"
)
CHANGELOG_VERSION
=
$(
expand_version_string
"
$CHANGELOG_VERSION
"
)
echo
"libcppa version in VERSION is
$CMAKE_VERSION
"
echo
"libcppa version in manual.pdf is
$MANUAL_VERSION
"
echo
"libcppa version in ChangeLog is
$CHANGELOG_VERSION
"
if
[
"
$CMAKE_VERSION
"
==
"
$MANUAL_VERSION
"
]
&&
[
"
$CMAKE_VERSION
"
==
"
$CHANGELOG_VERSION
"
]
;
then
echo
"no errors found"
else
echo
"versions differ"
fi
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