aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-04-16 20:16:03 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-04-16 20:16:03 +0200
commit013cc2c66f4ca594e8ffa09511d054604ac615e5 (patch)
tree78436a4789013912085236888fa23f960da3e1fb /build
parent8d012197f4ef345210e8b35760f3bcfd59018cc6 (diff)
downloadforums-013cc2c66f4ca594e8ffa09511d054604ac615e5.tar
forums-013cc2c66f4ca594e8ffa09511d054604ac615e5.tar.gz
forums-013cc2c66f4ca594e8ffa09511d054604ac615e5.tar.bz2
forums-013cc2c66f4ca594e8ffa09511d054604ac615e5.tar.xz
forums-013cc2c66f4ca594e8ffa09511d054604ac615e5.zip
[ticket/12390] Move cleaning of vendor into it's own target
PHPBB3-12390
Diffstat (limited to 'build')
-rw-r--r--build/build.xml26
1 files changed, 16 insertions, 10 deletions
diff --git a/build/build.xml b/build/build.xml
index ea12e60e3c..c1f81fb947 100644
--- a/build/build.xml
+++ b/build/build.xml
@@ -273,6 +273,22 @@
<delete dir="${dir}/develop" />
<delete dir="${dir}/install/data" />
+ <phingcall target="clean-vendor-dir">
+ <property name="dir" value="${dir}" />
+ </phingcall>
+
+ <echo msg="Setting permissions for checkout of ${revision} in ${dir}" />
+ <!-- set permissions of all files to 644, directories to 755 -->
+ <exec dir="${dir}" command="find . -type f|xargs chmod 644" escape="false" />
+ <exec dir="${dir}" command="find . -type d|xargs chmod 755" escape="false" />
+ <!-- set permissions of some directories to 777 -->
+ <chmod mode="0777" file="${dir}/cache" />
+ <chmod mode="0777" file="${dir}/store" />
+ <chmod mode="0777" file="${dir}/files" />
+ <chmod mode="0777" file="${dir}/images/avatars/upload" />
+ </target>
+
+ <target name="clean-vendor-dir">
<!-- Delete unrelated files from vendor/, see PHPBB3-12390 -->
<delete dir="${dir}/vendor/lusitanian/oauth/examples" />
<delete dir="${dir}/vendor/lusitanian/oauth/tests" />
@@ -355,16 +371,6 @@
<delete file="${dir}/vendor/twig/twig/CHANGELOG" />
<delete file="${dir}/vendor/twig/twig/phpunit.xml.dist" />
<delete file="${dir}/vendor/twig/twig/README.markdown" />
-
- <echo msg="Setting permissions for checkout of ${revision} in ${dir}" />
- <!-- set permissions of all files to 644, directories to 755 -->
- <exec dir="${dir}" command="find . -type f|xargs chmod 644" escape="false" />
- <exec dir="${dir}" command="find . -type d|xargs chmod 755" escape="false" />
- <!-- set permissions of some directories to 777 -->
- <chmod mode="0777" file="${dir}/cache" />
- <chmod mode="0777" file="${dir}/store" />
- <chmod mode="0777" file="${dir}/files" />
- <chmod mode="0777" file="${dir}/images/avatars/upload" />
</target>
<target name="clean-diff-dir">