File tree Expand file tree Collapse file tree 1 file changed +23
-7
lines changed Expand file tree Collapse file tree 1 file changed +23
-7
lines changed Original file line number Diff line number Diff line change @@ -65,35 +65,51 @@ extends:
65
65
arguments : $(Build.BuildNumber)
66
66
script : >
67
67
#!/usr/bin/env bash
68
+
69
+
68
70
# Update the version strings in the source code
71
+
72
+
69
73
# Input:
74
+
70
75
# $1 - the version string, if omitted, use ${BUILD_BUILDID}
71
- version=$1
76
+
77
+
78
+ version=$1
79
+
72
80
73
81
if [ -z ${version} ]; then
74
82
version=${BUILD_BUILDID}
75
- fi
83
+ fi
84
+
76
85
77
86
if [ -z ${version} ]; then
78
87
echo 'Missing version string'
79
88
exit 1
80
- fi
89
+ fi
90
+
81
91
82
92
echo "Add dev version suffix : $version"
83
-
93
+
94
+
84
95
platform=`uname`
85
-
96
+
97
+
86
98
echo "Platform : $platform"
87
-
99
+
100
+
88
101
pattern="s/^VERSION = [\"']\(.*\)[\"']/VERSION = \"\1.dev$version\"/"
89
-
102
+
103
+
90
104
if [ "${platform}" == "MSYS_NT-10.0" ]; then
91
105
# On preview version of sh build task, the script will pick up the wrong version of find.exe
92
106
find="C:\Program Files\Git\usr\bin\find.exe"
93
107
else
94
108
find="find"
95
109
fi
96
110
111
+
112
+
97
113
for each in $("${find}" . -name setup.py); do
98
114
if [ "$platform" == "Darwin" ]; then
99
115
sed -i "" "${pattern}" "${each}"
You can’t perform that action at this time.
0 commit comments