summaryrefslogtreecommitdiff
path: root/bin/package-ooo
diff options
context:
space:
mode:
Diffstat (limited to 'bin/package-ooo')
-rwxr-xr-xbin/package-ooo21
1 files changed, 16 insertions, 5 deletions
diff --git a/bin/package-ooo b/bin/package-ooo
index 44e3c8087..4f14725e3 100755
--- a/bin/package-ooo
+++ b/bin/package-ooo
@@ -145,9 +145,11 @@ echo "Building $OOINSTDIR/program/java-set-classpath";
sed -e "s|@OOINSTBASE@|$OOINSTBASE|g" $TOOLSDIR/bin/java-set-classpath.in >| "$OOBUILDDIR/java-set-classpath" || exit 1;
install_script $OOBUILDDIR/java-set-classpath $OOINSTDIR/program/java-set-classpath
-echo "Building $OOINSTDIR/program/pyunorc-update64";
-sed -e "s|@OOINSTBASE@|$OOINSTBASE|g" $TOOLSDIR/bin/pyunorc-update64.in >| "$OOBUILDDIR/pyunorc-update64" || exit 1;
-install_script $OOBUILDDIR/pyunorc-update64 $OOINSTDIR/program/pyunorc-update64
+if test "`uname -i`" = "i386" ; then
+ echo "Building $OOINSTDIR/program/pyunorc-update64";
+ sed -e "s|@OOINSTBASE@|$OOINSTBASE|g" $TOOLSDIR/bin/pyunorc-update64.in >| "$OOBUILDDIR/pyunorc-update64" || exit 1;
+ install_script $OOBUILDDIR/pyunorc-update64 $OOINSTDIR/program/pyunorc-update64
+fi
echo "Installing extra en-US templates ..."
mkdir -p $OOINSTDIR/share/template/en-US/forms
@@ -483,13 +485,14 @@ if test "z$VENDORNAME" != "zDebian" ; then
# Nasty hack for now...
echo "$OOINSTBASE/install-dict
$OOINSTBASE/program/java-set-classpath
- $OOINSTBASE/program/pyunorc-update64
- $OOINSTBASE/program/liblnth680l?.so
%dir $OOINSTBASE/share/template/en-US/forms
$OOINSTBASE/share/template/en-US/forms/resume.ott
%dir $OOINSTBASE/share/template/en-US/officorr
$OOINSTBASE/share/template/en-US/officorr/project-proposal.ott" > gid_Module_Hack
+ test -f $OOINSTDIR/program/pyunorc-update64 && \
+ echo $OOINSTBASE/program/pyunorc-update64 >> gid_Module_Hack
+
cat gid_Module_Optional_Grfflt \
gid_Module_Prg_Base \
gid_Module_Prg_Calc \
@@ -784,6 +787,14 @@ if test "z$VENDORNAME" = "zRedHat" ; then
done
fi
+# fix permissions
+echo "Fixing permissions..."
+if test -d "$DOCDIR" -a -w "$DOCDIR" ; then
+ find $DOCDIR -type f \( -name "*.txt" -o -name "*.gif" -o -name "*.png" -o \
+ -name "*.jpg" -o -name "*.html" -o -name "*.pdf" -o \
+ -name "*.ps" \) -exec chmod 644 {} \;
+fi
+
if test "z$OODESTDIR" != "z" ; then
echo "Checking for DESTDIR inside installed files..."
found_destdir=