Support --source-build / -sb switches as well in the VMR (#18492)

This commit is contained in:
Viktor Hofer 2024-02-01 17:44:39 +01:00 committed by GitHub
parent 7833b42f6a
commit c4da4e15c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,34 +10,34 @@ set -e
usage() usage()
{ {
echo "Common settings:" echo "Common settings:"
echo " --binaryLog Create MSBuild binary log (short: -bl)" echo " --binaryLog Create MSBuild binary log (short: -bl)"
echo " --configuration <value> Build configuration: 'Debug' or 'Release' (short: -c)" echo " --configuration <value> Build configuration: 'Debug' or 'Release' (short: -c)"
echo " --verbosity <value> Msbuild verbosity: q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic] (short: -v)" echo " --verbosity <value> Msbuild verbosity: q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic] (short: -v)"
echo "" echo ""
echo "Actions:" echo "Actions:"
echo " --clean Clean the solution" echo " --clean Clean the solution"
echo " --help Print help and exit (short: -h)" echo " --help Print help and exit (short: -h)"
echo " --test Run smoke tests (short: -t)" echo " --test Run smoke tests (short: -t)"
echo "" echo ""
echo "Source-only settings:" echo "Source-only settings:"
echo " --source-only Source-build the solution (short: -so)" echo " --source-only, --source-build Source-build the solution (short: -so, -sb)"
echo " --online Build using online sources" echo " --online Build using online sources"
echo " --poison Build with poisoning checks" echo " --poison Build with poisoning checks"
echo " --release-manifest <FILE> A JSON file, an alternative source of Source Link metadata" echo " --release-manifest <FILE> A JSON file, an alternative source of Source Link metadata"
echo " --source-repository <URL> Source Link repository URL, required when building from tarball" echo " --source-repository <URL> Source Link repository URL, required when building from tarball"
echo " --source-version <SHA> Source Link revision, required when building from tarball" echo " --source-version <SHA> Source Link revision, required when building from tarball"
echo " --use-mono-runtime Output uses the mono runtime" echo " --use-mono-runtime Output uses the mono runtime"
echo " --with-packages <DIR> Use the specified directory of previously-built packages" echo " --with-packages <DIR> Use the specified directory of previously-built packages"
echo " --with-sdk <DIR> Use the SDK in the specified directory for bootstrapping" echo " --with-sdk <DIR> Use the SDK in the specified directory for bootstrapping"
echo "" echo ""
echo "Advanced settings:" echo "Advanced settings:"
echo " --ci Set when running on CI server" echo " --ci Set when running on CI server"
echo " --clean-while-building Cleans each repo after building (reduces disk space usage, short: -cwb)" echo " --clean-while-building Cleans each repo after building (reduces disk space usage, short: -cwb)"
echo " --excludeCIBinarylog Don't output binary log (short: -nobl)" echo " --excludeCIBinarylog Don't output binary log (short: -nobl)"
echo " --prepareMachine Prepare machine for CI run, clean up processes after build" echo " --prepareMachine Prepare machine for CI run, clean up processes after build"
echo "" echo ""
echo "Command line arguments not listed above are passed thru to msbuild." echo "Command line arguments not listed above are passed thru to msbuild."
echo "Arguments can also be passed in with a single hyphen." echo "Arguments can also be passed in with a single hyphen."
@ -117,7 +117,7 @@ while [[ $# > 0 ]]; do
;; ;;
# Source-only settings # Source-only settings
-source-only|-so) -source-only|-source-build|-so|-sb)
sourceOnly=true sourceOnly=true
properties="$properties /p:DotNetBuildSourceOnly=true" properties="$properties /p:DotNetBuildSourceOnly=true"
;; ;;