changeset 72:cde3d200967c

Use temporary file for unix2dos because of exfat limitations causing warnings.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 10 Apr 2017 13:03:07 +0300
parents 2d12c12a7b89
children 7306af5129e5
files build-win32.sh
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/build-win32.sh	Mon Apr 10 02:57:22 2017 +0300
+++ b/build-win32.sh	Mon Apr 10 13:03:07 2017 +0300
@@ -1,6 +1,7 @@
 #!/bin/sh
 INSTALL_USB="/mnt/sdb1/Syntilista/"
 INSTALL_WINE="$HOME/.wine/drive_c/Syntilista/"
+TMPFILE="unix2dos.tmp"
 
 BUILDPATH="win32/"
 
@@ -43,7 +44,8 @@
     done
 
     cp -f "$BUILDPATH/Syntilista.exe" "$TARGET"
-    unix2dos -n "COPYING" "$TARGET/COPYING.txt"
+    unix2dos -n "COPYING" "$TMPFILE" && cp -f "$TMPFILE" "$TARGET/COPYING.txt"
+    rm -f "$TMPFILE"
     return 0
 }