Skip to content
Browse files

java_memcached: remove use of cd

git-svn-id: d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
jmroot committed Oct 6, 2008
1 parent 9785672 commit db55d94aca99e5431870043527191ae41776972d
Showing with 7 additions and 10 deletions.
  1. +7 −10 java/java_memcached/Portfile
@@ -30,28 +30,25 @@ build.cmd ant
build.args -Dver=${version} -Dlog4j=1

build {
cd ${worksrcpath}
system "echo Running: ${build.cmd} ${build.args} jar"
system "${build.cmd} ${build.args} jar"
file copy java_memcached-${version}/java_memcached-${version}.jar ${name}.jar
system "cd ${worksrcpath} && ${build.cmd} ${build.args} jar"
file copy ${worksrcpath}/java_memcached-${version}/java_memcached-${version}.jar ${worksrcpath}/${name}.jar
system "echo Running: ${build.cmd} ${build.args} javadoc"
system "${build.cmd} ${build.args} javadoc"
file rename java_memcached-${version}/javadocs javadocs
system "cd ${worksrcpath} && ${build.cmd} ${build.args} javadoc"
file rename ${worksrcpath}/java_memcached-${version}/javadocs ${worksrcpath}/javadocs

destroot {
cd ${worksrcpath}

set javadir ${destroot}${prefix}/share/java
set docdir ${destroot}${prefix}/share/doc/${name}

xinstall -d -m 755 ${javadir}
xinstall -d -m 755 ${docdir}

file copy ${name}.jar ${javadir}/
file copy javadocs ${docdir}/
file copy ${worksrcpath}/${name}.jar ${javadir}/
file copy ${worksrcpath}/javadocs ${docdir}/

foreach f [glob doc/*] {
foreach f [glob ${worksrcpath}/doc/*] {
file copy ${f} ${docdir}/
file delete -force ${docdir}/CVS

0 comments on commit db55d94

Please sign in to comment.
You can’t perform that action at this time.