File tree 2 files changed +19
-7
lines changed
2 files changed +19
-7
lines changed Original file line number Diff line number Diff line change @@ -49,9 +49,6 @@ goto :success
49
49
50
50
:ARGUMENTS_OK
51
51
52
- rem Do no work
53
- if /I " %1 " == " none" (goto :success)
54
-
55
52
rem disable setup build by setting FSC_BUILD_SETUP=0
56
53
if /i " %FSC_BUILD_SETUP% " == " " (set FSC_BUILD_SETUP=1)
57
54
@@ -98,6 +95,10 @@ for %%i in (%BUILD_FSC_DEFAULT%) do ( call :PROCESS_ARG %%i )
98
95
99
96
REM apply defaults
100
97
98
+ if /i " %_buildexit% " == " 1" (
99
+ exit /B %_buildexitvalue%
100
+ )
101
+
101
102
if /i " %_autoselect% " == " 1" (
102
103
set BUILD_NET40_FSHARP_CORE = 1
103
104
set BUILD_NET40 = 1
@@ -135,6 +136,12 @@ set ARG2=%~2
135
136
if " %ARG% " == " 1" if " %2 " == " " (set ARG=default)
136
137
if " %2 " == " " if not " %ARG% " == " default" goto :EOF
137
138
139
+ rem Do no work
140
+ if /i " %ARG% " == " none" (
141
+ set _buildexit = 1
142
+ set _buildexitvalue = 0
143
+ )
144
+
138
145
if /i " %ARG% " == " net40-lib" (
139
146
set _autoselect = 0
140
147
set BUILD_NET40_FSHARP_CORE = 1
Original file line number Diff line number Diff line change @@ -64,10 +64,6 @@ if [ "$1" = "--help" ] || [ "$1" = "-h" ] || [ "$1" = "-?" ]; then
64
64
show_usage_and_exit
65
65
fi
66
66
67
- if [ " $1 " = " none" ]; then
68
- exit 0
69
- fi
70
-
71
67
# Save directory of the current script -- this is used below to fix up relative paths (if needed).
72
68
# The directory should have a trailing slash like it does on Windows, to minimize differences between scripts.
73
69
_scriptdir=" $( cd -P -- " $( dirname -- " $( command -v -- " $0 " ) " ) " && pwd -P ) /"
142
138
" nobuild" )
143
139
export BUILD_PHASE=0
144
140
;;
141
+ " none" )
142
+ _autoselect=0
143
+ export _buildexit=1
144
+ export _buildexitVALUE=0
145
+ ;;
145
146
" all" )
146
147
_autoselect=0
147
148
export BUILD_PROTO=1
324
325
esac
325
326
done
326
327
328
+ if [ $_buildexit -eq 1 ]; then
329
+ exit $_buildexitvalue
330
+ fi
331
+
327
332
# Apply defaults, if necessary.
328
333
if [ $_autoselect -eq 1 ]; then
329
334
export BUILD_NET40=1
You can’t perform that action at this time.
0 commit comments