From 7080f3d8c7c128b6bba6b550d18a08479d781f39 Mon Sep 17 00:00:00 2001 From: teppy999 Date: Mon, 16 Oct 2023 17:19:39 -0400 Subject: [PATCH] Modify luprex-install.sh for windows --- .gitattributes | 1 + luprex-install.sh | 20 +++++++++++++------- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/.gitattributes b/.gitattributes index 90bd4e26..1bded486 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,5 +1,6 @@ * text=auto *.bat text eol=crlf +*.sh text eol=lf *.lib filter=lfs diff=lfs merge=lfs -text *.exe filter=lfs diff=lfs merge=lfs -text *.a filter=lfs diff=lfs merge=lfs -text diff --git a/luprex-install.sh b/luprex-install.sh index e75119b7..c0dbec72 100755 --- a/luprex-install.sh +++ b/luprex-install.sh @@ -7,14 +7,20 @@ # # -LUPREX=$HOME/luprex +if [ -d c:/luprex ] ; then + LUPREX=c:/luprex + DLL=$LUPREX/build/visual/luprexlib.dll +else + LUPREX=$HOME/luprex + DLL=$LUPREX/build/linux/luprexlib.so +fi rm -f Source/Integration/lpx-*.hpp rm -f Source/Integration/lpx-*.cpp -echo '#include "'$LUPREX'/ext/base-writer.hpp"' > Source/Integration/lpx-basewriter.hpp -echo '#include "'$LUPREX'/cpp/drv/drvutil.hpp"' > Source/Integration/lpx-drvutil.hpp -echo '#include "'$LUPREX'/cpp/drv/drvutil.cpp"' > Source/Integration/lpx-drvutil.cpp -echo '#include "'$LUPREX'/cpp/core/enginewrapper.hpp"' > Source/Integration/lpx-enginewrapper.hpp -echo '#define LUPREX_DLL_PATH "'$LUPREX'/build/linux/luprexlib.so"' > Source/Integration/lpx-paths.hpp -echo '#define LUPREX_ROOT_PATH "'$LUPREX'"' >> Source/Integration/lpx-paths.hpp +echo '#include "'$LUPREX'/ext/base-writer.hpp"' > Source/Integration/lpx-basewriter.hpp +echo '#include "'$LUPREX'/cpp/drv/drvutil.hpp"' > Source/Integration/lpx-drvutil.hpp +echo '#include "'$LUPREX'/cpp/drv/drvutil.cpp"' > Source/Integration/lpx-drvutil.cpp +echo '#include "'$LUPREX'/cpp/core/enginewrapper.hpp"' > Source/Integration/lpx-enginewrapper.hpp +echo '#define LUPREX_DLL_PATH "'$DLL'"' > Source/Integration/lpx-paths.hpp +echo '#define LUPREX_ROOT_PATH "'$LUPREX'"' >> Source/Integration/lpx-paths.hpp