From f95aa5f0e39b85198655e8399c161fc5e6cd8a59 Mon Sep 17 00:00:00 2001 From: Sebastien Douheret Date: Thu, 30 Nov 2017 16:09:01 +0100 Subject: [PATCH] Added Copyright headers. Signed-off-by: Sebastien Douheret --- Makefile | 21 +++++++++++++++++++-- cmd-exec.go | 18 ++++++++++++++++++ cmd-misc.go | 18 ++++++++++++++++++ cmd-projects.go | 18 ++++++++++++++++++ cmd-sdks.go | 18 ++++++++++++++++++ conf.d/etc/profile.d/xds-cli.sh | 18 ++++++++++++++++++ main.go | 23 +++++++++++++++++++++-- scripts/install.sh | 22 +++++++++++++++++++++- utils.go | 18 ++++++++++++++++++ 9 files changed, 169 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 02cb6ec..819e4b4 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,21 @@ -# Makefile used to build xds-cli commands + ########################################################################### +# Copyright 2017 IoT.bzh +# +# author: Sebastien Douheret +# +# 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 + * + * 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 + * + * 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 + * + * 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 + * + * 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 +# +# 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} diff --git a/main.go b/main.go index 3a8671e..1c0d886 100644 --- a/main.go +++ b/main.go @@ -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 + * + * 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 +# +# 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} diff --git a/utils.go b/utils.go index b21fc19..f70d5da 100644 --- a/utils.go +++ b/utils.go @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2017 "IoT.bzh" + * Author Sebastien Douheret + * + * 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 ( -- 2.16.6