summaryrefslogtreecommitdiff
path: root/scripts/build/binary_tar
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2012-12-19 12:21:09 +0100
committerDaniel Baumann <mail@daniel-baumann.ch>2013-05-06 14:50:03 +0200
commit2a9486d108408006959bb77cac37f9eb0612728a (patch)
tree187ea8854beb1e93e3493d603ba24d9cafa15d06 /scripts/build/binary_tar
parent3cb7d3163af3f3e01bb974a57e71ee68ed1166a9 (diff)
downloadvyos-live-build-2a9486d108408006959bb77cac37f9eb0612728a.tar.gz
vyos-live-build-2a9486d108408006959bb77cac37f9eb0612728a.zip
Using image name from configuration to name binary output files.
Diffstat (limited to 'scripts/build/binary_tar')
-rwxr-xr-xscripts/build/binary_tar17
1 files changed, 8 insertions, 9 deletions
diff --git a/scripts/build/binary_tar b/scripts/build/binary_tar
index 870abec89..e5523012d 100755
--- a/scripts/build/binary_tar
+++ b/scripts/build/binary_tar
@@ -14,7 +14,7 @@ set -e
[ -e "${LIVE_BUILD}/scripts/build.sh" ] && . "${LIVE_BUILD}/scripts/build.sh" || . /usr/lib/live/build.sh
# Setting static variables
-DESCRIPTION="$(Echo 'build harddisk binary image')"
+DESCRIPTION="$(Echo 'build binary tarball')"
HELP=""
USAGE="${PROGRAM} [--force]"
@@ -29,7 +29,7 @@ then
exit 0
fi
-Echo_message "Begin building binary harddisk image..."
+Echo_message "Begin building binary tarball..."
# Requiring stage file
Require_stagefile .build/config .build/bootstrap
@@ -44,25 +44,24 @@ Check_lockfile .lock
Create_lockfile .lock
# Remove old binary
-rm -f binary.tar.bz2 binary.tar.gz binary.tar.lz binary.tar
-
-tar cf binary-tar.tar binary
+rm -f ${LIVE_IMAGE_NAME}.tar.bz2 ${LIVE_IMAGE_NAME}.tar.gz ${LIVE_IMAGE_NAME}.tar.lz ${LIVE_IMAGE_NAME}.tar
+tar cf ${LIVE_IMAGE_NAME}.tar.tar ${LIVE_IMAGE_NAME}.
case "${LB_COMPRESSION}" in
bzip2)
- bzip2 ${BZIP2_OPTIONS} binary-tar.tar
+ bzip2 ${BZIP2_OPTIONS} ${LIVE_IMAGE_NAME}.tar.tar
;;
gzip)
- gzip ${GZIP_OPTIONS} binary-tar.tar
+ gzip ${GZIP_OPTIONS} ${LIVE_IMAGE_NAME}.tar.tar
;;
lzip)
- lzip ${LZIP_OPTIONS} binary-tar.tar
+ lzip ${LZIP_OPTIONS} ${LIVE_IMAGE_NAME}.tar.tar
;;
xz)
- xz ${XZ_OPTIONS} binary-tar.tar
+ xz ${XZ_OPTIONS} ${LIVE_IMAGE_NAME}.tar.tar
;;
none)