Last change
on this file since 1751 was
1751,
checked in by mabarracus, 5 years ago
|
Add Initial Release
|
-
Property svn:executable set to
*
|
File size:
520 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | set -e |
---|
3 | |
---|
4 | source CONFIG |
---|
5 | source functions |
---|
6 | |
---|
7 | ensure BASE NAME |
---|
8 | |
---|
9 | mv ./${BASE}/${NAME} ./${BASE}/mini-light-client |
---|
10 | |
---|
11 | CUR_DIR=$(pwd) |
---|
12 | |
---|
13 | pushd ./${BASE} &> /dev/null |
---|
14 | |
---|
15 | OPTS="" |
---|
16 | |
---|
17 | if [ "x${VERBOSE}" = "x1" ]; then |
---|
18 | OPTS="-v" |
---|
19 | fi |
---|
20 | |
---|
21 | echo -n "Compressig mini-light-client.tar.lzma ..." |
---|
22 | tar -c ${OPTS} --lzma -f ${CUR_DIR}/mini-light-client.tar.lzma mini-light-client |
---|
23 | |
---|
24 | if [ "$?" != "0" ]; then |
---|
25 | exit 1 |
---|
26 | fi |
---|
27 | |
---|
28 | SIZE=$(ls -lh ${CUR_DIR}/mini-light-client.tar.lzma | cut -d' ' -f5) |
---|
29 | |
---|
30 | echo "SIZE=${SIZE}" |
---|
31 | |
---|
32 | popd &> /dev/null |
---|
33 | |
---|
34 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.