From fceb7dd59defa5f07a9be22a895992462bfbf408 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Wed, 17 Apr 2013 19:48:42 +0400 Subject: Do not pass proto dir if it does not exist --- rules/ips.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'rules/ips.mk') diff --git a/rules/ips.mk b/rules/ips.mk index e78f2db..3dc4d25 100644 --- a/rules/ips.mk +++ b/rules/ips.mk @@ -39,9 +39,11 @@ pre-publish: resolve-stamp publish-stamp: pre-publish @if [ -n "$(ips-repo)" ]; then \ + protos="-d ."; for p in $(protodirs); do \ + if [ -d $$p ]; then protos="$$protos -d $$p"; fi; done; \ set -x; \ for m in $(resolved-manifests); do \ - pkgsend -s $(ips-repo) publish --fmri-in-manifest $(pkg-protos) $$m || exit 1; \ + pkgsend -s $(ips-repo) publish --fmri-in-manifest $$protos $$m || exit 1; \ done; \ touch $@; \ else \ -- cgit v1.2.3