forked from podlove/podlove-publisher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
58 lines (55 loc) · 2.07 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
player_src = bower_components/podlove-web-player/dist
player_dst = lib/modules/podlove_web_player/player_v3
update_subscribe_button:
rm -rf .tmppsb
git clone https://github.com/podlove/podlove-subscribe-button.git .tmppsb
rm -rf lib/modules/subscribe_button/dist
mv .tmppsb/dist lib/modules/subscribe_button/dist
rm -rf .tmppsb
player:
mkdir -p $(player_dst)/bin
mkdir -p $(player_dst)/css
mkdir -p $(player_dst)/img
mkdir -p $(player_dst)/js/vendor
cp $(player_src)/bin/flashmediaelement.swf $(player_dst)/bin
cp $(player_src)/css/*.min.css $(player_dst)/css
cp -r $(player_src)/css/vendor $(player_dst)/css/vendor
cp -r $(player_src)/img/* $(player_dst)/img
cp -r $(player_src)/js/*.min.js $(player_dst)/js
cp -r $(player_src)/js/vendor/*.min.js $(player_dst)/js/vendor
build:
composer install --no-dev -o
npm install
npm run production
rm -rf dist
mkdir dist
# move everything into dist
rsync -r --exclude=.git --exclude=node_modules --exclude=./dist . dist
# cleanup
find dist -name "*.git*" | xargs rm -rf
rm -rf dist/lib/modules/podlove_web_player/player_v2/player/podlove-web-player/libs
rm -rf dist/lib/modules/podlove_web_player/player_v2/player/podlove-web-player/img/banner-772x250.png
rm -rf dist/lib/modules/podlove_web_player/player_v2/player/podlove-web-player/img/banner-1544x500.png
rm -rf dist/tests
rm -rf dist/vendor/bin
rm -rf dist/vendor/phpunit/php-code-coverage
rm -rf dist/vendor/phpunit/phpunit
rm -rf dist/vendor/phpunit/phpunit-mock-objects
rm -rf dist/vendor/twig/twig/test
rm -rf dist/vendor/guzzle/guzzle/tests
rm -f dist/.travis.yml
rm -f dist/bower.json
rm -rf dist/bin
rm -f dist/wprelease.yml
rm -f dist/CONTRIBUTING.md
rm -f dist/Makefile
rm -f dist/phpunit.xml
rm -f dist/Rakefile
rm -f dist/README.md
find dist -name "*composer.json" | xargs rm -rf
find dist -name "*composer.lock" | xargs rm -rf
# find dist/vendor -type d -iname "test" | xargs rm -rf
# find dist/vendor -type d -iname "tests" | xargs rm -rf
# player v2 / mediaelement
find dist -iname "echo-hereweare.*" | xargs rm -rf
find dist -iname "*.jar" | xargs rm -rf