Skip to content
This repository has been archived by the owner on Nov 22, 2018. It is now read-only.

Commit

Permalink
Handle msbuild (which is .dll not .exe)
Browse files Browse the repository at this point in the history
  • Loading branch information
directhex committed Apr 10, 2017
1 parent b14d198 commit 71f54e0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions defs/managed-components
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ install()
do echo "Processing $i"
sed -i 's#/Library.*mono #\"\$\{BASH_SOURCE%/\*\}\"/mono #' $i
sed -i 's#/Library.*cli #\"\$\{BASH_SOURCE%/\*\}\"/cli #' $i
if [ -n "$(grep -ho '[\" ]/Library.*\.exe' $i)" ]
then EXENAME=$(basename `grep -ho -m 1 '[\" ]/Library.*\.exe' $i | sed 's/^\"//'`)
RUNTIME=$(dirname `grep -ho -m 1 '[\" ]/Library.*\.exe' $i` | sed 's/^\"//' | sed 's#/Library.*/[0-9]\+\.[0-9]\+\.[0-9]\+/lib/##' | sed '/^mono\//! s#^#..\\\\#' | sed 's#^mono/##')
if [ -n "$(grep -hoE '[\" ]/Library.*\.(exe|dll)' $i)" ]
then EXENAME=$(basename `grep -hoE -m 1 '[\" ]/Library.*\.(exe|dll)' $i | sed 's/^\"//'`)
RUNTIME=$(dirname `grep -hoE -m 1 '[\" ]/Library.*\.(exe|dll)' $i` | sed 's/^\"//' | sed 's#/Library.*/[0-9]\+\.[0-9]\+\.[0-9]\+/lib/##' | sed '/^mono\//! s#^#..\\\\#' | sed 's#^mono/##')
sed "s#@@RUNTIME@@#${RUNTIME}\\\\#g" ${REPODIR}/../../resources/wrapper.bat > $i.bat
sed -i "s#@@COMMAND@@#${EXENAME}#g" $i.bat
sed -i 's#/#\\#g' $i.bat
Expand All @@ -100,6 +100,7 @@ install()
sed -i 's#\"\"#\"#g' $i
sed -i 's#)\"#)#g' $i
sed -i 's#exe #exe\" #' $i
sed -i 's#dll #dll\" #' $i
sed -i 's#basename \$0#basename \"\$0\"#' $i
done
cp xsp4 xsp
Expand Down

0 comments on commit 71f54e0

Please sign in to comment.