#!/bin/sh # # copy_sms - copy SmartSetup to a given directory for standalone usage # if [ "${1:-notset}" = "notset" ];then echo "Usage: $0 " exit fi export PATH=/bin:/usr/bin MWHOME=${MWHOME:-/vobs/build/mw} if [ ! -d "$MWHOME" ] ;then echo "***Error: Cannot find MWHOME \"$MWHOME\"" exit 1 fi destination_dir=$1 mkdir -p ${destination_dir} || exit 1 cd ${MWHOME}/../sms || exit 1 cp `cat copy_sms.lst` $destination_dir cp ${MWHOME}/bin/mwcheck_platform $destination_dir cp ${MWHOME}/setup-mwuser ${destination_dir} # # copy all possible perl executables, removings the old ones # OLD_ARCHS='alpha_osf1v2 hp700_ux9 i86_sco5 i86_sunos5 mips_irix53 mips_news6 mips_sysvr4_2 sparc_sunos4 rs6000_aix3' for arch_os_perl in ${MWHOME}/bin-*/mwperl; do arch=`echo ${arch_os_perl} | sed 's,^.*/bin-\([^/]*\)/mwperl,\1,' for old_arch in ${OLD_ARCHS}; do if [ $old_arch = $arch ]; then continue 2 fi done ALL_ARCHS="${ALL_ARCHS} ${arch}" done for arch in ${ALL_ARCHS}; do cp ${MWHOME}/bin-${arch}/mwperl ${destination_dir}/mwperl-${arch} done ### the last line