Skip to content
Snippets Groups Projects
Commit 2c237419 authored by Mike Marchetti's avatar Mike Marchetti Committed by Gerrit Code Review
Browse files

Merge "update descriptor-packages build process"

parents d969d9cd 230c540c
No related branches found
No related tags found
No related merge requests found
Showing
with 149 additions and 6 deletions
#
# Copyright 2017 Sandvine
#
# 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.
#
DESCRIPTORS_TOPDIR ?= ../..
include $(DESCRIPTORS_TOPDIR)/mk/pkg.mk
all: $(BUILD_DIR)/$(PKG_NAME)
#
# Copyright 2017 Sandvine
#
# 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.
#
DESCRIPTORS_TOPDIR ?= ../..
include $(DESCRIPTORS_TOPDIR)/mk/pkg.mk
all: $(BUILD_DIR)/$(PKG_NAME)
#
# Copyright 2017 Sandvine
#
# 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.
#
DESCRIPTORS_TOPDIR ?= ../..
include $(DESCRIPTORS_TOPDIR)/mk/pkg.mk
all: $(BUILD_DIR)/$(PKG_NAME)
#
# Copyright 2017 Sandvine
#
# 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.
#
DESCRIPTORS_TOPDIR ?= ../..
include $(DESCRIPTORS_TOPDIR)/mk/pkg.mk
all: $(BUILD_DIR)/$(PKG_NAME)
......@@ -42,7 +42,7 @@ if [ ! -e ${pkg_dest_dir} ]; then
exit 1
fi
echo "Generating package in directory: ${pkg_dest_dir}"
#echo "Generating package in directory: ${pkg_dest_dir}"
# Create any missing directories/files so each package has
# a complete hierachy
......@@ -50,7 +50,7 @@ nsd_dirs=( ns_config vnf_config icons scripts )
nsd_files=( README )
nsd_dir="${pkg_src_dir}"
echo $(pwd)
#echo $(pwd)
mkdir -p "${pkg_dest_dir}"
cp -rf ${nsd_dir}/* "${pkg_dest_dir}"
......
......@@ -42,7 +42,7 @@ if [ ! -e ${pkg_dest_dir} ]; then
exit 1
fi
echo "Generating package in directory: ${pkg_dest_dir}"
#echo "Generating package in directory: ${pkg_dest_dir}"
# Create any missing directories/files so each package has
# a complete hierachy
......@@ -50,7 +50,7 @@ vnfd_dirs=( charms icons scripts images )
vnfd_files=( README )
vnfd_dir="${pkg_src_dir}"
echo $(pwd)
#echo $(pwd)
mkdir -p "${pkg_dest_dir}"
cp -rf ${vnfd_dir}/* "${pkg_dest_dir}"
......
......@@ -554,7 +554,7 @@ if [ $? != 0 ] ; then
exit 1
fi
echo "$OPTS"
#echo "$OPTS"
eval set -- "$OPTS >/dev/null 2>&1"
while true; do
......@@ -795,7 +795,12 @@ if [ $CREATE == false ]; then
cd $BASE_DIR
if [ $DRY_RUN == false ]; then
tar zcvf "$DEST_DIR/$PKG.tar.gz" "${PKG}" ${RM}
if [ $VERBOSE == true ]; then
tar zcvf "$DEST_DIR/$PKG.tar.gz" "${PKG}" ${RM}
else
#tar zcvf ${name}.tar.gz ${name} >/dev/null 2>&1
tar zcvf "$DEST_DIR/$PKG.tar.gz" "${PKG}" ${RM} > /dev/null 2>&1
fi
if [ $? -ne 0 ]; then
rc=$?
echo "ERROR: creating archive for $PKG ($rc)" >&2
......
#
# Copyright 2017 Sandvine
#
# 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.
#
SUBDIRS = $(wildcard */)
TOPDIR ?= ../
include $(TOPDIR)/mk/dirs.mk
#
# Copyright 2017 Sandvine
#
# 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.
#
DESCRIPTORS_TOPDIR ?= ../..
include $(DESCRIPTORS_TOPDIR)/mk/pkg.mk
all: $(BUILD_DIR)/$(PKG_NAME)
#
# Copyright 2017 Sandvine
#
# 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.
#
DESCRIPTORS_TOPDIR ?= ../..
include $(DESCRIPTORS_TOPDIR)/mk/pkg.mk
all: $(BUILD_DIR)/$(PKG_NAME)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment