diff options
-rw-r--r-- | Makefile | 21 | ||||
-rw-r--r-- | cmd-exec.go | 18 | ||||
-rw-r--r-- | cmd-misc.go | 18 | ||||
-rw-r--r-- | cmd-projects.go | 18 | ||||
-rw-r--r-- | cmd-sdks.go | 18 | ||||
-rw-r--r-- | conf.d/etc/profile.d/xds-cli.sh | 18 | ||||
-rw-r--r-- | main.go | 23 | ||||
-rwxr-xr-x | scripts/install.sh | 22 | ||||
-rw-r--r-- | utils.go | 18 |
9 files changed, 169 insertions, 5 deletions
@@ -1,4 +1,21 @@ -# Makefile used to build xds-cli commands + ########################################################################### +# Copyright 2017 IoT.bzh +# +# author: Sebastien Douheret <sebastien@iot.bzh> +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +########################################################################### + # Application Name TARGET=xds-cli @@ -8,7 +25,7 @@ TARGET=xds-cli GIT_DESC := $(shell git describe --always --tags) VERSION := $(firstword $(subst -, ,$(GIT_DESC))) ifeq (-,$(findstring -,$(GIT_DESC))) -SUB_VERSION := $(subst $(VERSION)-,,$(GIT_DESC)) + SUB_VERSION := $(subst $(VERSION)-,,$(GIT_DESC)) endif ifeq ($(VERSION), ) VERSION := unknown-dev diff --git a/cmd-exec.go b/cmd-exec.go index b8d88b5..fa7e5ec 100644 --- a/cmd-exec.go +++ b/cmd-exec.go @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2017 "IoT.bzh" + * Author Sebastien Douheret <sebastien@iot.bzh> + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + package main import ( diff --git a/cmd-misc.go b/cmd-misc.go index e8fe61f..8b77de0 100644 --- a/cmd-misc.go +++ b/cmd-misc.go @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2017 "IoT.bzh" + * Author Sebastien Douheret <sebastien@iot.bzh> + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + package main import ( diff --git a/cmd-projects.go b/cmd-projects.go index e244e41..13a7126 100644 --- a/cmd-projects.go +++ b/cmd-projects.go @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2017 "IoT.bzh" + * Author Sebastien Douheret <sebastien@iot.bzh> + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + package main import ( diff --git a/cmd-sdks.go b/cmd-sdks.go index af6c417..853e847 100644 --- a/cmd-sdks.go +++ b/cmd-sdks.go @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2017 "IoT.bzh" + * Author Sebastien Douheret <sebastien@iot.bzh> + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + package main import ( diff --git a/conf.d/etc/profile.d/xds-cli.sh b/conf.d/etc/profile.d/xds-cli.sh index 7648766..9973c65 100644 --- a/conf.d/etc/profile.d/xds-cli.sh +++ b/conf.d/etc/profile.d/xds-cli.sh @@ -1,4 +1,22 @@ #!/bin/bash +########################################################################### +# Copyright 2017 IoT.bzh +# +# author: Sebastien Douheret <sebastien@iot.bzh> +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +########################################################################### + #---------- AGL xds-cli tool options Start ---------" [ ":${PATH}:" != *":%%XDS_INSTALL_BIN_DIR%%:"* ] && export PATH=%%XDS_INSTALL_BIN_DIR%%:${PATH} @@ -1,4 +1,23 @@ -// xds-cli: command line tool used to control / interface X(cross) Development System. +/* + * Copyright (C) 2017 "IoT.bzh" + * Author Sebastien Douheret <sebastien@iot.bzh> + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * + * xds-cli: command line tool used to control / interface X(cross) Development System. + */ + package main import ( @@ -37,7 +56,7 @@ var AppSubVersion = "unknown-dev" // Application details const ( - appCopyright = "Apache-2.0" + appCopyright = "Copyright (C) 2017 IoT.bzh - Apache-2.0" defaultLogLevel = "error" ) diff --git a/scripts/install.sh b/scripts/install.sh index f952050..bd2df9e 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -1,6 +1,26 @@ #!/bin/bash -# Install XDS cli +########################################################################### +# Copyright 2017 IoT.bzh +# +# author: Sebastien Douheret <sebastien@iot.bzh> +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Script used to install XDS cli tool. +# +########################################################################### + DESTDIR=${DESTDIR:-/opt/AGL/xds/cli} @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2017 "IoT.bzh" + * Author Sebastien Douheret <sebastien@iot.bzh> + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + package main import ( |