make source release script more consistent with the binary release part

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/branches/pmd/4.2.x@7253 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Romain Pelisse 2011-09-11 19:17:53 +00:00
parent ba6485bdc7
commit 866eb78393

View File

@ -121,16 +121,14 @@ fi
echo "generating source file ${pmd_top_dir}/pmd-src-${version}.zip" echo "generating source file ${pmd_top_dir}/pmd-src-${version}.zip"
cd ../bin/ ant -f ../bin/build.xml jarsrc
ant jarsrc
cd ..
if [ -z ${no_tags} ]; then if [ -z ${no_tags} ]; then
svn -q export "https://pmd.svn.sourceforge.net/svnroot/pmd/tags/pmd/pmd_release_${release_tag}" "${pmd_src_dir}" svn -q export "https://pmd.svn.sourceforge.net/svnroot/pmd/tags/pmd/pmd_release_${release_tag}" "${pmd_src_dir}"
fi fi
make_tree_structure "${pmd_src_dir}" make_tree_structure "${pmd_src_dir}"
cp "lib/pmd-src-${version}.jar" "${pmd_src_dir}/lib/" cp "../lib/pmd-src-${version}.jar" "${pmd_src_dir}/lib/"
cp "lib/pmd-${version}.jar" "${pmd_src_dir}/lib" cp "../lib/pmd-${version}.jar" "${pmd_src_dir}/lib"
cp -R target/docs "${pmd_src_dir}" cp -R ../target/docs "${pmd_src_dir}"
rm -f "${pmd_src_dir}/etc/clover.license" rm -f "${pmd_src_dir}/etc/clover.license"
cd "${pmd_top_dir}" cd "${pmd_top_dir}"
zip -q -r "pmd-src-${version}.zip" "${pmd_src_dir}" zip -q -r "pmd-src-${version}.zip" "${pmd_src_dir}"