[LyX/2.3.x] Update lyx-build script and add header file for Windows.

Richard Kimberly Heck rikiheck at lyx.org
Mon Jun 1 19:48:27 UTC 2020


commit 092bc93903f7101b322e3023238c8fc011560273
Author: Richard Kimberly Heck <rikiheck at lyx.org>
Date:   Mon Jun 1 16:10:47 2020 -0400

    Update lyx-build script and add header file for Windows.
---
 development/tools/lyx-build |   12 ++++++++++--
 src/support/os_win32.cpp    |    1 +
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/development/tools/lyx-build b/development/tools/lyx-build
index ce615f8..5fd4e30 100755
--- a/development/tools/lyx-build
+++ b/development/tools/lyx-build
@@ -22,12 +22,20 @@ COMPILE="YES";
 # Make patch file?
 PATCH="YES";
 
-while getopts ":Cm:P" opt; do
+function usage() {
+echo "lyx-build [-C] [-m MAKEARGS[ [-P]";
+echo " -C: Do not test compilation";
+echo " -m MAKEARGS: Arguments for make";
+echo " -P: Do not build patch files";
+}
+
+while getopts ":Cm:Ph" opt; do
   case $opt in
     C )   COMPILE="";; # don't test compilation
     m )   MAKEOPTS="$OPTARG";;
     P )   PATCH="";; # don't build patch files
-    \? )  echo "Unknown option $opt"; exit 1;;
+    h )   usage; exit 0;;
+    \? )  echo "Unknown option $opt"; usage; exit 1;;
   esac
 done
 shift $(($OPTIND - 1));
diff --git a/src/support/os_win32.cpp b/src/support/os_win32.cpp
index 6e5d6d8..9e90fd1 100644
--- a/src/support/os_win32.cpp
+++ b/src/support/os_win32.cpp
@@ -32,6 +32,7 @@
 #include "support/lassert.h"
 
 #include <cstdlib>
+#include <iostream>
 #include <vector>
 
 #include <QString>


More information about the lyx-cvs mailing list