aboutsummaryrefslogtreecommitdiff
path: root/sbopkglint.d/40-newconfig.t.sh
blob: ee0aec5b45af27c242af1d608463eb4cccac56ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

# sbopkglint test, must be sourced by sbopkglint (not run standalone).

# PKG, PRGNAM, VERSION, ARCH are set by sbopkglint. also the current
# directory is the root of the installed package tree.

#######################################################################
# check for .new config files. there shouldn't be any, because when
# sbopkglint installed the package, it ran the doinst.sh, which
# should have renamed them.

NEWFILES=""
for f in "$( find -type f -name \*.new )"; do
	[ -z "$f" ] && continue
	case "$f" in
		./usr/doc/*) continue ;;
	esac
	NEWFILES+="$f "
done

[ -n "$NEWFILES" ] && warn "doinst.sh doesn't handle .new config files:" && ls -l $NEWFILES