Valgrind: r16418 - /trunk/auxprogs/make_or_upd_vgversion_h

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Valgrind: r16418 - /trunk/auxprogs/make_or_upd_vgversion_h

Author: mjw
Date: Wed May 24 16:59:53 2017
New Revision: 16418

Force removal of include/vgversion.h.tmp in make_or_upd_vgversion_h.

When someone created a read only src dir and builds in a separate build
dir then the original read only vgversion.h is copied from the src dir
into the build dir as vgversion.h.tmp (also read only). It could then
not be removed again in the auxprogs/make_or_upd_vgversion_h script.


Modified: trunk/auxprogs/make_or_upd_vgversion_h
--- trunk/auxprogs/make_or_upd_vgversion_h (original)
+++ trunk/auxprogs/make_or_upd_vgversion_h Wed May 24 16:59:53 2017
@@ -37,7 +37,7 @@
     if grep -q unknown include/vgversion.h.tmp ||
        cmp -s include/vgversion.h include/vgversion.h.tmp
-        rm include/vgversion.h.tmp
+        rm -f include/vgversion.h.tmp
         mv include/vgversion.h.tmp include/vgversion.h

Check out the vibrant tech community on one of the world's most
engaging tech sites,!
Valgrind-developers mailing list
[hidden email]