fix inconsistency in variable uses

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/branches/pmd/4.2.x@7249 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Romain Pelisse 2011-09-11 19:16:46 +00:00
parent 384cfa8bcd
commit 260e0730b7

View File

@ -99,7 +99,7 @@ mkdir "${pmd_bin_dir}/etc/xslt"
cp xslt/*.xslt xslt/*.js xslt/*.gif xslt/*.css "${pmd_bin_dir}/etc/xslt/"
cp -R ../target/docs "${pmd_bin_dir}"
cd "${pmd_top_dir}"
zip -q -r "pmd-bin-${version}.zip pmd-${version}/"
zip -q -r "pmd-bin-${version}.zip" "${pmd_bin_dir}"
cd -
echo "binary package generated"
@ -116,18 +116,18 @@ fi
echo "generating source file ${pmd_top_dir}/pmd-src-${version}.zip"
rm -rf "${pmd_src_dir}"
rm -f "${pmd_top_dir}/pmd-src-${version}.zip"
cd ../bin/
ant jarsrc
cd ..
svn -q export "https://pmd.svn.sourceforge.net/svnroot/pmd/tags/pmd/pmd_release_${release_tag}" "${pmd_src_dir}"
if [ -z ${no_tags} ]; then
svn -q export "https://pmd.svn.sourceforge.net/svnroot/pmd/tags/pmd/pmd_release_${release_tag}" "${pmd_src_dir}"
fi
cp "lib/pmd-src-${version}.jar" "${pmd_src_dir}/lib/"
cp "lib/pmd-${version}.jar" "${pmd_src_dir}/lib"
cp -R target/docs "${pmd_src_dir}"
rm -f "${pmd_src_dir}/etc/clover.license"
cd "${pmd_top_dir}"
zip -q -r "pmd-src-${version}.zip" "pmd-${version}/"
zip -q -r "pmd-src-${version}.zip" "${pmd_src_dir}"
cd -
echo "source package generated"