diff options
author | Petr Mladek <pmladek@suse.cz> | 2011-07-08 11:54:23 +0200 |
---|---|---|
committer | Petr Mladek <pmladek@suse.cz> | 2011-07-11 20:29:28 +0200 |
commit | 19111fe556a28befac2bc364fd4d8b5ec5c8c348 (patch) | |
tree | 3f187b36702f62cbebb72b99be2f9ea5308c994e /download | |
parent | 37ee380b28186f8ac07b05d084803c6e2cbe3884 (diff) |
bin/unpack-sources: new helper script for packaging LO
move the source tarball unpacking from "download" into a separate
script that could be called offline during LO packaging
Signed-off-by: Michael Meeks <michael.meeks@novell.com>
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Bjoern Michaelsen <bjoern.michaelsen@gmail.com>
Diffstat (limited to 'download')
-rwxr-xr-x | download | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -212,14 +212,7 @@ if [ -f $start_dir/bootstrap.ver -a ! -d $start_dir/.git ] ; then if [ ! -f "$TARFILE_LOCATION/$tarname.tar.bz2" ] ; then downloaditem "http://download.documentfoundation.org/libreoffice/src/" "$tarname.tar.bz2" "" fi - if [ ! -d $lo_src_dir/$tarname ] ; then - echo "Unpacking $tarname.tar.bz2..." - tar -xf "$TARFILE_LOCATION/$tarname.tar.bz2" -C "$lo_src_dir" - fi - # create symlinks - for dir in `find "$lo_src_dir/$tarname" -mindepth 1 -maxdepth 1 -type d` ; do - ln -sf "$dir" "$start_dir" - done + $start_dir/bin/unpack-sources $start_dir $TARFILE_LOCATION/$tarname.tar.bz2 done fi |