Lott, Christopher (cl778h) | 1239a6e | 2020-06-04 09:13:18 -0400 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | ############################################################################## |
| 3 | # |
| 4 | # Copyright (c) 2020 AT&T Intellectual Property. |
| 5 | # Copyright (c) 2020 Nokia. |
| 6 | # |
| 7 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | # you may not use this file except in compliance with the License. |
| 9 | # You may obtain a copy of the License at |
| 10 | # |
| 11 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | # |
| 13 | # Unless required by applicable law or agreed to in writing, software |
| 14 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | # See the License for the specific language governing permissions and |
| 17 | # limitations under the License. |
| 18 | # |
| 19 | ############################################################################## |
| 20 | |
| 21 | # Installs prerequisites needed to compile & test com/log code |
| 22 | # and build RPM/DEB packages on a Debian/Ubuntu machine. |
| 23 | |
| 24 | echo "--> setup-com-log-build-deb.sh" |
| 25 | |
| 26 | # Ensure we fail the job if any steps fail. |
| 27 | set -eux -o pipefail |
| 28 | |
| 29 | # install prereqs |
| 30 | sudo apt-get update && sudo apt-get -q -y install \ |
| 31 | autoconf-archive libjsoncpp-dev rpm valgrind |
| 32 | |
| 33 | # generate configure script |
| 34 | autoreconf --install |
| 35 | |
| 36 | echo "--> setup-com-log-build-deb.sh ends" |