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
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}
wget${GETTEXT_VERSION}.tar.gz wget -q${GETTEXT_VERSION}.tar.gz
wget${ZLIB_VERSION}.tar.gz wget -q${ZLIB_VERSION}.tar.gz
wget${CURL_VERSION}.tar.gz wget -q${CURL_VERSION}.tar.gz
wget${OPENSSL_VERSION}.tar.gz wget -q${OPENSSL_VERSION}.tar.gz
wget${GIT_VERSION}.tar.gz wget -q${GIT_VERSION}.tar.gz
wget${M4_VERSION}.tar.gz wget -q${M4_VERSION}.tar.gz
wget${AUTOCONF_VERSION}.tar.gz wget -q${AUTOCONF_VERSION}.tar.gz
wget${PERL_VERSION}.tar.gz wget -q${PERL_VERSION}.tar.gz
tar xzf ${GETTEXT_VERSION}.tar.gz tar xzf ${GETTEXT_VERSION}.tar.gz
...@@ -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