SOURCES: rpm.macros - convert symlinks to man links automatically
glen
glen at pld-linux.org
Wed Oct 31 23:07:59 CET 2007
Author: glen Date: Wed Oct 31 22:07:59 2007 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- convert symlinks to man links automatically
---- Files affected:
SOURCES:
rpm.macros (1.401 -> 1.402)
---- Diffs:
================================================================
Index: SOURCES/rpm.macros
diff -u SOURCES/rpm.macros:1.401 SOURCES/rpm.macros:1.402
--- SOURCES/rpm.macros:1.401 Sun Oct 28 12:19:25 2007
+++ SOURCES/rpm.macros Wed Oct 31 23:07:54 2007
@@ -347,6 +347,12 @@
echo "Compress man pages: $i"; \
find "$RPM_BUILD_ROOT$i" -name '*.bz2' -print | xargs -r %{__bzip2} -df; \
find "$RPM_BUILD_ROOT$i" -name '*.gz' -print | xargs -r %{__gzip} -dnf; \
+ find $RPM_BUILD_ROOT$i -type l | while read a; do \
+ m=$(readlink $a); \
+ rm -f $a; \
+ echo .so ${m##*/} > $a; \
+ echo >&2 "Converted ${a#$RPM_BUILD_ROOT} from symlink to man link: ${m##*/}"; \
+ done; \
find "$RPM_BUILD_ROOT$i" -type f -size +%{_min_compress_bytes}c -print | xargs -r %{__gzip} -9nf; \
fi; \
done; \
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/rpm.macros?r1=1.401&r2=1.402&f=u
More information about the pld-cvs-commit
mailing list