]>
git.ipfire.org Git - ipfire-3.x.git/blob - pkgs/build-essentials/quality-agent/quality-agent.d/090-python-hardlinks
3 . $
(dirname ${0})/qa-include
5 DESC
="Python byte-code files could be hardlinked if the optimized one is equal"
6 DESC
="${DESC} to the other one."
9 for py
in $
(find ${BUILDROOT} -type f
-name "*.py"); do
10 if [ -e "${py}c" ] && [ -e "${py}o" ]; then
11 if cmp -s "${py}c" "${py}o"; then
12 log DEBUG
" ${py}c -> ${py}o"
13 ln -f "${py}c" "${py}o"