Commit ea2a9254 authored by Clemens Lange's avatar Clemens Lange
Browse files

Merge branch 'slc6_git_reduce_size' into 'master'

Strip git binaries and remove non-standard ones, add bash shebang, silence wget

See merge request cms-cloud/cmssw-docker!36
parents fe2b3df2 92eccad5
#!/bin/bash
set -e
yum -y groupinstall 'Development Tools' yum -y groupinstall 'Development Tools'
yum remove -y openssl-devel yum remove -y openssl-devel
...@@ -14,14 +17,14 @@ export LD_LIBRARY_PATH=${INSTALL_DIR}/lib:${INSTALL_DIR}/lib64:${LD_LIBRARY_PATH ...@@ -14,14 +17,14 @@ export LD_LIBRARY_PATH=${INSTALL_DIR}/lib:${INSTALL_DIR}/lib64:${LD_LIBRARY_PATH
export PATH=${INSTALL_DIR}/bin:${PATH} export PATH=${INSTALL_DIR}/bin:${PATH}
cd ${INSTALL_DIR} cd ${INSTALL_DIR}
wget http://ftp.gnu.org/pub/gnu/gettext/${GETTEXT_VERSION}.tar.gz wget -q http://ftp.gnu.org/pub/gnu/gettext/${GETTEXT_VERSION}.tar.gz
wget http://www.zlib.net/${ZLIB_VERSION}.tar.gz wget -q http://www.zlib.net/${ZLIB_VERSION}.tar.gz
wget ftp://mirrors.gethosted.online/curl-haxx/${CURL_VERSION}.tar.gz wget -q ftp://mirrors.gethosted.online/curl-haxx/${CURL_VERSION}.tar.gz
wget http://www.openssl.org/source/${OPENSSL_VERSION}.tar.gz wget -q http://www.openssl.org/source/${OPENSSL_VERSION}.tar.gz
wget http://mirrors.edge.kernel.org/pub/software/scm/git/${GIT_VERSION}.tar.gz wget -q http://mirrors.edge.kernel.org/pub/software/scm/git/${GIT_VERSION}.tar.gz
wget http://ftp.gnu.org/gnu/m4/${M4_VERSION}.tar.gz wget -q http://ftp.gnu.org/gnu/m4/${M4_VERSION}.tar.gz
wget http://ftp.gnu.org/gnu/autoconf/${AUTOCONF_VERSION}.tar.gz wget -q http://ftp.gnu.org/gnu/autoconf/${AUTOCONF_VERSION}.tar.gz
wget http://www.cpan.org/src/5.0/${PERL_VERSION}.tar.gz wget -q http://www.cpan.org/src/5.0/${PERL_VERSION}.tar.gz
tar xzf ${GETTEXT_VERSION}.tar.gz tar xzf ${GETTEXT_VERSION}.tar.gz
cd ${GETTEXT_VERSION} cd ${GETTEXT_VERSION}
...@@ -91,7 +94,21 @@ cd ${GIT_VERSION} ...@@ -91,7 +94,21 @@ cd ${GIT_VERSION}
make configure make configure
./configure --prefix=${INSTALL_DIR} ./configure --prefix=${INSTALL_DIR}
make make
make strip
make install make install
cd .. cd ..
rm ${GIT_VERSION}.tar.gz rm ${GIT_VERSION}.tar.gz
rm -rf ${GIT_VERSION} rm -rf ${GIT_VERSION}
# remove files that aren't part of standard package
rm ${INSTALL_DIR}/libexec/git-core/git-cvs* && \
rm ${INSTALL_DIR}/libexec/git-core/git-daemon && \
rm ${INSTALL_DIR}/libexec/git-core/git-fast-import && \
rm ${INSTALL_DIR}/libexec/git-core/git-http-backend && \
rm ${INSTALL_DIR}/libexec/git-core/git-instaweb && \
rm ${INSTALL_DIR}/libexec/git-core/git-shell && \
rm ${INSTALL_DIR}/libexec/git-core/git-svn && \
rm ${INSTALL_DIR}/libexec/git-core/*p4* && \
rm ${INSTALL_DIR}/libexec/git-core/mergetools/*p4* && \
rm ${INSTALL_DIR}/libexec/git-core/*email* && \
rm ${INSTALL_DIR}/libexec/git-core/*imap*
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment