summaryrefslogtreecommitdiff
path: root/scripts/build/source_tar
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2012-12-19 12:41:02 +0100
committerDaniel Baumann <mail@daniel-baumann.ch>2013-05-06 14:50:03 +0200
commitef1ab80c70a8a492f87bbb76dffac9c10811a24d (patch)
tree0d6937f2aea46afa3e49986712c1dfdf3fada483 /scripts/build/source_tar
parent36d36414d89fe376030c40f59a2f8d5b3229316d (diff)
downloadvyos-live-build-ef1ab80c70a8a492f87bbb76dffac9c10811a24d.tar.gz
vyos-live-build-ef1ab80c70a8a492f87bbb76dffac9c10811a24d.zip
Using image name from configuration to name source output files.
Diffstat (limited to 'scripts/build/source_tar')
-rwxr-xr-xscripts/build/source_tar24
1 files changed, 12 insertions, 12 deletions
diff --git a/scripts/build/source_tar b/scripts/build/source_tar
index 0ef302e44..38ca0696e 100755
--- a/scripts/build/source_tar
+++ b/scripts/build/source_tar
@@ -50,31 +50,31 @@ Check_lockfile .lock
Create_lockfile .lock
# Remove old source
-rm -f source.debian.tar.bz2 source.debian.tar.gz source.debian.tar.lz source.debian.tar
-rm -f source.debian-live.tar.bz2 source.debian-live.tar.gz source.debian-live.tar.lz source.debian-live.tar
+rm -f ${LIVE_IMAGE_NAME}-source.debian.tar.bz2 ${LIVE_IMAGE_NAME}-source.debian.tar.gz ${LIVE_IMAGE_NAME}-source.debian.tar.lz ${LIVE_IMAGE_NAME}-source.debian.tar
+rm -f ${LIVE_IMAGE_NAME}-source.debian-live.tar.bz2 ${LIVE_IMAGE_NAME}-source.debian-live.tar.gz ${LIVE_IMAGE_NAME}-source.debian-live.tar.lz ${LIVE_IMAGE_NAME}-source.debian-live.tar
-tar cf source.debian.tar source/debian
-tar cf source.debian-live.tar source/debian-live
+tar cf ${LIVE_IMAGE_NAME}-source.debian.tar source/debian
+tar cf ${LIVE_IMAGE_NAME}-source.debian-live.tar source/debian-live
case "${LB_COMPRESSION}" in
bzip2)
- bzip2 ${BZIP2_OPTIONS} source.debian.tar
- bzip2 ${BZIP2_OPTIONS} source.debian-live.tar
+ bzip2 ${BZIP2_OPTIONS} ${LIVE_IMAGE_NAME}-source.debian.tar
+ bzip2 ${BZIP2_OPTIONS} ${LIVE_IMAGE_NAME}-source.debian-live.tar
;;
gzip)
- gzip ${GZIP_OPTIONS} source.debian.tar
- gzip ${GZIP_OPTIONS} source.debian-live.tar
+ gzip ${GZIP_OPTIONS} ${LIVE_IMAGE_NAME}-source.debian.tar
+ gzip ${GZIP_OPTIONS} ${LIVE_IMAGE_NAME}-source.debian-live.tar
;;
lzip)
- lzip ${LZIP_OPTIONS} source.debian.tar
- lzip ${LZIP_OPTIONS} source.debian-live.tar
+ lzip ${LZIP_OPTIONS} ${LIVE_IMAGE_NAME}-source.debian.tar
+ lzip ${LZIP_OPTIONS} ${LIVE_IMAGE_NAME}-source.debian-live.tar
;;
xz)
- xz ${XZ_OPTIONS} source.debian.tar
- xz ${XZ_OPTIONS} source.debian-live.tar
+ xz ${XZ_OPTIONS} ${LIVE_IMAGE_NAME}-source.debian.tar
+ xz ${XZ_OPTIONS} ${LIVE_IMAGE_NAME}-source.debian-live.tar
;;
none)