Debian Codegraph @

test-suite/misc/changelog.sh

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