~ubuntu-branches/ubuntu/karmic/openoffice.org-l10n/karmic

« back to all changes in this revision

Viewing changes to ooo-build/bin/.#transform.1.5

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2006-04-27 19:29:22 UTC
  • Revision ID: james.westby@ubuntu.com-20060427192922-2dburxv3b63f8v0u
Tags: 2.0.2-2ubuntu5
* Copy of the openoffice.org source.
  - debian/control.in: Change source name.
  - debian/changelog: Change source name.
  - debian/control: Regenerate control file.
* Add kurdish translations exported from Rosetta (2006-04-18).
* Workaround bad message strings in recently included GSI files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
#
 
4
# This makes rule re-use without acute pain in 
 
5
# a Makefile possible.
 
6
#
 
7
 
 
8
command=$1
 
9
TOOLSDIR=$2
 
10
OOBUILDDIR=$3;
 
11
 
 
12
FONTMUNGE_FILE=$OOBUILDDIR/officecfg/registry/data/org/openoffice/VCL.xcu
 
13
 
 
14
if test "z$command" = "z--apply"; then
 
15
# apply
 
16
        echo "Munging font mappings ..."
 
17
        cp -a $FONTMUNGE_FILE "$FONTMUNGE_FILE.bak"
 
18
        $TOOLSDIR/bin/font-munge $FONTMUNGE_FILE
 
19
        $TOOLSDIR/bin/help-font-munge $OOBUILDDIR/helpcontent2/source/auxiliary/*/*.css
 
20
        echo "done munging fonts."
 
21
    
 
22
elif test "z$command" = "z--revert"; then
 
23
# revert
 
24
        echo "Revert font mapping munging ..."
 
25
        if test -f $FONTMUNGE_FILE.bak; then
 
26
            mv -f $FONTMUNGE_FILE.bak $FONTMUNGE_FILE;
 
27
        fi
 
28
        for cssfile in $OOBUILDDIR/helpcontent2/source/auxiliary/*/*.css ; do
 
29
            if test -f $cssfile.bak ; then
 
30
                mv -f $cssfile.bak $cssfile;
 
31
            fi;
 
32
        done
 
33
 
 
34
else
 
35
# error / help
 
36
        echo "Unknown option $command; try --apply or --revert <OOBUILDDIR>";
 
37
fi