Skip to content
This repository was archived by the owner on Mar 28, 2018. It is now read-only.

Commit 82cfb1f

Browse files
author
Graham Whaley
committed
install: Extract autoconf-archive install to separate script
Under some circumstances it is needed to 'hand install' the m4 scripts. This was done in the rhel install script, but sometimes it is really useful to be able to do that by hand, so extract the relevant commands into their own script (to allow hand running), and get the rhel script to invoke that new script at the appropriate time. Fixes: #875 Signed-off-by: Graham Whaley <[email protected]>
1 parent ba52fd8 commit 82cfb1f

File tree

2 files changed

+36
-6
lines changed

2 files changed

+36
-6
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/bin/bash
2+
3+
# This file is part of cc-oci-runtime.
4+
#
5+
# Copyright (C) 2017 Intel Corporation
6+
#
7+
# This program is free software; you can redistribute it and/or
8+
# modify it under the terms of the GNU General Public License
9+
# as published by the Free Software Foundation; either version 2
10+
# of the License, or (at your option) any later version.
11+
#
12+
# This program is distributed in the hope that it will be useful,
13+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
# GNU General Public License for more details.
16+
#
17+
# You should have received a copy of the GNU General Public License
18+
# along with this program; if not, write to the Free Software
19+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20+
21+
# Description: This script downloads and installs the autoconf-archive macros
22+
# necessary to configure this project. This is invoked for distro builds where
23+
# the necessary package is not available to install, and is also useful to
24+
# hand run under certain circumstances.
25+
# Should be run from the top level directory
26+
#
27+
28+
# autoconf-archive url
29+
autoconf_archive_url="http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m4"
30+
mkdir -p m4/
31+
# curl the required autoconf archive files into the correct place
32+
curl -L "${autoconf_archive_url}/ax_code_coverage.m4" -o m4/ax_code_coverage.m4
33+
curl -L "${autoconf_archive_url}/ax_valgrind_check.m4" -o m4/ax_valgrind_check.m4

installation/rhel-setup.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,15 +152,12 @@ cor=github.com/01org/cc-oci-runtime
152152
# Currently it is the latest version for cc-oci-runtime
153153
commit=tags/2.1.9
154154
release=${commit##*/}
155-
# autoconf-archive url
156-
autoconf_archive_url="http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m4"
157155
go get "$cor"
158156
pushd "$GOPATH/src/$cor"
159157
git checkout -b "$release" "$commit"
160-
mkdir -p m4/
161-
# autoconf-archive package does not exist in RHEL we need to download all m4 files required
162-
curl -L "${autoconf_archive_url}/ax_code_coverage.m4" -o m4/ax_code_coverage.m4
163-
curl -L "${autoconf_archive_url}/ax_valgrind_check.m4" -o m4/ax_valgrind_check.m4
158+
# autoconf-archive package does not exist in RHEL we need to download all m4
159+
# files required
160+
source "${SCRIPT_PATH}/curl-autoconf-archive.sh"
164161
./autogen.sh \
165162
--prefix="${prefix_dir}" \
166163
--disable-tests \

0 commit comments

Comments
 (0)