Skip to content

Commit f13de48

Browse files
committed
Allow QUIET=0 as temporary fix in installation scripts
1 parent 9b3abc2 commit f13de48

5 files changed

Lines changed: 23 additions & 10 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ paths.mk:
194194
maintainer-conf: inplace-conf-common dependencies-dev
195195
inplace-conf: inplace-conf-common dependencies
196196
inplace-conf-common: dist
197-
./configure $(subst 1,-q,$(QUIET)) --prefix=$(CURDIR) \
197+
./configure $(QUIET_FLAG) --prefix=$(CURDIR) \
198198
--with-domserver_root=$(CURDIR) \
199199
--with-judgehost_root=$(CURDIR) \
200200
--with-domjudge_docdir=$(CURDIR)/doc \

Makefile.global

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,18 @@ ifndef GLOBALINCLUDED
88
GLOBALINCLUDED=1
99

1010
# Check for QUIET environment variable:
11-
ifneq ($(QUIET),)
11+
ifeq ($(QUIET),0)
12+
QUIET_FLAG =
13+
QUIET_FLAG_CAPITAL =
14+
else ifeq ($(QUIET),)
15+
QUIET_FLAG =
16+
QUIET_FLAG_CAPITAL =
17+
else
18+
# Whenever QUIET is set and is not 0 assume it to be true
1219
export QUIET=1
1320
MAKEFLAGS += --no-print-directory --quiet
21+
QUIET_FLAG = -q
22+
QUIET_FLAG_CAPITAL = -Q
1423
endif
1524

1625
# Define the 'default' target here: because of inclusion of this file,

doc/manual/Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ REC_TARGETS = inplace-install inplace-uninstall
66

77
include $(TOPDIR)/Makefile.global
88

9-
ifneq ($(QUIET),)
9+
ifeq ($(QUIET),0)
10+
# Ignore option for 0
11+
QUIET_REDIRECT =
12+
else ifneq ($(QUIET),)
13+
# Set all other QUIET values as true
1014
export LATEXMKOPTS=-quiet
1115
QUIET_REDIRECT = >/dev/null 2>&1
1216
endif
@@ -61,10 +65,10 @@ conf_ref.rst: gen_conf_ref.py
6165
./gen_conf_ref.py
6266

6367
html: conf_ref.rst
64-
sphinx-build -M $@ . build $(subst 1,-Q,$(QUIET))
68+
sphinx-build -M $@ . build $(QUIET_FLAG_CAPITAL)
6569

6670
team:
67-
sphinx-build -b latex . build/team $(subst 1,-Q,$(QUIET))
71+
sphinx-build -b latex . build/team $(QUIET_FLAG_CAPITAL)
6872
$(MAKE) -C build/team domjudge-team-manual.pdf $(QUIET_REDIRECT)
6973
cp build/team/domjudge-team-manual.pdf build
7074

etc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ domserver: apache.conf nginx-conf nginx-conf-inner $(SECRETS)
2929
judgehost: restapi.secret
3030

3131
$(SECRETS):
32-
./gen_all_secrets $(subst 1,-q,$(QUIET))
32+
./gen_all_secrets $(QUIET_FLAG)
3333

3434
install-domserver:
3535
$(INSTALL_DATA) -t $(DESTDIR)$(domserver_etcdir) \

webapp/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ ifeq (, $(shell command -v composer 2> /dev/null))
2020
endif
2121
# We use --no-scripts here because at this point the autoload.php file is
2222
# not generated yet, which is needed to run the post-install scripts.
23-
composer $(subst 1,-q,$(QUIET)) install --prefer-dist -o -a --no-scripts --no-plugins
23+
composer install $(QUIET_FLAG) --prefer-dist -o -a --no-scripts --no-plugins
2424

2525
dependencies-dev: composer-dependencies-dev node-dependencies
2626

2727
composer-dependencies-dev:
28-
composer $(subst 1,-q,$(QUIET)) install --prefer-dist --no-scripts --no-plugins
28+
composer $(QUIET_FLAG) install --prefer-dist --no-scripts --no-plugins
2929

3030
# Dump autoload dependencies (including plugins)
3131
# This is needed since symfony/runtime is a Composer plugin that runs while dumping
@@ -35,10 +35,10 @@ composer-dependencies-dev:
3535
composer-dump-autoload: vendor/autoload_runtime.php
3636

3737
vendor/autoload_runtime.php:
38-
composer $(subst 1,-q,$(QUIET)) dump-autoload -o -a
38+
composer $(QUIET_FLAG) dump-autoload -o -a
3939

4040
composer-dump-autoload-dev:
41-
composer $(subst 1,-q,$(QUIET)) dump-autoload
41+
composer $(QUIET_FLAG) dump-autoload
4242

4343
node-dependencies:
4444
ifeq (, $(shell command -v yarn || command -v yarnpkg 2> /dev/null))

0 commit comments

Comments
 (0)