Skip to content

Commit e4aca65

Browse files
authored
Merge pull request #80 from getsource/metadiff
Add `metadiff` command to `Makefile`.
2 parents a46fdbd + 7972f48 commit e4aca65

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,13 @@ shell:
1313

1414
test:
1515
docker-compose exec wordpress /bin/bash -c "cd /var/www/html/wp-content/plugins/wp-unit-test-reporter/; phpcs --standard=phpcs.xml.dist ./ && phpunit"
16+
17+
metadiff:
18+
if [ -d "./build/wordpress.org" ]; then \
19+
git -C ./build/wordpress.org reset --hard HEAD && \
20+
git -C ./build/wordpress.org pull --rebase; \
21+
else \
22+
git clone https://github.com/WordPress/wordpress.org.git ./build/wordpress.org; \
23+
fi
24+
cp -rvp phpunit-test-reporter.php readme.txt src parts ./build/wordpress.org/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter
25+
git -C ./build/wordpress.org diff --no-prefix > build/metadiff.diff

0 commit comments

Comments
 (0)