mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00
gitlab-ci: Prevent build system from becoming Windows-centric too
Following: 89dfd0161a
Even if some script/tool is common on Windows, it's not wise to
use Win-specific things on Meson if they are avaiable on Python,
since that non-Python code will be too hard to mantain without the
Windows maintainer. So, let's make life easier for non-Win devs.
This commit is contained in:
parent
89dfd0161a
commit
3dca11596b
1 changed files with 25 additions and 1 deletions
|
@ -133,9 +133,33 @@ done
|
||||||
if [ "$found_coreutils" ]; then
|
if [ "$found_coreutils" ]; then
|
||||||
echo -e '\033[31m(ERROR)\033[0m: Seems that you are trying to add an Unix-specific dependency to be called by Meson.'
|
echo -e '\033[31m(ERROR)\033[0m: Seems that you are trying to add an Unix-specific dependency to be called by Meson.'
|
||||||
echo " Please, port to Python (which is crossplatform), your use of:${found_coreutils}."
|
echo " Please, port to Python (which is crossplatform), your use of:${found_coreutils}."
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
#Limited list of commonly used utilities on Windows world
|
||||||
|
ntutils_array=(
|
||||||
|
".bat"
|
||||||
|
".cmd"
|
||||||
|
".ps1"
|
||||||
|
"'cmd'"
|
||||||
|
"'powershell'"
|
||||||
|
)
|
||||||
|
|
||||||
|
for ntutil in "${ntutils_array[@]}"; do
|
||||||
|
if echo "$diff" | grep -q "$ntutil"; then
|
||||||
|
found_ntutils+=" $ntutil"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ "$found_ntutils" ]; then
|
||||||
|
echo -e '\033[31m(ERROR)\033[0m: Seems that you are trying to add a NT-specific dependency to be called by Meson.'
|
||||||
|
echo " Please, port to Python (which is crossplatform), your use of:${found_ntutils}."
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
if [ "$found_coreutils" ] || [ "$found_ntutils" ]; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
echo 'Meson .build files are alright regarding crossplatform.'
|
echo 'Meson .build files are alright regarding crossplatform.'
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue