| •1 |
#!/usr/bin/bash |
| 2 |
|
| 3 |
config=../tools/configure/configure.ml |
| 4 |
if ! [ -e "$config" ]; then |
| 5 |
echo "Could not find configure.ml" |
| 6 |
exit 1 |
| 7 |
fi |
| 8 |
|
| 9 |
if grep -q -F "is_a_released_version = true" "$config"; then |
| 10 |
: |
| 11 |
elif grep -q -F "is_a_released_version = false" "$config"; then |
| 12 |
echo "This is not a released version: nothing to test." |
| 13 |
exit 0 |
| 14 |
else |
| 15 |
echo "Could not find is_a_released_version setting" |
| 16 |
exit 1 |
| 17 |
fi |
| 18 |
|
| 19 |
for d in ../doc/changelog/*; do |
| 20 |
if [ -d "$d" ]; then |
| 21 |
files=("$d"/*.rst) |
| 22 |
if [ "${#files[@]}" != 1 ]; then |
| 23 |
echo "Fatal: unreleased changelog entries remain in ${d#../}/" |
| 24 |
echo "Include them in doc/sphinx/changes.rst and remove them from doc/changelog/" |
| 25 |
exit 1 |
| 26 |
fi |
| 27 |
fi |
| 28 |
done |