2007-10-23 13:36:27 +04:00
|
|
|
#!/bin/sh
|
2008-02-13 20:59:15 +03:00
|
|
|
# autotools makes such a mess. Clean up after it.
|
2007-10-23 13:36:27 +04:00
|
|
|
#
|
2007-10-29 08:48:11 +03:00
|
|
|
for f in AUTHORS NEWS README ChangeLog; do
|
|
|
|
[ -s "$f" ] || rm -f "$f"
|
|
|
|
done
|
|
|
|
rm -r -f autom4te.cache .deps src/.deps
|
2007-10-23 13:36:27 +04:00
|
|
|
rm -f `cat <<EOF
|
|
|
|
INSTALL
|
|
|
|
Makefile
|
|
|
|
Makefile.in
|
|
|
|
aclocal.m4
|
|
|
|
config.log
|
|
|
|
config.status
|
|
|
|
configure
|
|
|
|
depcomp
|
|
|
|
install-sh
|
|
|
|
missing
|
|
|
|
src/Makefile
|
|
|
|
src/Makefile.in
|
2007-10-29 08:48:11 +03:00
|
|
|
src/*.o
|
|
|
|
src/help.c
|
|
|
|
src/qperf.1
|
|
|
|
src/qperf
|
2017-11-16 20:15:12 +03:00
|
|
|
compile
|
2007-10-23 13:36:27 +04:00
|
|
|
EOF`
|
2008-02-04 01:10:07 +03:00
|
|
|
|
2008-02-13 20:59:15 +03:00
|
|
|
# We need to keep qperf.spec around for the OFED scripts but delete it if we do
|
|
|
|
# not think it is correct. This might be due to three reasons: (1) it does not
|
|
|
|
# represent the RDMA version, (2) qperf.spec.in is newer and (3) configure.in
|
|
|
|
# is newer.
|
|
|
|
#
|
2008-02-04 01:10:07 +03:00
|
|
|
if
|
|
|
|
! grep -q -s '^BuildRequires: *libibverbs-devel' qperf.spec ||
|
|
|
|
[ qperf.spec.in -nt qperf.spec ] ||
|
|
|
|
[ configure.in -nt qperf.spec ]
|
|
|
|
then
|
|
|
|
rm -f qperf.spec
|
|
|
|
fi
|