]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- convert symlinks to man links automatically auto/ac/rpm-build-macros-1_402-1 auto/th/rpm-build-macros-1_402-1 auto/ti/rpm-build-macros-1_402-1
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 31 Oct 2007 22:07:54 +0000 (22:07 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm.macros -> 1.402

rpm.macros

index f4878f59362ec5f6c9e49e7c1772448e1205cd01..5bafd7603290271a12b1f63624d055165a337b35 100644 (file)
@@ -347,6 +347,12 @@ unset DISPLAY ||:\
                        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; \
This page took 0.041172 seconds and 4 git commands to generate.