On Sun, Nov 22, 2009 at 12:37 PM, vlad <[email protected]> wrote: > Hi Allen, > > On Sun, Nov 22, 2009 at 09:30:39PM +1000, Allan McRae wrote: >> vlad wrote: >> >Hi all, >> > >> >On Sun, Nov 22, 2009 at 11:14:52AM +0100, [email protected] wrote: >> >>On Sun, 22 Nov 2009 20:12:24 +1000 >> >>Allan McRae <[email protected]> wrote: >> >> >> >>>If it breaks stuff, then you should tell upstream that they makefile >> >>>is crap. >> >>So I guess this means it breaks? >> >>I usually do. You'd be surprised how many don't know about DESTDIR and >> >>use cp. >> > >> >However, "install" is quite inconvenient when copying directories with many >> >files inside. Simply running "cp" and then changing permissions with >> >" >> >find ${pkgdir}/.../ -type d -exec chmod 755 {} \; >> >find ${pkgdir}/.../ -type f -exec chmod 644 {} \; >> >" >> >is a reasonable workaround, at least for me. >> >Vlad >> >> read "man install": >> e.g. >> install -t $pkgdir/target src/dir/* >> > This works only if there are only files in that directory. Subfolders > are not copied. So one has to run "install" for each folder. "cp" copies > everything - files and folders. > > -- >
If the copying is not so multiple, I use for;do;done cycle to solve it. There are some 'cp' In core/extra/community too: grep -R " cp " /var/abs/core/*/PKGBUILD | wc -l 82 grep -R " cp " /var/abs/extra/*/PKGBUILD | wc -l 341 grep -R " cp " /var/abs/community/*/PKGBUILD | wc -l 430 Best Regards, Laszlo Papp
