Add Makefile target to generate the POT file
This commit is contained in:
Родитель
3cda14b65a
Коммит
ddcb6bf882
10
Makefile
10
Makefile
|
@ -1,4 +1,4 @@
|
|||
.PHONY: reinstall test
|
||||
.PHONY: reinstall test l10n
|
||||
|
||||
WP_CLI = tools/wp-cli.phar
|
||||
PHPUNIT = tools/phpunit.phar
|
||||
|
@ -18,6 +18,14 @@ test-sw: node_modules
|
|||
node_modules:
|
||||
npm install
|
||||
|
||||
l10n: tools/wordpress-repo
|
||||
php tools/wordpress-repo/tools/i18n/makepot.php wp-plugin wp-sw-cache
|
||||
mv wp-sw-cache.pot wp-sw-cache/lang/service-worker-cache.pot
|
||||
|
||||
tools/wordpress-repo:
|
||||
mkdir -p tools
|
||||
cd tools && svn checkout https://develop.svn.wordpress.org/trunk/ && mv trunk wordpress-repo
|
||||
|
||||
tools/wp-cli.phar:
|
||||
mkdir -p tools
|
||||
wget -P tools -N https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
|
||||
|
|
Загрузка…
Ссылка в новой задаче