aboutsummaryrefslogtreecommitdiffstats
path: root/remove_info_dir
blob: ae21fcb9e1af186656e5332816850fc0a299a8af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

INFODIR=`rpm --eval %{_infodir}/dir`

test -n "$RPM_BUILD_ROOT" || exit 0

dir="$RPM_BUILD_ROOT/$INFODIR"

if test -z "$DONT_REMOVE_INFO_DIR" -a -f $dir -a ! -L $dir; then
    rm -f $dir 
fi