Kaydet (Commit) f780859b authored tarafından Petr Mladek's avatar Petr Mladek

unpack-sources, download: update for .xz source tarballs

üst 0c80ad06
...@@ -73,13 +73,13 @@ if test -z "$start_dir" ; then ...@@ -73,13 +73,13 @@ if test -z "$start_dir" ; then
echo "Error: Please, define where to unpack sources, try --help" echo "Error: Please, define where to unpack sources, try --help"
fi fi
if ! test -d $start_dir/src -a -f $start_dir/solenv/inc/target.mk ; then if ! test -f $start_dir/Repository.mk -a -f $start_dir/solenv/inc/target.mk ; then
echo "Error: $start_dir is not a valid bootstrap directory" echo "Error: $start_dir is not a valid LibreOffice core source directory"
exit 1; exit 1;
fi fi
if test ! -f $start_dir/bootstrap.ver -o -d $start_dir/.git ; then if test ! -f $start_dir/core.ver -o -d $start_dir/.git ; then
echo "Warning: bootstrap sources are from git and not from tarball" echo "Warning: core sources are from git and not from tarball"
echo " Do nothing." echo " Do nothing."
exit 0; exit 0;
fi fi
...@@ -89,17 +89,18 @@ lo_src_dir="$start_dir/src" ...@@ -89,17 +89,18 @@ lo_src_dir="$start_dir/src"
mkdir -p "$lo_src_dir" mkdir -p "$lo_src_dir"
for tarball in $tarballs ; do for tarball in $tarballs ; do
tarname=`basename $tarball | sed -e "s/.tar.bz2//"` tarname=`basename $tarball | sed -e "s/\.tar\..*//"`
if test -d $lo_src_dir/$tarname ; then if test -d $lo_src_dir/$tarname ; then
echo "Warning: $lo_src_dir/$tarname already exists => skipping" echo "Warning: $lo_src_dir/$tarname already exists => skipping"
continue; continue;
fi fi
echo "Unpacking $tarname..." echo "Unpacking $tarname..."
tar -xjf "$tarball" -C "$lo_src_dir" echo tar -xf "$tarball" -C "$lo_src_dir"
tar -xf "$tarball" -C "$lo_src_dir"
# create symlinks # create symlinks for module directories; ignore git-hooks directory
for dir in `find "$lo_src_dir/$tarname" -mindepth 1 -maxdepth 1 -type d -printf "$tarname/%f\n"` ; do for dir in `find "$lo_src_dir/$tarname" -mindepth 1 -maxdepth 1 -type d -path $lo_src_dir/$tarname/git-hooks -o -printf "$tarname/%f\n"` ; do
ln -sf "src/$dir" "$start_dir" ln -sf "src/$dir" "$start_dir"
done done
done done
...@@ -183,17 +183,17 @@ if [ "$COM" = "MSC" ]; then ...@@ -183,17 +183,17 @@ if [ "$COM" = "MSC" ]; then
downloaditem "http://download.microsoft.com/download/a/b/c/abc45517-97a0-4cee-a362-1957be2f24e1/" "WindowsXP-KB975337-x86-ENU.exe" "946d00d87e4094f3a6e425e2d538eadd" downloaditem "http://download.microsoft.com/download/a/b/c/abc45517-97a0-4cee-a362-1957be2f24e1/" "WindowsXP-KB975337-x86-ENU.exe" "946d00d87e4094f3a6e425e2d538eadd"
fi fi
if [ -f $start_dir/bootstrap.ver -a ! -d $start_dir/.git ] ; then if [ -f $start_dir/core.ver -a ! -d $start_dir/.git ] ; then
# bootstrap is from sources, so get the other source tarballs # core is from sources, so get the other source tarballs
. $start_dir/bootstrap.ver . $start_dir/core.ver
lo_src_dir="$start_dir/src" lo_src_dir="$start_dir/src"
mkdir -p "$lo_src_dir" mkdir -p "$lo_src_dir"
for piece in `cat $start_dir/bin/repo-list` ; do for piece in `cat $start_dir/bin/repo-list` ; do
tarname="libreoffice-$piece-$lo_bootstrap_ver" tarname="libreoffice-$piece-$lo_core_ver"
if [ ! -f "$TARFILE_LOCATION/$tarname.tar.bz2" ] ; then if [ ! -f "$TARFILE_LOCATION/$tarname.tar.xz" ] ; then
downloaditem "http://download.documentfoundation.org/libreoffice/src/" "$tarname.tar.bz2" "" downloaditem "http://download.documentfoundation.org/libreoffice/src/" "$tarname.tar.xz" ""
fi fi
$start_dir/bin/unpack-sources $start_dir $TARFILE_LOCATION/$tarname.tar.bz2 $start_dir/bin/unpack-sources $start_dir $TARFILE_LOCATION/$tarname.tar.xz
done done
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment