diff options
author | Igor Pashev <igor.pashev@nexenta.com> | 2013-04-17 19:48:42 +0400 |
---|---|---|
committer | Igor Pashev <igor.pashev@nexenta.com> | 2013-04-17 19:48:42 +0400 |
commit | fceb7dd59defa5f07a9be22a895992462bfbf408 (patch) | |
tree | 4cccdabe4782b678853541cd0e459aa8a394e4cd /rules/ips.mk | |
parent | 37aabb8e1206b682d4ee3e4d794a0a650e4977c3 (diff) | |
download | cibs-fceb7dd59defa5f07a9be22a895992462bfbf408.tar.gz |
Do not pass proto dir if it does not exist
Diffstat (limited to 'rules/ips.mk')
-rw-r--r-- | rules/ips.mk | 4 |
1 files changed, 3 insertions, 1 deletions
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 \ |