]> git.pld-linux.org Git - packages/adapter.git/commitdiff
install without options to cp -p
authorElan Ruusamäe <glen@delfi.ee>
Tue, 25 Mar 2014 07:10:30 +0000 (07:10 +0000)
committerElan Ruusamäe <glen@delfi.ee>
Tue, 25 Mar 2014 07:10:30 +0000 (07:10 +0000)
adapter.awk

index 04c7d19cd2fbd58d8f277db507a5f378cd354e55..738c25d7f99663266e77b761453b11bc608e66fb 100644 (file)
@@ -497,6 +497,10 @@ function b_makekey(a, b,   s) {
        if (/^install/ && /-m[ \t]*[0-9]+/)
                gsub(/-m[ \t]*[0-9]+ /, "")
 
+       # install without options -> cp -p
+       if (/^install [^-]/)
+               gsub(/^install/, "cp -p")
+
        # No lines contain 'chown' or 'chgrp' if owner/group is 'root'
        if (($1 ~ /chown/ && $2 ~ /root\.root/) || ($1 ~ /chgrp/ && $2 ~ /root/))
                next
This page took 0.036444 seconds and 4 git commands to generate.