-
Notifications
You must be signed in to change notification settings - Fork 8
/
package.sh
executable file
·37 lines (30 loc) · 1.2 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
#!/bin/bash
# collect all jar and binaries to deploy
rm -rf ./linux-dtn
mkdir linux-dtn
mkdir linux-dtn/bin
mkdir linux-dtn/lib
mkdir linux-dtn/modules
mkdir linux-dtn/modules/aa
mkdir linux-dtn/modules/cla
mkdir linux-dtn/modules/core
mkdir linux-dtn/storage
tar xvf linux/terra/build/distributions/terra.tar -C linux-dtn/
mv linux-dtn/terra/bin/* linux-dtn/bin
mv linux-dtn/terra/lib/* linux-dtn/lib
rm -rf linux-dtn/terra/
tar xvf linux/dtnping/build/distributions/dtnping.tar -C linux-dtn/
mv linux-dtn/dtnping/bin/* linux-dtn/bin
mv linux-dtn/dtnping/lib/* linux-dtn/lib
rm -rf linux-dtn/dtnping/
tar xvf linux/dtncat/build/distributions/dtncat.tar -C linux-dtn/
mv linux-dtn/dtncat/bin/* linux-dtn/bin
mv linux-dtn/dtncat/lib/* linux-dtn/lib
rm -rf linux-dtn/dtncat/
cp modules/aa/ldcp/libdtn-module-ldcp/build/libs/libdtn-module-ldcp.jar linux-dtn/modules/aa
cp modules/cla/libdtn-module-stcp/build/libs/libdtn-module-stcp.jar linux-dtn/modules/cla
cp modules/core/libdtn-module-hello/build/libs/libdtn-module-hello.jar linux-dtn/modules/core
cp modules/core/libdtn-module-ipdiscovery/build/libs/libdtn-module-ipdiscovery.jar linux-dtn/modules/core
# tar
tar cvzf ./linux-dtn.tar.gz ./linux-dtn/
rm -rf linux-dtn/