[vlc-devel] [PATCH 1/5] pkg-static.sh: close file before overwriting it.

Robert Mourning robedmo.git at gmail.com
Wed May 31 01:56:00 CEST 2017


Improves support for building with Windows Subsystem for Linux.
When the input file is on DrvFs (windows file system), the "mv"
command which overwrites the original file fails unless the
file is closed first.

---
 contrib/src/pkg-static.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/contrib/src/pkg-static.sh b/contrib/src/pkg-static.sh
index 59cbd78..0c3ceea 100755
--- a/contrib/src/pkg-static.sh
+++ b/contrib/src/pkg-static.sh
@@ -35,4 +35,6 @@ done
 echo "Libs: $LIBS_PUBLIC $LIBS_PRIVATE"
 echo "Requires: $REQUIRES_PUBLIC $REQUIRES_PRIVATE"
 
+exec <&-
+
 mv -f -- "$1.tmp" "$1"
-- 
2.7.4



More information about the vlc-devel mailing list