File: cleanup

package info (click to toggle)
qperf 0.4.11-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 492 kB
  • sloc: ansic: 5,593; perl: 240; makefile: 41; sh: 37
file content (39 lines) | stat: -rwxr-xr-x 879 bytes parent folder | download | duplicates (2)
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
32
33
34
35
36
37
38
39
#!/bin/sh
# autotools makes such a mess.  Clean up after it.
#
for f in AUTHORS NEWS README ChangeLog; do
    [ -s "$f" ] || rm -f "$f"
done
rm -r -f autom4te.cache .deps src/.deps
rm -f `cat <<EOF
    INSTALL
    Makefile
    Makefile.in
    aclocal.m4
    config.log
    config.status
    configure
    depcomp
    install-sh
    missing
    src/Makefile
    src/Makefile.in
    src/*.o
    src/help.c
    src/qperf.1
    src/qperf
    compile
EOF`

# 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.
#
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