Hi!

ed was recently removed from Gentoo's default profile - and dripkg's
install.sh requires ed.

install.sh also uses sed, so why not just remove the ed dependancy from
install.sh?

Here's a patch which does just that.

Thanks

-- 
Roy Marples <[EMAIL PROTECTED]>
Gentoo Linux Developer
--- install.sh	2005-05-17 15:54:24.000000000 +0100
+++ install.sh.new	2005-05-25 13:27:25.010423504 +0100
@@ -64,13 +64,13 @@
 	#####################################################################
 
 	# Determine driver to be installed
-	DRV_NAME=`echo "1 p" | ed -s pkginfo`
-	DRV_DESC=`echo "2 p" | ed -s pkginfo`
-	DRV_ARCH=`echo "3 p" | ed -s pkginfo`
-	DRV_DATE=`echo "4 p" | ed -s pkginfo`
-	DRV_MODULE=`echo "5 p" | ed -s pkginfo`
-	DRV_VERSION=`echo "6 p" | ed -s pkginfo`
-	DRV_BUILD_DESC=`echo "7 p" | ed -s pkginfo`
+	DRV_NAME=`sed -n '1p' pkginfo`
+	DRV_DESC=`sed -n '2p' pkginfo`
+	DRV_ARCH=`sed -n '3p' pkginfo`
+	DRV_DATE=`sed -n '4p' pkginfo`
+	DRV_MODULE=`sed -n '5p' pkginfo`
+	DRV_VERSION=`sed -n '6p' pkginfo`
+	DRV_BUILD_DESC=`sed -n '7p' pkginfo`
 	
 	# Determine directories from default or user values
 	XF86_DRI_DIR="$XF86_DIR/lib/modules/dri"
@@ -432,13 +432,6 @@
 	exit 127;
 fi
 
-# Check if ed is installed
-which ed &> /dev/null
-if [ "$?" != "0" ]; then
-	echo "Could not located 'ed' editor. Aborting."
-	exit 127;
-fi
-
 ### FIXME: We should check for matching architectures here!!! ###
 
 # Figure out if we should restore files

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to