summaryrefslogtreecommitdiff
path: root/scripts/build/lb_source_net
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build/lb_source_net')
-rwxr-xr-xscripts/build/lb_source_net24
1 files changed, 18 insertions, 6 deletions
diff --git a/scripts/build/lb_source_net b/scripts/build/lb_source_net
index aa425c424..319d2a625 100755
--- a/scripts/build/lb_source_net
+++ b/scripts/build/lb_source_net
@@ -49,14 +49,26 @@ Check_lockfile .lock
Create_lockfile .lock
# Remove old source
-if [ -f source-net.tar.gz ]
-then
- rm -f source-net.tar.gz
-fi
+rm -f source-net.tar.bz2 source-net.tar.gz source-net.tar.lz source-net.tar
-# Create tarball
tar cf source-net.tar source
-gzip ${GZIP_OPTIONS} source-net.tar
+
+case "${_COMPRESSION}" in
+ bzip2)
+ bzip2 ${BZIP2_OPTIONS} source-net.tar
+ ;;
+
+ gzip)
+ gzip ${GZIP_OPTIONS} source-net.tar
+ ;;
+
+ lzip)
+ lzip ${LZIP_OPTIONS} source-net.tar
+ ;;
+
+ none)
+ ;;
+esac
# Creating stage file
Create_stagefile .stage/source_net