aboutsummaryrefslogtreecommitdiffstats
path: root/remove_info_dir
blob: aa1e152bdc92f1eaac99a90d6f6db38ac7fc2272 (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 [ -f $dir -a ! -L $dir ]; then
    rm -f $dir 
fi