On Sat, Feb 23, 2013 at 11:50:11PM +0100, David Adler wrote:
On Sat, Feb 23, 2013 at 10:40 PM, Johannes Löthberg <kyrias@archlinux.info> wrote:
On 02/23/2013 10:28 PM, atilla ontas wrote:
If i get it right, you want to create directories and copy files. Then why not use "install" command? Like;
install -d -m 755 $srcdir/foo-version/src/foo.so $pkgdir/usr/lib/foo/foo.so
2013/2/23 David Adler <david.jo.adler@gmail.com>
Just copying. As simple as it sounds, I didn't find a simple solution, but it's not unlikely that I'm missing the obvious.
regards
My thoughts exactly.
That would be >400 install invocations for >400 files&dirs?
For a similar case, Stackoverflow comes up with solutions involving autotools[1], though I think that would not be worth the effort.
For users it is about as simple to download the preset and extract the tarball as it is to first install it and then recursively copy a directory from /usr/share. They'll need the preset in a writable location anyway.
Unless there is a really simple one-liner, I don't feel inclined to make that preset an installable tarball again.
From what I read, recursively installing directory trees in a "don't look and just install everything"-manner is not recommended anyway, and all non-recursive sulutions seem to involve some effort to adapt the build system every time the directory tree changes.
[1] http://stackoverflow.com/questions/6395148/install-data-directory-tree-with-...
You know, you could just user /usr/bin/cp -r and some chmod magic if you actually need that. -- William Giokas | KaiSforza GnuPG Key: 0x73CD09CF Fingerprint: F73F 50EF BBE2 9846 8306 E6B8 6902 06D8 73CD 09CF