]> git.pld-linux.org Git - packages/rpm-build-tools.git/blobdiff - adapter.awk
- cp -a implies cp -r
[packages/rpm-build-tools.git] / adapter.awk
index a5ca0070a4f5681e8d8841fcac4b061fb60a977f..f83a8f202ab2fdcb59c3d78a1be8b9df46c15dda 100644 (file)
@@ -472,9 +472,8 @@ function b_makekey(a, b,    s) {
        if (/mkdir -p/)
                sub(/mkdir -p/, "install -d")
 
-       # 'install' instead 'cp -p'
-       if (/cp -p\b/)
-               sub(/cp -p/, "install")
+       # cp -a already implies cp -r
+    sub(/^cp -ar/, "cp -a")
 
        # No '-u root' or '-g root' for 'install'
        if (/^install/ && /-[ug][ \t]*root/)
This page took 0.049913 seconds and 4 git commands to generate.