Rev 827 | Rev 874 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 827 | Rev 868 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #!/bin/bash |
1 | #!/bin/bash |
2 | 2 | ||
3 | # OIDplus 2.0 |
3 | # OIDplus 2.0 |
4 | # Copyright 2019 - 2021 Daniel Marschall, ViaThinkSoft |
4 | # Copyright 2019 - 2022 Daniel Marschall, ViaThinkSoft |
5 | # |
5 | # |
6 | # Licensed under the Apache License, Version 2.0 (the "License"); |
6 | # Licensed under the Apache License, Version 2.0 (the "License"); |
7 | # you may not use this file except in compliance with the License. |
7 | # you may not use this file except in compliance with the License. |
8 | # You may obtain a copy of the License at |
8 | # You may obtain a copy of the License at |
9 | # |
9 | # |
Line 36... | Line 36... | ||
36 | composer update |
36 | composer update |
37 | 37 | ||
38 | # Remove stuff we don't want to publish or PHP files which could be |
38 | # Remove stuff we don't want to publish or PHP files which could be |
39 | # executed (which would be a security risk, because the vendor/ directory |
39 | # executed (which would be a security risk, because the vendor/ directory |
40 | # can be accessed via the web-browser) |
40 | # can be accessed via the web-browser) |
- | 41 | remove_vendor_rubbish() { |
|
41 | shopt -s globstar |
42 | shopt -s globstar |
42 | rm -rf vendor/**/.svn |
43 | rm -rf $1vendor/**/.svn |
43 | rm -rf vendor/**/.git |
44 | rm -rf $1vendor/**/.git |
44 | rm -rf vendor/**/.gitignore |
45 | rm -rf $1vendor/**/.gitignore |
45 | rm -rf vendor/**/.gitattributes |
46 | rm -rf $1vendor/**/.gitattributes |
46 | rm -rf vendor/**/.github |
47 | rm -rf $1vendor/**/.github |
47 | rm -rf vendor/**/demo |
48 | rm -rf $1vendor/**/demo |
48 | rm -rf vendor/**/demos |
49 | rm -rf $1vendor/**/demos |
49 | rm -rf vendor/twbs/bootstrap/package* |
50 | rm -rf $1vendor/twbs/bootstrap/package* |
50 | rm -rf vendor/twbs/bootstrap/*.js |
51 | rm -rf $1vendor/twbs/bootstrap/*.js |
51 | rm -rf vendor/twbs/bootstrap/*.yml |
52 | rm -rf $1vendor/twbs/bootstrap/*.yml |
52 | rm -rf vendor/twbs/bootstrap/.* 2>/dev/null |
53 | rm -rf $1vendor/twbs/bootstrap/.* 2>/dev/null |
53 | rm -rf vendor/twbs/bootstrap/nuget/ |
54 | rm -rf $1vendor/twbs/bootstrap/nuget/ |
54 | rm -rf vendor/twbs/bootstrap/scss/ |
55 | rm -rf $1vendor/twbs/bootstrap/scss/ |
55 | rm -rf vendor/twbs/bootstrap/js/ |
56 | rm -rf $1vendor/twbs/bootstrap/js/ |
56 | rm -rf vendor/twbs/bootstrap/build/ |
57 | rm -rf $1vendor/twbs/bootstrap/build/ |
57 | rm -rf vendor/twbs/bootstrap/site/ |
58 | rm -rf $1vendor/twbs/bootstrap/site/ |
58 | rm -rf vendor/google/recaptcha/examples/ |
59 | rm -rf $1vendor/google/recaptcha/examples/ |
59 | rm -rf vendor/**/tests |
60 | rm -rf $1vendor/**/tests |
60 | rm -rf vendor/**/test |
61 | rm -rf $1vendor/**/test |
- | 62 | rm $1vendor/**/*.phpt |
|
61 | rm vendor/danielmarschall/fileformats/example.php |
63 | rm $1vendor/**/example.php |
62 | rm -rf vendor/danielmarschall/vnag/logos |
64 | rm -rf $1vendor/danielmarschall/vnag/logos |
63 | rm -rf vendor/danielmarschall/vnag/doc |
65 | rm -rf $1vendor/danielmarschall/vnag/doc |
64 | rm -rf vendor/danielmarschall/vnag/plugins |
66 | rm -rf $1vendor/danielmarschall/vnag/plugins |
65 | rm -rf vendor/danielmarschall/uuid_mac_utils/*.php |
67 | rm -rf $1vendor/danielmarschall/uuid_mac_utils/*.php |
66 | rm -rf vendor/danielmarschall/uuid_mac_utils/*.sh |
68 | rm -rf $1vendor/danielmarschall/uuid_mac_utils/*.sh |
67 | rm -rf vendor/danielmarschall/uuid_mac_utils/*.css |
69 | rm -rf $1vendor/danielmarschall/uuid_mac_utils/*.css |
68 | rm -rf vendor/paragonie/random_compat/other |
70 | rm -rf $1vendor/paragonie/random_compat/other |
- | 71 | } |
|
- | 72 | remove_vendor_rubbish ./ |
|
69 | 73 | ||
70 | # It is important that symlinks are not existing, otherwise the .tar.gz dir |
74 | # It is important that symlinks are not existing, otherwise the .tar.gz dir |
71 | # cannot be correctly extracted in Windows |
75 | # cannot be correctly extracted in Windows |
72 | rm -rf vendor/bin |
76 | rm -rf vendor/bin |
73 | rm -rf vendor/matthiasmullie/minify/bin |
77 | rm -rf vendor/matthiasmullie/minify/bin |
Line 80... | Line 84... | ||
80 | if [ -d "_svn" ]; then |
84 | if [ -d "_svn" ]; then |
81 | mv _svn .svn |
85 | mv _svn .svn |
82 | fi |
86 | fi |
83 | 87 | ||
84 | composer license > vendor/licenses |
88 | composer license > vendor/licenses |
- | 89 | ||
- | 90 | # ------- |
|
- | 91 | # Update composer dependencies of plugins |
|
- | 92 | # ------- |
|
- | 93 | ||
- | 94 | composer update -d plugins/viathinksoft/publicPages/100_whois/whois/xml/ |
|
- | 95 | composer license -d plugins/viathinksoft/publicPages/100_whois/whois/xml/ > plugins/viathinksoft/publicPages/100_whois/whois/xml/vendor/licenses |
|
- | 96 | remove_vendor_rubbish plugins/viathinksoft/publicPages/100_whois/whois/xml/ |
|
- | 97 | ||
- | 98 | composer update -d plugins/viathinksoft/publicPages/100_whois/whois/json/ |
|
- | 99 | composer license -d plugins/viathinksoft/publicPages/100_whois/whois/json/ > plugins/viathinksoft/publicPages/100_whois/whois/json/vendor/licenses |
|
- | 100 | remove_vendor_rubbish plugins/viathinksoft/publicPages/100_whois/whois/json/ |