destroot empty directory?
Peter Danecek
Peter.Danecek at bo.ingv.it
Mon Nov 25 12:09:36 PST 2013
Hi all,
I have a doubt on how to create an empty directory in `${prefix}/var/cache/`.
When I started, I found something like this:
file mkdir ${prefix}/var/cache/fetch-crl
But I doubt this is okay. I works when build from source, I guess the directory would be missing in binary packages.
So I changed this to:
install -d ${destroot}/${prefix}/var/cache/fetch-crl
But because the directory is empty, it will be deleted and is not present in the binary packages. So I could do something like:
install -d ${destroot}/${prefix}/var/cache/fetch-crl
touch ${destroot}/${prefix}/var/cache/fetch-crl/.keep
Or is there some clever way to avoid cancelling of empty directories.
Thanks!
~petr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1762 bytes
Desc: not available
URL: <https://lists.macosforge.org/pipermail/macports-dev/attachments/20131125/000b5963/attachment.p7s>
More information about the macports-dev
mailing list