diff options
author | Daniel Joseph Barnhart Clark <dclark@pobox.com> | 2006-08-19 21:52:31 +0000 |
---|---|---|
committer | Daniel Joseph Barnhart Clark <dclark@pobox.com> | 2006-08-19 21:52:31 +0000 |
commit | 48b9c8f43f0a5f0bf95d7d8b3c84c476869ff121 (patch) | |
tree | d865bf61a9e6e062f2537b3080d9cabb8ccf94e3 /encap/tools/bcfg2-client/bcfg2-libgcc-0.1.sh | |
parent | 2b69d8284d014e13b5bcb7fa84413002f592104f (diff) | |
download | bcfg2-48b9c8f43f0a5f0bf95d7d8b3c84c476869ff121.tar.gz bcfg2-48b9c8f43f0a5f0bf95d7d8b3c84c476869ff121.tar.bz2 bcfg2-48b9c8f43f0a5f0bf95d7d8b3c84c476869ff121.zip |
EncapPackages: Beginning of some dir structure changes
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2074 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'encap/tools/bcfg2-client/bcfg2-libgcc-0.1.sh')
-rwxr-xr-x | encap/tools/bcfg2-client/bcfg2-libgcc-0.1.sh | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/encap/tools/bcfg2-client/bcfg2-libgcc-0.1.sh b/encap/tools/bcfg2-client/bcfg2-libgcc-0.1.sh new file mode 100755 index 000000000..d6de6c471 --- /dev/null +++ b/encap/tools/bcfg2-client/bcfg2-libgcc-0.1.sh @@ -0,0 +1,34 @@ +#!/bin/sh +# $Id$ + +# Creates encap of libgcc libraries from build machine so other machines +# don't need to have gcc installed, or in the case of GNU/Linux so we're +# using a consistant libgcc version everywhere. + +ENCAP_SOURCE=${ENCAPDIR} +ENCAP_PKGNAME=bcfg2-libgcc-0.1 +PATH=$PATH:/usr/local/bin +export PATH + +if [ "${ENCAP_SOURCE}x" = "x" ]; then + printf "Error in ${ENCAP_PKGNAME}.sh : ENCAPDIR not set, exiting...\n" + exit 1 +fi + +umask 022 + +CXXBASE=`which gcc | xargs dirname | xargs dirname` +for LIB in `cd ${CXXBASE} && find lib | grep libgcc`; do + cd ${CXXBASE} + LIBDIR=`dirname ${LIB}` + NEWDIR=${ENCAP_SOURCE}/${ENCAP_PKGNAME}/lib/bcfg2/${LIBDIR} + if [ ! -d ${NEWDIR} ]; then mkdir -p ${NEWDIR}; fi + cp -p ${LIB} ${NEWDIR} +done + +SDIR=${ENCAP_SOURCE}/${ENCAP_PKGNAME}/var/encap +mkdir -p ${SDIR} +touch ${SDIR}/${ENCAP_PKGNAME} + +exit 0 + |