Well the grep error is due to you not having the complete script, ie the following line: echo "$packagedir" >> done || break Is what populates the done file, bad name in my opinion as it is confusing, however, have you also performed the priorstep of: wget -B http://xorg.freedesktop.org/releases/individual/proto/ -i ../Proto-20101205.wget As this will download the files you require which seems to be the complaint about no file?The \r may be a remnant if you performed any of this under Windows? Let us know how you go? cheersgrail
> Date: Mon, 28 Mar 2011 13:03:38 -0600 > From: [email protected] > To: [email protected] > Subject: [Clfs-support] xorg 7 script problem > > > Hi > > I am trying to rebuild CFLS and I have run into a problem with the script for > helping build the xorg7 proto section of the CBLFS > > when I run the script > top=$PWD > cat ../Proto-20101205.wget | while read package; do packagedir=$(sed -e > "s/\.tar\.bz2//" <<< $package); cd $top || break; > grep ^$packagedir$ done && continue; > echo $package && > echo $packagedir && > tar xvf $package; > done > > I get the output of > > grep: done: No such file or directory > applewmproto-1.4.1.tar.bz2 > applewmproto-1.4.1 > tar: applewmproto-1.4.1.tar.bz2\r: Cannot open: No such file or directory > tar: Error is not recoverable: exiting now > > etc for all the rest of the tar.bz2 files > > I copied this directly from the website??? and of course only added the echo > parts to see if the package and packagedir were correctly shown > > why does tar put in the \r at the end of the package name???? > > tks > -- > Randolph D Dach <[email protected]> > _______________________________________________ > Clfs-support mailing list > [email protected] > http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org
_______________________________________________ Clfs-support mailing list [email protected] http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org
