point to existing files (was breaking checks when file had more content)
Summary(pl.UTF-8): Makra do budowania pakietów RPM dla Linuksa PLD
Name: rpm-build-macros
Version: %{rpm_macros_rev}
-Release: 4
+Release: 5
License: GPL
Group: Development/Building
Source0: rpm.macros
# verify that .so links point to existing files (not allowed to point to "other package") \
# TODO: iterate over all man dirs, but in Th there is only one true man dir \
err=$(grep -rl '^\.so ' "$RPM_BUILD_ROOT$i" | while read doc; do \
- l=$(cat "$doc"); \
+ l=$(grep -r '^\.so ' "$doc"); \
l=${l#.so }; \
d=$(dirname $doc); \
test -e $RPM_BUILD_ROOT$i/$l || test -e $d/$l || echo " ${doc#$RPM_BUILD_ROOT} points to inexistent manpage: $l"; \