@@ -4,8 +4,10 @@ NWD=contrib/workdir/git-new-workdir
4
4
MASTER=master
5
5
6
6
section () {
7
+ printf " \033]0;%s %s\007" " $branch " " $* "
8
+
7
9
printf " \n\n\n"
8
- printf " ############ %s\n" " $@ "
10
+ printf " ############ %s %s \n" " $branch " " $* "
9
11
printf " \n\n\n"
10
12
}
11
13
@@ -24,7 +26,7 @@ inst_prefix=$(
24
26
)
25
27
26
28
force= with_dash= test_long= M= install= doc= notest= bootstrap= branches= jobs=
27
- scratch= noprove= memtrash=--memtrash with_cocci= with_leaks= with_sha256= san= clean=
29
+ scratch= noprove= memtrash=--memtrash with_cocci= with_leaks= with_sha256= san= clean= with_meson=
28
30
while case " $1 " in
29
31
--pedantic | --locale=* | --loose) M=" $M $1 " ;;
30
32
--force) force=$1 ;;
@@ -49,6 +51,7 @@ while case "$1" in
49
51
--san) san=t ;;
50
52
--leaks) with_leaks=t ;;
51
53
--sha256) with_sha256=t ;;
54
+ --meson) with_meson=t ;;
52
55
-j* ) jobs=$1 ;;
53
56
--) shift ; break ;;
54
57
-* ) echo >&2 " Unknown option: $1 " ; exit 1 ;;
152
155
}
153
156
fi
154
157
155
- private=$( git rev-parse -q --verify private-$branch 2> /dev/null)
156
- case $? in 0|1) ;; * ) exit $? ;; esac
157
-
158
158
version=$( find_installed $branch )
159
159
if test " z$version " = " z$revision "
160
160
then
161
161
echo " * up-to-date version is already installed from $branch "
162
162
test -n " $force " || continue
163
163
fi
164
164
165
+ private=$( git rev-parse -q --verify private-$branch 2> /dev/null)
166
+ case $? in 0|1) ;; * ) exit $? ;; esac
167
+
165
168
vtree=$( git rev-parse --verify " $version ^{tree}" )
166
169
rtree=$( git rev-parse --verify " $revision ^{tree}" )
167
170
(
237
240
238
241
save=$( git rev-parse HEAD) &&
239
242
243
+ if test -n " $with_meson " && test -f " meson.build"
244
+ then
245
+ section meson
246
+ rm -fr " ../.$branch .boson" &&
247
+ meson setup " ../.$branch .boson" &&
248
+ (
249
+ cd " ../.$branch .boson" &&
250
+ meson compile &&
251
+ meson test
252
+ ) || exit $?
253
+ fi &&
254
+
240
255
# cocci
241
256
if test -n " $with_cocci "
242
257
then
312
327
if test " $save " = " $( git rev-parse HEAD) "
313
328
then
314
329
section install
315
- Meta/Make $M -- ${with_dash: +SHELL_PATH=/ bin/ dash} " $@ " install
330
+ Meta/Make $jobs $ M -- ${with_dash: +SHELL_PATH=/ bin/ dash} " $@ " install
316
331
else
317
332
echo >&2 " Head moved--not installing"
318
333
fi
0 commit comments