comparison build-win32.sh @ 270:8c6fb6ee6f9e

Cleanup.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 12 Feb 2023 15:20:11 +0200
parents f6a99b984b8e
children 958451fcd85a
comparison
equal deleted inserted replaced
269:835f71eef167 270:8c6fb6ee6f9e
40 40
41 do_mkdir "$2/$3" 41 do_mkdir "$2/$3"
42 do_cp "$1/$3/$4" "$2/$3/$4" 42 do_cp "$1/$3/$4" "$2/$3/$4"
43 } 43 }
44 44
45
45 do_install() 46 do_install()
46 { 47 {
47 TARGET="$1" 48 TARGET="$1"
48 49
49 if test -d "$TARGET"; then 50 if test -d "$TARGET"; then
75 76
76 do_cp "$BUILDPATH/Syntilista.exe" "$TARGET" 77 do_cp "$BUILDPATH/Syntilista.exe" "$TARGET"
77 unix2dos -n "COPYING.html" "$TMPFILE" || fatal "Could not unix2dos." 78 unix2dos -n "COPYING.html" "$TMPFILE" || fatal "Could not unix2dos."
78 do_cp "$TMPFILE" "$TARGET/COPYING.txt" 79 do_cp "$TMPFILE" "$TARGET/COPYING.txt"
79 rm -f "$TMPFILE" 80 rm -f "$TMPFILE"
80 return 0
81 } 81 }
82 82
83 83
84 ### Create cross-building makefiles 84 ### Build the binaries
85 make -f Makefile.cross-mingw QT5_PREFIX="$QT5_PREFIX" BINPATH="$BUILDPATH" 85 make -f Makefile.cross-mingw QT5_PREFIX="$QT5_PREFIX" BINPATH="$BUILDPATH"
86 86
87 ### Install to targets 87 ### Install to targets
88 if test -d "$INSTALL_USB" && mount|grep -q "$INSTALL_USB"; then 88 if test -d "$INSTALL_USB" && mount|grep -q "$INSTALL_USB"; then
89 do_install "$INSTALL_USB/Syntilista" 89 do_install "$INSTALL_USB/Syntilista"