forked from Twitter4J/Twitter4J
-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.sh
executable file
·68 lines (54 loc) · 2.67 KB
/
package.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
LANG=C
cd twitter4j-core
mvn clean package -Dmaven.test.skip=true
cd ../twitter4j-examples
mvn clean package -Dmaven.test.skip=true
cd ../twitter4j-httpclient-support
mvn clean package -Dmaven.test.skip=true
cd ..
DIR=twitter4j-$1
mkdir $DIR
mkdir $DIR/twitter4j-core
cp -r twitter4j-core/src $DIR/twitter4j-core/
cp twitter4j-core/build.properties $DIR/twitter4j-core/
cp twitter4j-core/build.xml $DIR/twitter4j-core/
cp twitter4j-core/pom.xml $DIR/twitter4j-core/
mkdir $DIR/twitter4j-examples
cp -r twitter4j-examples/src $DIR/twitter4j-examples/
cp twitter4j-examples/pom.xml $DIR/twitter4j-examples/
cp -r twitter4j-examples/bin $DIR/
cp twitter4j-examples/feedmonitor.properties $DIR/twitter4j-examples/
mkdir $DIR/twitter4j-httpclient-support
cp -r twitter4j-httpclient-support/src $DIR/twitter4j-httpclient-support/
cp twitter4j-httpclient-support/pom.xml $DIR/twitter4j-httpclient-support/
cp pom.xml $DIR/pom.xml
cp LICENSE.txt $DIR/
cp -r powered-by-badge $DIR/
mkdir $DIR/bin/lib
cp ~/.m2/repository/jdom/jdom/1.0/jdom-1.0.jar $DIR/bin/lib
cp ~/.m2/repository/junit/junit/3.8.2/junit-3.8.2.jar $DIR/bin/lib
cp ~/.m2/repository/ch/qos/logback/logback-classic/0.9.9/logback-classic-0.9.9.jar $DIR/bin/lib
cp ~/.m2/repository/ch/qos/logback/logback-core/0.9.9/logback-core-0.9.9.jar $DIR/bin/lib
cp ~/.m2/repository/rome/rome/0.9/rome-0.9.jar $DIR/bin/lib
cp ~/.m2/repository/org/slf4j/slf4j-api/1.5.8/slf4j-api-1.5.8.jar $DIR/bin/lib
cp twitter4j-core/target/twitter4j-core-$1.jar $DIR/
cp twitter4j-core/target/twitter4j-core-$1-sources.jar $DIR/twitter4j-core/
cp twitter4j-core/target/twitter4j-core-$1-javadoc.jar $DIR/twitter4j-core/
mkdir $DIR/twitter4j-core/javadoc/
unzip twitter4j-core/target/twitter4j-core-$1-javadoc.jar -d $DIR/twitter4j-core/javadoc/
cp twitter4j-examples/target/twitter4j-examples-$1.jar $DIR/
mkdir $DIR/twitter4j-examples/javadoc/
unzip twitter4j-examples/target/twitter4j-examples-$1-javadoc.jar -d $DIR/twitter4j-examples/javadoc/
cp twitter4j-httpclient-support/target/twitter4j-httpclient-support-$1-javadoc.jar $DIR/twitter4j-httpclient-support/
cp twitter4j-httpclient-support/target/twitter4j-httpclient-support-$1-sources.jar $DIR/twitter4j-httpclient-support/
cp twitter4j-httpclient-support/target/twitter4j-httpclient-support-$1.jar $DIR/twitter4j-httpclient-support/
mkdir $DIR/twitter4j-httpclient-support/javadoc/
unzip twitter4j-httpclient-support/target/twitter4j-httpclient-support-$1-javadoc.jar -d $DIR/twitter4j-httpclient-support/javadoc/
cd $DIR/
find . -name ".svn" -print -exec rm -rf {} ";"
find . -name ".DS_Store" -print -exec rm -r {} ";"
find . -name ._* -exec rm -r {} ";"
rm ../twitter4j-$1.zip
zip -r ../twitter4j-$1.zip .
cd ..
rm -Rf $DIR