DEST_DIR=`echo $UPS_PROD_DIR | sed -e 's;/afs/fnal.gov;/afs/.fnal.gov;'` PATH=$PATH:${UPS_PROD_DIR}/bin; export PATH echo "Cleaning up inet_domain in Net/Config.pm" cd ${DEST_DIR}/lib/site_perl/5.005/arch/Net sed -e '/inet_domain/d' < Config.pm > Config.pm.new rm -f Config.pm.bak ln Config.pm Config.pm.bak # some systems have mv -f, some dont... mv -f Config.pm.new Config.pm 2>/dev/null || mv Config.pm.new Config.pm echo "Setting UPS_PROD_DIR in trampoline executable..." fixtrampoline ${UPS_PROD_DIR}/bin/trampoline ${DEST_DIR}/bin/setup_and_run_perl echo "Copy or symlink the ${DEST_DIR}/bin/setup_and_run_perl" echo "executable somewhere as 'perl' to run perl without setting it up"