Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 43 lines (39 sloc) 1.835 kb
cp pom.xml pom.$1.xml
sed -i '' "s/<version>.*SNAPSHOT<\/version>/<version>$1<\/version>/g" pom.$1.xml
sed -i '' "s/version=.*$/version=twitter4j-$1/g"
mvn -f pom.$1.xml install -Dmaven.test.skip=true
mkdir $DIR
cp -r src $DIR/
cp pom.$1.xml $DIR/pom.xml
cp $DIR/
cp $DIR/
cp build.xml $DIR/
cp LICENSE.txt $DIR/
cp -r bin $DIR/
cp -r lib $DIR/
cp target/twitter4j-$1.jar $DIR/
cp target/twitter4j-$1-sources.jar $DIR/
cp target/twitter4j-$1-javadoc.jar $DIR/
javadoc -windowtitle Twitter4J-$1 -sourcepath src/main/java twitter4j twitter4j.http -d ../twitter4j-site/site/javadoc
mkdir twitter4j-$1/doc/
cp -r ../twitter4j-site/site/javadoc/* twitter4j-$1/doc/
cd $DIR/
find . -name ".svn" -print -exec rm -rf {} ";"
find . -name ".DS_Store" -print -exec rm -r {} ";"
find . -name ._* -exec rm -r {} ";"
zip -r ../twitter4j-$ .
#cd bin
#sed -i '' "s/VERSION/$1/g"
#sed -i '' "s/VERSION/$1/g" setEnv.cmd
cd ..
cp twitter4j-$ ../twitter4j-site/site/
#mvn deploy -Dmaven.test.skip=true
#cd target
rm twitter4j-$
rm -Rf twitter4j-$1
rm pom.$1.xml
#mvn deploy:deploy-file -DgroupId=net.homeip.yusuke -DartifactId=twitter4j -Dversion=$1 -Dpackaging=jar -Dfile=twitter4j-$1.jar -DgeneratePom=true -Durl=file:/Users/yusukey/maven2
#mvn deploy:deploy-file -DgroupId=net.homeip.yusuke -DartifactId=twitter4j -Dversion=$1 -Dpackaging=jar -Dfile=twitter4j-$1.jar -DgeneratePom=true -Durl=file:/Users/yusukey/maven2 -Dclassifier=source
#mvn deploy:deploy-file -DgroupId=net.homeip.yusuke -DartifactId=twitter4j -Dversion=$1 -Dpackaging=jar -Dfile=twitter4j-$1.jar -DgeneratePom=true -Durl=file:/Users/yusukey/maven2 -Dclassifier=javadoc
Jump to Line
Something went wrong with that request. Please try again.