From: F. <j_r...@ya...> - 2002-10-05 23:27:25
|
On Tue, Sep 24, 2002 at 02:38:51PM +0100, José Fonseca wrote: >On Sat, Aug 31, 2002 at 09:01:16AM -0600, Jens Owen wrote: >> It looks like there is some type of problem when the GL subdirectory is >> empty. Here's what the script tries to do when it get's to an empty GL >> portion of the install. >> > >Ok. The problem is at: > > echo -n " GL & GLU libraries..." > cd GL > for FILE in * > do > mv -f $XF86_GL_DIR/$FILE $XF86_GL_DIR/dri-old.$FILE >& $LOGFILE_TMP; > cp -f $FILE $XF86_GL_DIR > done > >The '*' wildcard isn't matched so it's copied verbatim into $FILE actually doing > > mv -f $XF86_GL_DIR/* $XF86_GL_DIR/dri-old.* >& $LOGFILE_TMP; > >Since I don't want to replace a bug for another, what should be the best thing to do in >these cases? The alternatives I see are > - replacing the * for `ls` > - replacing the * for `find` > >Are there any caveats with any of these, or is there another way to do this? > [...] I took Ian Romanick's suggestion and changed all to ls -1 * | while read FILE Next snapshots (which are now fully automated again) have this already. Notify if you run into problems. José Fonseca |