@unexec equivalent in Makefile ?
Florent Thoumie
flz at xbsd.org
Wed Feb 16 11:07:45 PST 2005
Ion-Mihai Tetcu wrote:
> # cat work/.PLIST.mktmp
> bin/sbl_server
> etc/sbl_server.conf.sample
> @unexec if cmp -s %D/etc/sbl_server.conf %D/etc/sbl_server.conf.sample; then rm -f %D/etc/sbl_server.conf; fi
> @unexec if [ -f %D/info/dir ]; then if sed -e '1,/Menu:/d' %D/info/dir | grep -q '^[*] '; then true; else rm %D/info/dir; fi; fi
> @unexec rmdir %D/info 2> /dev/null || true
> share/doc/sbl-server/CHANGE
> share/doc/sbl-server/README
> share/doc/sbl-server/RELEASE.NOTES
> @dirrm share/doc/sbl-server
> @unexec rmdir %D 2> /dev/null || true
>
> Q1: Why the info stuff ?
I'm not really into INFO but if I had to say, I'll tell add-plist-info
lacks a .if defined(INFO) or something to only add this when needed.
> Q2: Why doesn't it remove etc/sbl_server.conf ?
Because when @unexec is executed, etc/sbl_server.conf.sample is already
gone, so cmp will return 2.
--
Florent Thoumie
flz at xbsd.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20050216/98406d81/signature.bin
More information about the freebsd-ports
mailing list