include ../Makefile.config include Makefile.config PACKAGE = drakxtools PKGVERSION = $(VERSION) POFILES = $(shell ls share/po/*.po) MOFILES = $(POFILES:%.po=%.mo) OTHERS = $(OTHERDIRS) $(OTHERFILES) OTHERDIRS = tools/serial_probe OTHERFILES = tools/rpcinfo-flushed.c .PHONY: all $(DIRS) install clean all: TAGS $(DIRS) xs: $(DIRS) TAGS: $(ALLPMS) -etags $^ /usr/lib/perl5/*/*/MDK/Common/*.pm clean: for i in $(DIRS) share/po install/help/po install/share/po; do $(MAKE) -C $$i clean; done;: rm -rf auto drakxtools*.tar* *.bak find . -name "*~" -o -name ".#*" -o -name "TAGS" -o -name "*.old" | xargs rm -f rm -rf $(PACKAGE)-$(PKGVERSION)* check_pms_encoding: @for i in $(ALLPMS); do charset=ascii; grep -q 'use utf8' $$i && charset=utf8; iconv -f $$charset -t $$charset $$i >/dev/null || { echo "bad $$charset character in $$i"; exit 1; }; done check_full: check_pms_encoding perl -I. -Mlang -e 'lang::check' check2: perl -I. -Mkeyboard -e 'keyboard::check' $(DIRS): install -d auto $(MAKE) -C $@ test_pms: perl_checker install/install2.pm install/steps_gtk.pm install/steps_stdio.pm partition_table/*.pm standalone/{harddrake2,diskdrake,draksec} test_pms_all: perl_checker -v --generate-package-dependencies-graph .deps $(ALLPMS) %.mo: %.po msgfmt -o $@ $< install_pms stage2 full_stage2: make -C install $@ mo_files : $(MOFILES) # rules to build tarball dist: tar tar: clean rm -rf $(PACKAGE)*.tar* $(PACKAGE)-$(PKGVERSION) mkdir -p $(PACKAGE)-$(PKGVERSION)/tools (cd ..; git archive HEAD perl-install/{[^i]*,int*} $(OTHERS) kernel/list_modules.pm Makefile.config) | tar xC $(PACKAGE)-$(PKGVERSION) rm -rf $(PACKAGE)-$(PKGVERSION)/perl-install/{install,unused,list_modules.pm} cp -f ../kernel/list_modules.pm $(PACKAGE)-$(PKGVERSION)/perl-install cd $(PACKAGE)-$(PKGVERSION)/perl-install ; mv -f Makefile.drakxtools Makefile @make nuke_perl tar cfa $(PACKAGE)-$(PKGVERSION).tar.xz $(PACKAGE)-$(PKGVERSION) rm -rf $(PACKAGE)-$(PKGVERSION) $(info $(PACKAGE)-$(PKGVERSION).tar.xz is ready) # rules to build a distributable rpm nuke_perl: find $(PACKAGE)-$(PKGVERSION)/perl-install -name '*.pm' | xargs ../tools/simplify-drakx-modules find $(PACKAGE)-$(PKGVERSION)/perl-install/standalone -type f | xargs ../tools/simplify-drakx-modules # [pixel] for my grep looking for any .pm files pixel_standalone_links: rm -rf .standalone_apps.swa mkdir .standalone_apps.swa for i in $(STANDALONEPMS_); do ln -sf ../standalone/$$i .standalone_apps.swa/$$i.pm; done check_perl_checker: rm -f share/po/libDrakX.pot install/share/po/DrakX.pot @make -C share/po libDrakX.pot @make -C install/share/po DrakX.pot /console/command/command.php
diff options
context:
space:
mode:
authorMaat <maat-pub@mageia.biz>2020-05-08 18:29:30 +0200
committerMaat <maat-pub@mageia.biz>2020-05-08 21:36:04 +0200
commit36bc1870f21fac04736a1049c1d5b8e127d729f4 (patch)
tree9d102331eeaf1ef3cd23e656320d7c08e65757ed /phpBB/phpbb/console/command/command.php
parent8875d385d0579b451dac4d9bda465172b4f69ee0 (diff)
parent149375253685b3a38996f63015a74b7a0f53aa14 (diff)
downloadforums-36bc1870f21fac04736a1049c1d5b8e127d729f4.tar
forums-36bc1870f21fac04736a1049c1d5b8e127d729f4.tar.gz
forums-36bc1870f21fac04736a1049c1d5b8e127d729f4.tar.bz2
forums-36bc1870f21fac04736a1049c1d5b8e127d729f4.tar.xz
forums-36bc1870f21fac04736a1049c1d5b8e127d729f4.zip
Merge remote-tracking branch 'upstream/prep-release-3.1.11'
Diffstat (limited to 'phpBB/phpbb/console/command/command.php')
-rw-r--r--phpBB/phpbb/console/command/command.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/phpBB/phpbb/console/command/command.php b/phpBB/phpbb/console/command/command.php
new file mode 100644
index 0000000000..638c989da2
--- /dev/null
+++ b/phpBB/phpbb/console/command/command.php
@@ -0,0 +1,31 @@
+<?php
+/**
+*
+* This file is part of the phpBB Forum Software package.
+*
+* @copyright (c) phpBB Limited <https://www.phpbb.com>
+* @license GNU General Public License, version 2 (GPL-2.0)
+*
+* For full copyright and license information, please see
+* the docs/CREDITS.txt file.
+*
+*/
+
+namespace phpbb\console\command;
+
+abstract class command extends \Symfony\Component\Console\Command\Command
+{
+ /** @var \phpbb\user */
+ protected $user;
+
+ /**
+ * Constructor
+ *
+ * @param \phpbb\user $user User instance (mostly for translation)
+ */
+ public function __construct(\phpbb\user $user)
+ {
+ $this->user = $user;
+ parent::__construct();
+ }
+}