forked from redaxo/redaxo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate_requirements.sh
executable file
·25 lines (18 loc) · 1.37 KB
/
update_requirements.sh
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
#!/bin/sh
echo "Update redaxo/src/core/vendor"
composer update --no-dev -d redaxo/src/core/
composer dump-autoload --optimize -d redaxo/src/core
php -r "foreach (array('redaxo/src/core/vendor/autoload.php', 'redaxo/src/core/vendor/composer/autoload_real.php') as \$file) {\
file_put_contents(\$file, preg_replace('/(?<=ComposerAutoloaderInit)[0-9a-f]{32}/', 'RedaxoCore', file_get_contents(\$file)));\
}"
echo "Update redaxo/src/core/vendor/composer/ClassMapGenerator.php"
curl -# https://raw.github.com/composer/composer/master/src/Composer/Autoload/ClassMapGenerator.php > redaxo/src/core/vendor/composer/ClassMapGenerator.php
echo "\nUpdate redaxo/src/addons/textile/vendor"
composer update --no-dev -d redaxo/src/addons/textile/
echo "\nUpdate redaxo/src/core/assets/jquery.min.js"
curl -# http://code.jquery.com/jquery-latest.min.js > redaxo/src/core/assets/jquery.min.js
echo "\nUpdate redaxo/src/core/assets/jquery-pjax.min.js"
curl -#d output_info=compiled_code -d compilation_level=SIMPLE_OPTIMIZATIONS -d code_url=https://github.com/defunkt/jquery-pjax/raw/master/jquery.pjax.js http://closure-compiler.appspot.com/compile > redaxo/src/core/assets/jquery-pjax.min.js
echo "redaxo/src/core/assets/jquery.min.js\nredaxo/src/core/assets/jquery-pjax.min.js" | php coding_standards.phar fix
cp redaxo/src/core/assets/jquery-pjax.min.js assets
cp redaxo/src/core/assets/jquery.min.js assets