diff options
| author | Adrian Dudau <adrian.dudau@enea.com> | 2020-07-14 16:30:42 +0200 |
|---|---|---|
| committer | Adrian Dudau <adrian.dudau@enea.com> | 2020-07-14 16:30:42 +0200 |
| commit | 5011b9f38d3638202088d30c56d1e455fc310490 (patch) | |
| tree | bfcd4621b199a5be4a10ebf8f693c36048acaefc | |
| parent | cbc713a06dc7656c8f52a398e1b29b39c0e73f1f (diff) | |
| download | nfv-access-documentation-5011b9f38d3638202088d30c56d1e455fc310490.tar.gz | |
Remove script to package RCs
This script is moved to the el_manifests-nfv-access repo.
Change-Id: I7522718f99f6e4eb1a76d9ac66d594a7ba568ccb
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
| -rw-r--r-- | release/RELEASE_CONTENT | 38 | ||||
| -rwxr-xr-x | release/copyrc.sh | 86 |
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 | ||
| 5 | enea-nfv-access-atom-c3000.hddimg:x86_64/atom-c3000/enea-nfv-access-atom-c3000.hddimg | ||
| 6 | bzImage-atom-c3000.bin:x86_64/atom-c3000/bzImage-atom-c3000 | ||
| 7 | core-image-minimal-initramfs-atom-c3000.cpio.gz:x86_64/atom-c3000/enea-image-minimal-initramfs-atom-c3000.cpio.gz | ||
| 8 | enea-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 | ||
| 11 | enea-nfv-access-xeon-d.hddimg:x86_64/xeon-d/enea-nfv-access-xeon-d.hddimg | ||
| 12 | bzImage-xeon-d.bin:x86_64/xeon-d/bzImage-xeon-d | ||
| 13 | core-image-minimal-initramfs-xeon-d.cpio.gz:x86_64/xeon-d/enea-image-minimal-initramfs-xeon-d.cpio.gz | ||
| 14 | enea-nfv-access-xeon-d.rootfs.ostree.tar.bz2:x86_64/xeon-d/enea-nfv-access-xeon-d.rootfs.ostree.tar.bz2 | ||
| 15 | |||
| 16 | # documentation | ||
| 17 | book-enea-nfv-access-release-info.pdf:Documentation/book-enea-nfv-access-release-info.pdf | ||
| 18 | book-enea-nfv-access-open-source.pdf:Documentation/book-enea-nfv-access-open-source.pdf | ||
| 19 | book-enea-nfv-access-getting-started.pdf:Documentation/book-enea-nfv-access-getting-started.pdf | ||
| 20 | book-enea-nfv-access-example-usecases.pdf:Documentation/book-enea-nfv-access-example-usecases.pdf | ||
| 21 | book-enea-nfv-access-auto-fw-th-user-guide.pdf:Documentation/book-enea-nfv-access-auto-fw-th-user-guide.pdf | ||
| 22 | book-enea-nfv-access-system-test-specification.pdf:Documentation/book-enea-nfv-access-system-test-specification.pdf | ||
| 23 | |||
| 24 | # VNF config files | ||
| 25 | clavister-cloudinit.conf:vnf_conf/clavister-cloudinit.conf | ||
| 26 | enea-vnf-iperf-client.conf:vnf_conf/enea-vnf-iperf-client.conf | ||
| 27 | enea-vnf-iperf-server.conf:vnf_conf/enea-vnf-iperf-server.conf | ||
| 28 | enea-vnf-testpmd-fwd.conf:vnf_conf/enea-vnf-testpmd-fwd.conf | ||
| 29 | enea-vnf-testpmd-term.conf:vnf_conf/enea-vnf-testpmd-term.conf | ||
| 30 | fortigate-basic-fw.conf:vnf_conf/fortigate-basic-fw.conf | ||
| 31 | fortigate-fw-site1.conf:vnf_conf/fortigate-fw-site1.conf | ||
| 32 | fortigate-fw-site2.conf:vnf_conf/fortigate-fw-site2.conf | ||
| 33 | fortigate-sdwan1.conf:vnf_conf/fortigate-sdwan1.conf | ||
| 34 | fortigate-sdwan2.conf:vnf_conf/fortigate-sdwan2.conf | ||
| 35 | juniper-site1.conf:vnf_conf/juniper-site1.conf | ||
| 36 | juniper-site2.conf:vnf_conf/juniper-site2.conf | ||
| 37 | juniper-domain-update-script:vnf_conf/juniper-domain-update-script | ||
| 38 | 128t-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 | |||
| 6 | usage() { | ||
| 7 | cat <<EOF >&2 | ||
| 8 | |||
| 9 | Usage: | ||
| 10 | $(basename $0) [OPTIONS] -o <output directory> <build directory>... | ||
| 11 | |||
| 12 | OPTIONS: | ||
| 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 | |||
| 17 | EOF | ||
| 18 | exit | ||
| 19 | } | ||
| 20 | |||
| 21 | RC_def="./RELEASE_CONTENT" | ||
| 22 | |||
| 23 | while 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 | ||
| 31 | done | ||
| 32 | |||
| 33 | if [ ! "$RC_dir" ] && [ ! "$print" ]; then | ||
| 34 | echo "ERROR: Output directory not set" | ||
| 35 | usage | ||
| 36 | fi | ||
| 37 | |||
| 38 | if [ -d "$RC_dir" ]; then | ||
| 39 | echo "ERROR: Output directory $RC_dir already exists" | ||
| 40 | exit 1 | ||
| 41 | fi | ||
| 42 | |||
| 43 | if [ ! -f "$RC_def" ]; then | ||
| 44 | echo "ERROR: release definition file '$RC_def' does not exist" | ||
| 45 | exit 1 | ||
| 46 | fi | ||
| 47 | |||
| 48 | echo "Release definition: $RC_def" | ||
| 49 | echo -e "Output directory: $RC_dir\n" | ||
| 50 | |||
| 51 | shift $(( OPTIND - 1 )) | ||
| 52 | builddirs=("$@") | ||
| 53 | |||
| 54 | while 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 | |||
| 84 | done < $RC_def | ||
| 85 | |||
| 86 | echo -e "\nDone, RC directory: $RC_dir" | ||
