File: autoscan.sh

package info (click to toggle)
snoopy 2.5.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,988 kB
  • sloc: ansic: 7,167; sh: 4,514; makefile: 1,095
file content (31 lines) | stat: -rwxr-xr-x 648 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash



### Shell configuration and script bootstrap
#
set -e
set -u
set -o pipefail
. `dirname $0`/_bootstrap.sh



### Run autoscan
#
autoscan



### Fix the autoscan's output
#
# AC_CONFIG_SRCDIR is somewhat randomly set to the first encountered file in the source tree.
#
# Enountered so far:
# - lib/inih/src/ini.h (long time default)
# - lib/inih/src/ini.c (encountered in 2023 on Ubuntu 20.04)
# - tests/bin/action-run-filter.c (encountered in GitHub's Actions)
# 
# Let's just stop this nonsense and fix the output manually.
#
sed -i 's%^AC_CONFIG_SRCDIR.\+%# AC_CONFIG_SRCDIR commented out by dev-tools/autoscan.sh%' configure.scan