~timrchavez/live-build/lb-sg-2.x-zsynczsync-fix-take2

« back to all changes in this revision

Viewing changes to scripts/build/lb_binary_tar

  • Committer: Timothy R. Chavez
  • Date: 2013-01-15 18:34:30 UTC
  • mfrom: (1603.1.4 lb-sg-2.x)
  • Revision ID: timothy.chavez@canonical.com-20130115183430-hnwpb3xq8w87spbg
* functions/defaults.sh,
  scripts/build/lb_binary_tar,
  scripts/build/lb_config,
  scripts/build/lb_source_tar
  - Backport LB_COMPRESSION from live-build-3.0~b5-1 to support bzip2 and xz
  compression

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
Create_lockfile .lock
45
45
 
46
46
# Remove old binary
47
 
rm -f binary.tar.gz
 
47
rm -f binary.tar.bz2 binary.tar.gz binary.tar.xz binary.tar
48
48
 
49
49
tar cf binary-tar.tar binary
50
 
gzip ${GZIP_OPTIONS} binary-tar.tar
 
50
 
 
51
case "${LB_COMPRESSION}" in
 
52
        bzip2)
 
53
                bzip2 ${BZIP2_OPTIONS} binary-tar.tar
 
54
                ;;
 
55
 
 
56
        gzip)
 
57
                gzip ${GZIP_OPTIONS} binary-tar.tar
 
58
                ;;
 
59
 
 
60
        xz)
 
61
                xz ${XZ_OPTIONS} binary-tar.tar
 
62
                ;;
 
63
 
 
64
        none)
 
65
                ;;
 
66
esac
51
67
 
52
68
# Creating stage file
53
69
Create_stagefile .stage/binary_tar