[Libreoffice] [PATCH] use the correct tar binary on OpenBSD
Robert Nagy
robert at openbsd.org
Thu Nov 11 12:32:44 PST 2010
---
bin/install-artwork | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/bin/install-artwork b/bin/install-artwork
index 7695e4a..621cde3 100755
--- a/bin/install-artwork
+++ b/bin/install-artwork
@@ -7,6 +7,12 @@ dest=$2
echo "do artwork tweaks ..."
+if test "z`uname -s`" = "zOpenBSD"; then
+ TAR=gtar
+else
+ TAR=tar
+fi
+
if test -d $dest/setup_native; then
mkdir -p $dest/setup_native/source/win32/nsis
cp $src/ooobitmap_*.bmp $dest/setup_native/source/win32/nsis/ || echo "no nsis installer images to copy"
@@ -43,7 +49,7 @@ if test -d $dest/default_images; then
cp $src/layout/*.png $dest/default_images/res/commandimagelist
cp $src/layout/*.png $dest/ooo_custom_images/industrial/res/commandimagelist
cp $src/layout/*.png $dest/ooo_custom_images/tango/res/commandimagelist
- tar -C $src/layout --exclude=.svn -cf- default_images ooo_custom_images | tar -C $dest -xf-
+ ${TAR} -C $src/layout --exclude=.svn -cf- default_images ooo_custom_images | tar -C $dest -xf-
# Extra command images
cp -f $src/icons/*.png $dest/default_images/res/commandimagelist/ || exit 1
--
1.7.3.1
More information about the LibreOffice
mailing list