source: make-mini-image/config/90-compress @ 2905

Last change on this file since 2905 was 1751, checked in by mabarracus, 4 years ago

Add Initial Release

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