Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 443744
Collapse All | Expand All

(-)gentoolkit-0.3.0.7.orig/bin/euse (-1 / +18 lines)
Lines 466-472 Link Here
466
	if [[ -f "${curdir}/parent" ]]; then
466
	if [[ -f "${curdir}/parent" ]]; then
467
		for parent in $(egrep -v '(^#|^ *$)' ${curdir}/parent); do
467
		for parent in $(egrep -v '(^#|^ *$)' ${curdir}/parent); do
468
			# Bug 231394, handle parent path being absolute
468
			# Bug 231394, handle parent path being absolute
469
			index=$(expr index "${parent}" :)
469
			index=$(echo "${parent}" | sed -n 's/:.*//p' | wc -c)
470
			if [[ ${parent:0:1} == "/" ]]; then
470
			if [[ ${parent:0:1} == "/" ]]; then
471
				pdir="$(get_real_path ${parent})"
471
				pdir="$(get_real_path ${parent})"
472
			elif [[ $index -eq 0 ]]; then
472
			elif [[ $index -eq 0 ]]; then
Lines 1315-1320 Link Here
1315
	echo "${MAKE_CONF_PATH} was modified, a backup copy has been placed at ${MAKE_CONF_BACKUP_PATH}"
1315
	echo "${MAKE_CONF_PATH} was modified, a backup copy has been placed at ${MAKE_CONF_BACKUP_PATH}"
1316
} # }}}
1316
} # }}}
1317
1317
1318
# GNU sed wrapper
1319
sed(){
1320
	if [ -e /usr/bin/gsed ]
1321
	then
1322
		/usr/bin/gsed "$@"
1323
	elif [ -e /bin/sed ]
1324
	then
1325
		/bin/sed "$@"
1326
	elif [ -e /usr/bin/sed ]
1327
	then
1328
		/usr/bin/sed "$@"
1329
	else
1330
		echo "ERROR: failed the selection of sed."
1331
		exit 1
1332
	fi
1333
}
1334
1318
##### main program comes now #####
1335
##### main program comes now #####
1319
1336
1320
parse_arguments "$@"
1337
parse_arguments "$@"

Return to bug 443744