]>
Commit | Line | Data |
---|---|---|
f165e102 MT |
1 | #!/bin/bash |
2 | ||
3 | . $(dirname ${0})/qa-include | |
4 | ||
5 | DESC="Removing unwanted files: *.a *.la" | |
6 | ||
7 | function check() { | |
8 | for file in $(find ${BUILDROOT} -name "*.a" -or -name "*.la"); do | |
9 | ||
10 | # Don't remove libc_nonshared.a. It is used by gcc/ld. | |
11 | [ "${file##*/}" = "libc_nonshared.a" ] && continue | |
12 | [ "${file##*/}" = "libpthread_nonshared.a" ] && continue | |
13 | [ "${file##*/}" = "libgcc.a" ] && continue | |
14 | [ "${file##*/}" = "libgcc_eh.a" ] && continue | |
15 | [ "${file##*/}" = "libfl_pic.a" ] && continue | |
16 | [ "${file##*/}" = "libpython2.6.a" ] && continue | |
17 | ||
18 | log DEBUG " Removing: ${file}" | |
19 | rm -f ${file} || exit $? | |
20 | done | |
21 | } | |
22 | ||
23 | run | |
24 |