summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--release/RELEASE_CONTENT38
-rwxr-xr-xrelease/copyrc.sh86
2 files changed, 0 insertions, 124 deletions
diff --git a/release/RELEASE_CONTENT b/release/RELEASE_CONTENT
deleted file mode 100644
index 91180c0..0000000
--- a/release/RELEASE_CONTENT
+++ /dev/null
@@ -1,38 +0,0 @@
1# The release structure is defined here as:
2# <artifact name>:<destination path in release structure>
3
4# atom-c3000 images
5enea-nfv-access-atom-c3000.hddimg:x86_64/atom-c3000/enea-nfv-access-atom-c3000.hddimg
6bzImage-atom-c3000.bin:x86_64/atom-c3000/bzImage-atom-c3000
7core-image-minimal-initramfs-atom-c3000.cpio.gz:x86_64/atom-c3000/enea-image-minimal-initramfs-atom-c3000.cpio.gz
8enea-nfv-access-atom-c3000.rootfs.ostree.tar.bz2:x86_64/atom-c3000/enea-nfv-access-atom-c3000.rootfs.ostree.tar.bz2
9
10# xeon-d images
11enea-nfv-access-xeon-d.hddimg:x86_64/xeon-d/enea-nfv-access-xeon-d.hddimg
12bzImage-xeon-d.bin:x86_64/xeon-d/bzImage-xeon-d
13core-image-minimal-initramfs-xeon-d.cpio.gz:x86_64/xeon-d/enea-image-minimal-initramfs-xeon-d.cpio.gz
14enea-nfv-access-xeon-d.rootfs.ostree.tar.bz2:x86_64/xeon-d/enea-nfv-access-xeon-d.rootfs.ostree.tar.bz2
15
16# documentation
17book-enea-nfv-access-release-info.pdf:Documentation/book-enea-nfv-access-release-info.pdf
18book-enea-nfv-access-open-source.pdf:Documentation/book-enea-nfv-access-open-source.pdf
19book-enea-nfv-access-getting-started.pdf:Documentation/book-enea-nfv-access-getting-started.pdf
20book-enea-nfv-access-example-usecases.pdf:Documentation/book-enea-nfv-access-example-usecases.pdf
21book-enea-nfv-access-auto-fw-th-user-guide.pdf:Documentation/book-enea-nfv-access-auto-fw-th-user-guide.pdf
22book-enea-nfv-access-system-test-specification.pdf:Documentation/book-enea-nfv-access-system-test-specification.pdf
23
24# VNF config files
25clavister-cloudinit.conf:vnf_conf/clavister-cloudinit.conf
26enea-vnf-iperf-client.conf:vnf_conf/enea-vnf-iperf-client.conf
27enea-vnf-iperf-server.conf:vnf_conf/enea-vnf-iperf-server.conf
28enea-vnf-testpmd-fwd.conf:vnf_conf/enea-vnf-testpmd-fwd.conf
29enea-vnf-testpmd-term.conf:vnf_conf/enea-vnf-testpmd-term.conf
30fortigate-basic-fw.conf:vnf_conf/fortigate-basic-fw.conf
31fortigate-fw-site1.conf:vnf_conf/fortigate-fw-site1.conf
32fortigate-fw-site2.conf:vnf_conf/fortigate-fw-site2.conf
33fortigate-sdwan1.conf:vnf_conf/fortigate-sdwan1.conf
34fortigate-sdwan2.conf:vnf_conf/fortigate-sdwan2.conf
35juniper-site1.conf:vnf_conf/juniper-site1.conf
36juniper-site2.conf:vnf_conf/juniper-site2.conf
37juniper-domain-update-script:vnf_conf/juniper-domain-update-script
38128t-cloud-init-example.tar.gz:vnf_conf/128t-cloud-init-example.tar.gz
diff --git a/release/copyrc.sh b/release/copyrc.sh
deleted file mode 100755
index f2a56cb..0000000
--- a/release/copyrc.sh
+++ /dev/null
@@ -1,86 +0,0 @@
1#!/bin/bash
2
3# This script locates build artifacts in a provided list of directories and copies
4# them into a release structure as defined in a release content definition file.
5
6usage() {
7 cat <<EOF >&2
8
9Usage:
10 $(basename $0) [OPTIONS] -o <output directory> <build directory>...
11
12OPTIONS:
13 -i Ignore missing files
14 -p Print the release structure without creating it
15 -r <file> Set release definition file (default: RELEASE_CONTENT)
16
17EOF
18 exit
19}
20
21RC_def="./RELEASE_CONTENT"
22
23while getopts "io:pr:" name; do
24 case $name in
25 i) ignore_missing=1 ;;
26 o) RC_dir=$OPTARG ;;
27 r) RC_def=$OPTARG ;;
28 p) print=1 ;;
29 ?) usage ;;
30 esac
31done
32
33if [ ! "$RC_dir" ] && [ ! "$print" ]; then
34 echo "ERROR: Output directory not set"
35 usage
36fi
37
38if [ -d "$RC_dir" ]; then
39 echo "ERROR: Output directory $RC_dir already exists"
40 exit 1
41fi
42
43if [ ! -f "$RC_def" ]; then
44 echo "ERROR: release definition file '$RC_def' does not exist"
45 exit 1
46fi
47
48echo "Release definition: $RC_def"
49echo -e "Output directory: $RC_dir\n"
50
51shift $(( OPTIND - 1 ))
52builddirs=("$@")
53
54while read line; do
55 if [ -z "$line" ] || [[ $line = \#* ]]; then continue; fi
56
57 IFS=: read -r srcfile dstpath _ <<< $line
58
59 if [ ! -z "$print" ]; then
60 echo $RC_dir/$dstpath
61 continue
62 fi
63
64 srcpath=$(find -L ${builddirs[@]} -wholename "*$srcfile" -print -quit)
65
66 if [ "$srcpath" ]; then
67 dstdir=$RC_dir/$(dirname "$dstpath")
68 dstfile=$(basename "$dstpath")
69
70 mkdir -p $dstdir
71 cp -Lpv $srcpath $dstdir/$dstfile
72 pushd $dstdir
73 md5sum $dstfile > $dstfile.md5
74 popd
75 else
76 if [ "$ignore_missing" ]; then
77 echo "WARNING: File '$srcfile' not found"
78 else
79 echo "ERROR: File '$srcfile' not found"
80 exit 1
81 fi
82 fi
83
84done < $RC_def
85
86echo -e "\nDone, RC directory: $RC_dir"