-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #177 from mendix/DES-5253_fix-builds
DES-5253 Fix builds
- Loading branch information
Showing
5 changed files
with
40 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/sh | ||
|
||
# This script works as a drop-in replacement for mono and allows using non-mono mxbuild in CF Buildpack. | ||
# It's a temporary workaround until https://github.com/mendix/cf-mendix-buildpack/pull/661 is available in CF Buildpack v5. | ||
|
||
MONO_ARGS=() | ||
# Rewrite the command to exclude mono and its args, only keep mxbuild | ||
while [[ $# -gt 0 ]]; do | ||
case $1 in | ||
*mxbuild.exe) | ||
# Remove .exe from mxbuild executable name | ||
MONO_ARGS=(${1%.*}) | ||
shift | ||
;; | ||
*) | ||
# Keep all args after mxbuild | ||
if [ -n "$MONO_ARGS" ]; then | ||
MONO_ARGS+=("$1") | ||
fi | ||
shift | ||
;; | ||
esac | ||
done | ||
|
||
echo "Launching MxBuild through mono adapter..." | ||
|
||
exec "${MONO_ARGS[@]}" |