Skip to content

Commit

Permalink
When XCode changes for a rebuild if needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
ktf committed Nov 26, 2024
1 parent d4964f8 commit 88ff037
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions xcode.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,25 @@
package: Xcode
version: "1.0"
system_requirement_missing: |
Please make sure you install Xcode and the command line tools using xcode-select --install
system_requirement: "(osx.*)"
system_requirement_check: |
prefer_system: ".*"
prefer_system_check: |
# In case we are not on Darwin, this should not be included

Check notice on line 5 in xcode.sh

View workflow job for this annotation

GitHub Actions / alidistlint

Missing script shebang. Use exactly "#!/bin/bash -e" to match aliBuild environment. You may see spurious errors until you fix the shebang. [ali:bad-shebang]
case `uname -o` in

Check notice on line 6 in xcode.sh

View workflow job for this annotation

GitHub Actions / alidistlint

Use $(...) notation instead of legacy backticks `...`. [SC2006]
Darwin) ;;
*) echo "alibuild_system_replace: unsupported" ;;
esac
xcode-select -p && echo '#include <AvailabilityMacros.h>' | clang++ -x c++ - -c -o /dev/null
XCODE_VERSION="$(xcode-select -v | sed -e 's/[^0-9]//g')"
echo "alibuild_system_replace: ${XCODE_VERSION}"
prefer_system_replacement_specs:
unsupported:
version: "unsupported"
recipe: |
echo "XCode not supported on $(uname -o). Please check your dependencies."

Check notice on line 17 in xcode.sh

View workflow job for this annotation

GitHub Actions / alidistlint

prefer_system_replacement_specs.unsupported.recipe should create a Modulefile; use alibuild-generate-module or add a "#%Module1.0" comment to your manually-created Modulefile [ali:missing-modulefile]

Check notice on line 17 in xcode.sh

View workflow job for this annotation

GitHub Actions / alidistlint

Missing script shebang. Use exactly "#!/bin/bash -e" to match aliBuild environment. You may see spurious errors until you fix the shebang. [ali:bad-shebang]
exit 1
"[0-9]+":
version: "%(key)s"

Check failure on line 20 in xcode.sh

View workflow job for this annotation

GitHub Actions / alidistlint

prefer_system_replacement_specs.[0-9]+.version: substitution variable 'key' is invalid [ali:schema]
recipe: |
exit 0

Check notice on line 22 in xcode.sh

View workflow job for this annotation

GitHub Actions / alidistlint

prefer_system_replacement_specs.[0-9]+.recipe should create a Modulefile; use alibuild-generate-module or add a "#%Module1.0" comment to your manually-created Modulefile [ali:missing-modulefile]

Check notice on line 22 in xcode.sh

View workflow job for this annotation

GitHub Actions / alidistlint

Missing script shebang. Use exactly "#!/bin/bash -e" to match aliBuild environment. You may see spurious errors until you fix the shebang. [ali:bad-shebang]
---
echo "Please make sure you install Xcode and the command line tools using xcode-select --install."

Check notice on line 24 in xcode.sh

View workflow job for this annotation

GitHub Actions / alidistlint

main recipe should create a Modulefile; use alibuild-generate-module or add a "#%Module1.0" comment to your manually-created Modulefile [ali:missing-modulefile]

Check notice on line 24 in xcode.sh

View workflow job for this annotation

GitHub Actions / alidistlint

Missing script shebang. Use exactly "#!/bin/bash -e" to match aliBuild environment. You may see spurious errors until you fix the shebang. [ali:bad-shebang]
exit 1

0 comments on commit 88ff037

Please sign in to comment.