blob: f18b77c36b20addd33271e321ee263f0e9a488d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#! /bin/sh
# Check if all options in main.c are defined in sample ini and docs
sources="src/main.c"
targets="doc/config.txt etc/pgbouncer.ini"
for opt in `grep CF_ABS "$sources" | sed -r 's/^[^"]*"([^"]*)".*/\1/'`; do
for conf in $targets; do
if ! grep -q "$opt" "$conf"; then
echo "$opt is missing in $conf"
fi
done
done
|