diff options
author | Petr Mladek <pmladek@suse.cz> | 2011-04-11 16:08:00 +0200 |
---|---|---|
committer | Petr Mladek <pmladek@suse.cz> | 2011-04-11 16:08:00 +0200 |
commit | f89b46fc3ad8d65b268dcb162d81a048b1e5ec93 (patch) | |
tree | 1bfba0a68ec6f9e1ff6addc3fc5e5f702eda7e28 /download | |
parent | 81b92021673b6f9bd72ddddce57af3bccbbf8251 (diff) |
allow to download and unpack official source tarballs
Diffstat (limited to 'download')
-rwxr-xr-x | download | 23 |
1 files changed, 22 insertions, 1 deletions
@@ -141,7 +141,7 @@ downloaditem() failed="$failed $2" wret=0 fi - if [ -f $2 -a -n "$md5sum" ]; then + if [ -f $2 -a -n "$3" -a -n "$md5sum" ]; then sum=`$md5sum $md5special $2 | sed "s/ .*//"` if [ "$sum" != "$3" ]; then echo checksum failure for $2 2>&1 | tee -a $logfile @@ -190,6 +190,27 @@ if [ "$GUI" = "WNT" ]; then fi +if [ -f $start_dir/bootstrap.ver -a ! -d $start_dir/.git ] ; then + # bootstrap is from sources, so get the other source tarballs + . $start_dir/bootstrap.ver + lo_src_dir="$start_dir/src" + mkdir -p "$lo_src_dir" + for piece in `cat $start_dir/bin/repo-list` ; do + tarname="libreoffice-$piece-$lo_bootstrap_ver" + 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 + done +fi + rm $TARFILE_LOCATION/tmp/*-* cd $start_dir |