View | Details | Raw Unified
Collapse All | Expand All

(-) eselect-1.0.8/modules/env.eselect~ (-4 / +17 lines)
 Lines 256-261    Link Here 
describe_update_options() {
describe_update_options() {
	echo "makelinks : Specify \"makelinks\" to force updating of links"
	echo "makelinks : Specify \"makelinks\" to force updating of links"
	echo "--no-ldconfig : Do not run ldconfig"
}
}
do_update() {
do_update() {
 Lines 266-277    Link Here 
		touch ${ROOT}/etc/profile.env
		touch ${ROOT}/etc/profile.env
	fi
	fi
	
	
	local mlinks noldconfig
	while [[ ${1} ]]; do
		case ${1} in
			makelinks) mlinks=1 ;;
			--no-ldconfig) noldconfig=1 ;;
			*) die -q "Unknown parameter ${1}" ;;
		esac
		shift
	done
	# Create configuration files
	# Create configuration files
	create_profile_env
	create_profile_env
	create_ld_so_conf
	if [[ -z "${noldconfig}" ]]; then
	[[ -e ${ROOT}/usr/sbin/prelink ]] && create_prelink_conf
		create_ld_so_conf
	makelinks=$( ( need_links || [[ ${1} == makelinks ]] ) && echo "-X" )
		[[ -e ${ROOT}/usr/sbin/prelink ]] && create_prelink_conf
	update_ldcache ${makelinks}
		makelinks=$( ( need_links || [[ "${mlinks}" ]] ) && echo "-X" )
		update_ldcache ${makelinks}
	fi
		
		
	# fix up ${ENVPROFILE}
	# fix up ${ENVPROFILE}
	cp ${ENVPROFILE} ${ENVPROFILE/.env/.csh}
	cp ${ENVPROFILE} ${ENVPROFILE/.env/.csh}