diff options
author | Igor Pashev <igor.pashev@nexenta.com> | 2012-09-14 09:43:02 +0400 |
---|---|---|
committer | Igor Pashev <igor.pashev@nexenta.com> | 2012-09-14 09:43:02 +0400 |
commit | 0f7141c9d86752933972be9ab485a9e7cd0da539 (patch) | |
tree | f7f11435fdf6ccf46e40d7e3da3c5f1de5f046aa /rules | |
parent | 2240b1afa6d7df10f6efc658f8ea7b6944018009 (diff) | |
download | cibs-0f7141c9d86752933972be9ab485a9e7cd0da539.tar.gz |
Ask for IPS repository
Diffstat (limited to 'rules')
-rw-r--r-- | rules/ips.mk | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/rules/ips.mk b/rules/ips.mk index 14a4462..645aaaa 100644 --- a/rules/ips.mk +++ b/rules/ips.mk @@ -105,10 +105,18 @@ resolve-stamp: $(resolved-manifests) touch $@ publish-stamp: resolve-stamp + @if [ -n "$(ips-repo)" ]; then \ + set -x; \ pkgsend -s $(ips-repo) publish --fmri-in-manifest \ $(pkg-protos) \ - $(resolved-manifests) - touch $@ + $(resolved-manifests); \ + touch $@; \ + else \ + echo "Variable 'ips-repo' is not defined."; \ + echo "Set either in config file /etc/cibs/cibs.conf,"; \ + echo "or define in command line: $(MAKE) publish ips-repo="; \ + false; \ + fi publish: publish-stamp |