List scripts in project file
Maybe add install target for scripts later
This commit is contained in:
parent
79caa5f3ea
commit
5f48579cd3
|
@ -84,9 +84,13 @@ set(CMAKE_TEMPLATE_FILES
|
|||
cmake/templates/doxygen.in
|
||||
cmake/templates/bash-completion.sh.in
|
||||
)
|
||||
set(SCRIPT_FILES)
|
||||
if(MINGW)
|
||||
list(APPEND CMAKE_TEMPLATE_FILES
|
||||
cmake/templates/windows.rc.in
|
||||
cmake/templates/windows.rc.in
|
||||
)
|
||||
list(APPEND SCRIPT_FILES
|
||||
scripts/wine.sh
|
||||
)
|
||||
endif()
|
||||
|
||||
|
|
|
@ -1,6 +1,11 @@
|
|||
#!/bin/bash
|
||||
if [[ $# -lt 1 ]]; then
|
||||
echo "Starts the specified executable with wine."
|
||||
echo "Usage: $0 executable [additional_dll_path(s)]"
|
||||
exit -1
|
||||
fi
|
||||
for arg in "${@:2}"; do
|
||||
WINEPATH="${arg};${WINEPATH}"
|
||||
done
|
||||
export WINEPATH;
|
||||
wine "${@:1:1}"
|
||||
echo wine "${@:1:1}"
|
||||
|
|
Loading…
Reference in New Issue