freebsd-ports/audio/xmp/pkg-plist
Emanuel Haupt 56435ea646 - Work around a case where .if !exists(${ETCDIR}/${f}) fails
- Consistent usage of %%ETCDIR%%
2013-02-16 14:21:33 +00:00

8 lines
425 B
Text

@unexec if cmp -s %D/%%ETCDIR%%/xmp.conf %D/%%ETCDIR%%/xmp.conf.sample; then rm -f %D/%%ETCDIR%%/xmp.conf; fi
%%ETCDIR%%/xmp.conf.sample
@exec [ -f %B/xmp.conf ] || cp %B/%f %B/xmp.conf
bin/xmp
@unexec if cmp -s %D/%%ETCDIR%%/modules.conf %D/%%ETCDIR%%/modules.conf.sample; then rm -f %D/%%ETCDIR%%/modules.conf; fi
%%ETCDIR%%/modules.conf.sample
@exec [ -f %B/modules.conf ] || cp %B/%f %B/modules.conf
@dirrmtry %%ETCDIR%%