update-debian-changelog: Pass "-f" to "mv" to fix "make distcheck".
authorBen Pfaff <blp@nicira.com>
Tue, 15 Jun 2010 17:37:27 +0000 (10:37 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 17 Jun 2010 17:25:16 +0000 (10:25 -0700)
"make distcheck" unsets the "writable" bit of files as it installs them
on "make dist", so to avoid an error (or a user query) updating
debian/changelog in such a situation we must use the -f option.

build-aux/update-debian-changelog

index dfb84fc49ab46d63e0d608b8ae37d3c275c4d2bb..9353e70096d808bc9b0389d623aaaaeb271092a3 100755 (executable)
@@ -33,5 +33,5 @@ openvswitch ($VERSION) unstable; urgency=low
 EOF
         cat "$CHANGELOG"
     } > "$CHANGELOG".new
-    mv "$CHANGELOG".new "$CHANGELOG"
+    mv -f "$CHANGELOG".new "$CHANGELOG"
 fi