summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
c8f5f5a)
Change-Id: I576c7c02def683dc3028194e68416bfc0b167067
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
// The number of spaces a tab is equal to. This setting is overriden based on the file contents when `editor.detectIndentation` is on.
"editor.tabSize": 4,
// Insert spaces when pressing Tab. This setting is overriden based on the file contents when `editor.detectIndentation` is on.
// The number of spaces a tab is equal to. This setting is overriden based on the file contents when `editor.detectIndentation` is on.
"editor.tabSize": 4,
// Insert spaces when pressing Tab. This setting is overriden based on the file contents when `editor.detectIndentation` is on.
- "editor.insertSpaces": true,
+ "editor.insertSpaces": false,
+
// When opening a file, `editor.tabSize` and `editor.insertSpaces` will be detected based on the file contents.
"editor.detectIndentation": false,
// Configure glob patterns for excluding files and folders.
// When opening a file, `editor.tabSize` and `editor.insertSpaces` will be detected based on the file contents.
"editor.detectIndentation": false,
// Configure glob patterns for excluding files and folders.
# limitations under the License.
###########################################################################
# limitations under the License.
###########################################################################
# Application Name
TARGET=xds-cli
# Application Name
TARGET=xds-cli
BUILD_MODE="Release mode"
endif
BUILD_MODE="Release mode"
endif
ifeq ($(SUB_VERSION), )
PACKAGE_ZIPFILE := $(TARGET)_$(ARCH)-$(VERSION).zip
else
ifeq ($(SUB_VERSION), )
PACKAGE_ZIPFILE := $(TARGET)_$(ARCH)-$(VERSION).zip
else
- PACKAGE_ZIPFILE := $(TARGET)_$(ARCH)-$(VERSION)_$(SUB_VERSION).zip
+ # only use dot as separator to allow rpm packaging (see version .spec file)
+ PK_VER := $(subst _,.,$(subst -,,$(VERSION)))
+ PK_SBVER := $(subst _,.,$(subst -,,$(SUB_VERSION)))
+ PACKAGE_ZIPFILE := $(TARGET)_$(ARCH)-$(PK_VER).$(PK_SBVER).zip
.PHONY: distclean
distclean: clean
.PHONY: distclean
distclean: clean
- rm -rf $(LOCAL_BINDIR) $(ROOT_SRCDIR)/tools glide.lock vendor
+ rm -rf $(LOCAL_BINDIR) && (cd $(ROOT_SRCDIR) && rm -rf ./tools ./glide.lock ./vendor ./*.zip)
@test -f $(LOCAL_TOOLSDIR)/glide || { \
echo "Downloading glide"; \
mkdir -p $(LOCAL_TOOLSDIR); \
@test -f $(LOCAL_TOOLSDIR)/glide || { \
echo "Downloading glide"; \
mkdir -p $(LOCAL_TOOLSDIR); \
- curl --silent -L https://glide.sh/get | GOBIN=$(LOCAL_TOOLSDIR) sh; \
+ curl --silent --connect-timeout 60 --retry 3 -L https://glide.sh/get | GOBIN=$(LOCAL_TOOLSDIR) sh; \
.PHONY: help
help:
@echo "Main supported rules:"
.PHONY: help
help:
@echo "Main supported rules:"
@echo " build"
@echo " release"
@echo " build"
@echo " release"
- @echo " install / uninstall"
+ @echo " install"
+ @echo " uninstall"
+ @echo " clean"
@echo " distclean"
@echo ""
@echo "Influential make variables:"
@echo " distclean"
@echo ""
@echo "Influential make variables:"
+# xds-cli bash completion script
_cli_bash_autocomplete() {
local cur opts base
_cli_bash_autocomplete() {
local cur opts base
###########################################################################
# Copyright 2017-2018 IoT.bzh
#
###########################################################################
# Copyright 2017-2018 IoT.bzh
#
Source: agl-xds-cli
Binary: agl-xds-cli
Architecture: any
Source: agl-xds-cli
Binary: agl-xds-cli
Architecture: any
Maintainer: Sebastien Douheret <sebastien@iot.bzh>
Standards-Version: 3.8.2
Maintainer: Sebastien Douheret <sebastien@iot.bzh>
Standards-Version: 3.8.2
-Homepage: https://github.com/iotbzh/xds-cli.git
+Homepage: https://gerrit.automotivelinux.org/gerrit/p/src/xds/xds-cli.git
Build-Depends: debhelper (>= 5),
unzip
Build-Depends: debhelper (>= 5),
unzip
-Debtransform-Tar: xds-cli_linux-amd64-v1.1.1_2018-04-05_110646.zip
+Debtransform-Tar: xds-cli_linux-amd64-*.zip
Build-Depends: debhelper (>= 5),
unzip
Standards-Version: 3.8.2
Build-Depends: debhelper (>= 5),
unzip
Standards-Version: 3.8.2
-Homepage: https://github.com/iotbzh/xds-cli.git
+Homepage: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src/xds/xds-cli.git
Package: agl-xds-cli
Section: libs
Package: agl-xds-cli
Section: libs
mkdir -p $(DEB_BASE_DIR)/etc/profile.d
sed -e "s;@XDS_INSTALL_BIN_DIR@;$(INSTALL_BIN_DIR);g" $(DEB_INSTALL_XDS_DIR)/conf.d/etc/profile.d/xds-cli.sh > $(DEB_BASE_DIR)/etc/profile.d/$(NAME).sh
mkdir -p $(DEB_BASE_DIR)/etc/profile.d
sed -e "s;@XDS_INSTALL_BIN_DIR@;$(INSTALL_BIN_DIR);g" $(DEB_INSTALL_XDS_DIR)/conf.d/etc/profile.d/xds-cli.sh > $(DEB_BASE_DIR)/etc/profile.d/$(NAME).sh
+ # Add bash_completion file
+ mkdir -p $(DEB_BASE_DIR)/etc/bash_completion.d
+ cp $(DEB_INSTALL_XDS_DIR)/conf.d/etc/bash_completion.d/xds-cli $(DEB_BASE_DIR)/etc/bash_completion.d/
+
# Cleanup
rm -rf $(DEB_INSTALL_XDS_DIR)/scripts $(DEB_INSTALL_XDS_DIR)/conf.d
# Cleanup
rm -rf $(DEB_INSTALL_XDS_DIR)/scripts $(DEB_INSTALL_XDS_DIR)/conf.d
<param name="url">https://gerrit.automotivelinux.org/gerrit/src/xds/xds-cli</param>
<param name="scm">git</param>
<param name="version">@VERSION@</param>
<param name="url">https://gerrit.automotivelinux.org/gerrit/src/xds/xds-cli</param>
<param name="scm">git</param>
<param name="version">@VERSION@</param>
- <param name="revision">@REVISON@</param>
+ <param name="revision">@REVISION@</param>
<param name="extract">conf.d/packaging/rpm/agl-xds-cli.spec</param>
<param name="extract">conf.d/packaging/deb/agl-xds-cli.dsc</param>
<param name="extract">conf.d/packaging/deb/agl-xds-cli.install</param>
<param name="extract">conf.d/packaging/rpm/agl-xds-cli.spec</param>
<param name="extract">conf.d/packaging/deb/agl-xds-cli.dsc</param>
<param name="extract">conf.d/packaging/deb/agl-xds-cli.install</param>
%global debug_package %{nil}
Name: agl-xds-cli
%global debug_package %{nil}
Name: agl-xds-cli
Release: 0
License: Apache-2.0
Summary: Command line tool to interact with XDS
Release: 0
License: Apache-2.0
Summary: Command line tool to interact with XDS
-Url: https://github.com/iotbzh/xds-cli.git
-Source0: xds-cli_linux-amd64-v%{version}_2018-04-05_110646.zip
+Url: https://gerrit.automotivelinux.org/gerrit/p/src/xds/xds-cli.git
+Source0: xds-cli_linux-amd64-%{version}.zip
BuildRequires: unzip
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: unzip
BuildRoot: %{_tmppath}/%{name}-%{version}-build
+Group: Development/Tools/Debuggers
%description
xds-cli is a client tool that should be used to interact with an XDS server.
%description
xds-cli is a client tool that should be used to interact with an XDS server.
mkdir -p %{?buildroot}%{_prefix}/xds/cli %{?buildroot}%{_bindir}
cp xds-cli %{?buildroot}%{_prefix}/xds/cli
ln -s ../xds/cli/xds-cli %{?buildroot}%{_bindir}/xds-cli
mkdir -p %{?buildroot}%{_prefix}/xds/cli %{?buildroot}%{_bindir}
cp xds-cli %{?buildroot}%{_prefix}/xds/cli
ln -s ../xds/cli/xds-cli %{?buildroot}%{_bindir}/xds-cli
+
+mkdir -p %{?buildroot}%{_sysconfdir}/bash_completion.d
+cp ./conf.d/etc/bash_completion.d/xds-cli %{?buildroot}%{_sysconfdir}/bash_completion.d/
+
mkdir -p %{?buildroot}%{_sysconfdir}/profile.d
sed -e "s;@XDS_INSTALL_BIN_DIR@;%{_bindir};g" ./conf.d/etc/profile.d/xds-cli.sh > %{buildroot}%{_sysconfdir}/profile.d/%{name}.sh
mkdir -p %{?buildroot}%{_sysconfdir}/profile.d
sed -e "s;@XDS_INSTALL_BIN_DIR@;%{_bindir};g" ./conf.d/etc/profile.d/xds-cli.sh > %{buildroot}%{_sysconfdir}/profile.d/%{name}.sh
%dir %{_prefix}/xds/cli
%{_prefix}/xds/cli/*
%{_bindir}/xds-cli
%dir %{_prefix}/xds/cli
%{_prefix}/xds/cli/*
%{_bindir}/xds-cli
+%attr(644,root,root) %{_sysconfdir}/bash_completion.d/xds-cli
%config %{_sysconfdir}/profile.d/%{name}.sh
%attr(644,root,root) %{_sysconfdir}/profile.d/%{name}.sh
%config %{_sysconfdir}/profile.d/%{name}.sh
%attr(644,root,root) %{_sysconfdir}/profile.d/%{name}.sh
###########################################################################
# Copyright 2017-2018 IoT.bzh
#
###########################################################################
# Copyright 2017-2018 IoT.bzh
#