dri: use mv -f instead of mv to ensure no prompting occurs
authorLuca Barbieri <luca@luca-barbieri.com>
Tue, 23 Mar 2010 16:55:38 +0000 (17:55 +0100)
committerLuca Barbieri <luca@luca-barbieri.com>
Tue, 23 Mar 2010 16:57:59 +0000 (17:57 +0100)
Using just mv may cause prompts on some systems/configurations.

src/gallium/winsys/drm/Makefile.template
src/mesa/drivers/dri/Makefile.template

index 9f984f1090cfdb72bad4c234fff032ab2da445b0..7146e112d04f8bd211fc95a2c654b87f22ef570c 100644 (file)
@@ -71,7 +71,7 @@ $(LIBNAME): $(OBJECTS) $(MESA_MODULES) $(PIPE_DRIVERS) Makefile \
                  $(DRI_LIB_DEPS) $(DRIVER_EXTRAS)
        $(CC) -o $@.test $(TOP)/src/mesa/drivers/dri/common/dri_test.o $@.tmp -L$(TOP)/lib -lGL
        @rm -f $@.test
-       mv $@.tmp $@
+       mv -f $@.tmp $@
 
 $(TOP)/$(LIB_DIR)/gallium:
        mkdir -p $@
index 2b7634bbf6c318720ff5d73bba2bac200896f146..15682b76ff168c7730aaeef23b5941bd7b96c05d 100644 (file)
@@ -56,7 +56,7 @@ $(LIBNAME): $(OBJECTS) $(MESA_MODULES) $(EXTRA_MODULES) Makefile \
                $(OBJECTS) $(MESA_MODULES) $(EXTRA_MODULES) $(DRI_LIB_DEPS)
        $(CC) -o $@.test $(TOP)/src/mesa/drivers/dri/common/dri_test.o $@.tmp -L$(TOP)/lib -lGL
        @rm -f $@.test
-       mv $@.tmp $@
+       mv -f $@.tmp $@
 
 
 $(TOP)/$(LIB_DIR)/$(LIBNAME): $(LIBNAME)