forked from rsmudge/armitage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.sh
executable file
·63 lines (53 loc) · 1.02 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
#!/bin/bash
#
# I know Apache Ant does all of this stuff... I hate working with XML though
#
rm -f armitage.zip
rm -f armitage.tgz
ant clean
ant compile
cp -r resources/ bin/
cp -r scripts/ bin/
rm -rf bin/*/*/.svn
rm -rf bin/*/.svn
ant jar
#
# build *NIX package
#
mkdir armitage
cp armitage.jar armitage
cp cortana.jar armitage
cp readme.txt armitage
cp whatsnew.txt armitage
cp -r dist/unix/* armitage
# kill the silly .svn file
rm -rf armitage/.svn
tar zcvf armitage.tgz armitage
rm -rf armitage
#
# build Windows package
#
mkdir armitage
cp -r dist/windows/* armitage
cp armitage.jar armitage/
cp cortana.jar armitage/
cp readme.txt armitage/readme.txt
cp whatsnew.txt armitage/whatsnew.txt
# kill that silly .svn file
rm -rf armitage/.svn
rm -rf armitage/*/*/.svn
rm -rf armitage/*/.svn
cd armitage
zip -r ../armitage.zip .
cd ..
rm -rf armitage
#
# update the release directory
#
cd release/
tar zxvf ../armitage.tgz
mv armitage/* armitage-unix
rm -rf armitage
cd ../release/
cd armitage-windows
unzip -o ../../armitage.zip