List scripts in project file
Maybe add install target for scripts later
This commit is contained in:
parent
79caa5f3ea
commit
5f48579cd3
|
@ -84,10 +84,14 @@ set(CMAKE_TEMPLATE_FILES
|
||||||
cmake/templates/doxygen.in
|
cmake/templates/doxygen.in
|
||||||
cmake/templates/bash-completion.sh.in
|
cmake/templates/bash-completion.sh.in
|
||||||
)
|
)
|
||||||
|
set(SCRIPT_FILES)
|
||||||
if(MINGW)
|
if(MINGW)
|
||||||
list(APPEND CMAKE_TEMPLATE_FILES
|
list(APPEND CMAKE_TEMPLATE_FILES
|
||||||
cmake/templates/windows.rc.in
|
cmake/templates/windows.rc.in
|
||||||
)
|
)
|
||||||
|
list(APPEND SCRIPT_FILES
|
||||||
|
scripts/wine.sh
|
||||||
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(DOC_FILES
|
set(DOC_FILES
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
#!/bin/bash
|
#!/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
|
for arg in "${@:2}"; do
|
||||||
WINEPATH="${arg};${WINEPATH}"
|
WINEPATH="${arg};${WINEPATH}"
|
||||||
done
|
done
|
||||||
export WINEPATH;
|
export WINEPATH;
|
||||||
wine "${@:1:1}"
|
echo wine "${@:1:1}"
|
||||||
|
|
Loading…
Reference in New Issue