summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobody <nobody@gnome.org>2003-11-11 15:31:39 +0000
committernobody <nobody@gnome.org>2003-11-11 15:31:39 +0000
commit213d6693b126c3735ba8dd8d4d44f20a30f2b961 (patch)
treec1324965400ab99b21fe5c6ca0f5231a3635b1af
parent0d825e4719ae46a5fed515306be7a42b3cf0cd6d (diff)
This commit was manufactured by cvs2svn to create tag 'LAST_TRACED'.LAST_TRACED
-rw-r--r--HACKING8
-rw-r--r--MAINTAINERS2
-rw-r--r--Makefile.am18
-rw-r--r--NEWS245
-rw-r--r--TODO175
-rwxr-xr-xautogen.sh11
-rw-r--r--bin/.cvsignore5
-rw-r--r--bin/Makefile.am20
-rw-r--r--bin/README35
-rwxr-xr-xbin/analyse-link66
-rwxr-xr-xbin/build-ooo313
-rwxr-xr-xbin/catch-endif45
-rwxr-xr-xbin/install-dict.in302
-rwxr-xr-xbin/install-dictionaries114
-rwxr-xr-xbin/install-maps65
-rwxr-xr-xbin/latest-patchset33
-rwxr-xr-xbin/linkoo274
-rwxr-xr-xbin/map-unused.pl54
-rwxr-xr-xbin/nothing3
-rwxr-xr-xbin/ooo-wrapper.in269
-rwxr-xr-xbin/oostripimpl.pl24
-rwxr-xr-xbin/ootouch63
-rwxr-xr-xbin/openoffice-xlate-lang135
-rwxr-xr-xbin/package-lang198
-rwxr-xr-xbin/package-ooo141
-rwxr-xr-xbin/re-root76
-rwxr-xr-xbin/relocate116
-rwxr-xr-xbin/reorder-link136
-rwxr-xr-xbin/scale-icons179
-rwxr-xr-xbin/setup.in128
-rwxr-xr-xbin/snapshot-build38
-rwxr-xr-xbin/tinder-build106
-rwxr-xr-xbin/tunnel1
-rwxr-xr-xbin/unused.pl205
-rw-r--r--desktop/.cvsignore10
-rw-r--r--desktop/Makefile.am10
-rw-r--r--desktop/drawing.desktop.in11
-rw-r--r--desktop/drawing1.1.desktop.in12
-rw-r--r--desktop/presentation.desktop.in11
-rw-r--r--desktop/presentation1.1.desktop.in12
-rw-r--r--desktop/spreadsheet.desktop.in12
-rw-r--r--desktop/spreadsheet1.1.desktop.in12
-rw-r--r--desktop/textdoc.desktop.in12
-rw-r--r--desktop/textdoc1.1.desktop.in14
-rw-r--r--desktop/ximian-openoffice-calc.pngbin3663 -> 0 bytes
-rw-r--r--desktop/ximian-openoffice-draw.pngbin3616 -> 0 bytes
-rw-r--r--desktop/ximian-openoffice-impress.pngbin3806 -> 0 bytes
-rw-r--r--desktop/ximian-openoffice-math.pngbin3077 -> 0 bytes
-rw-r--r--desktop/ximian-openoffice-template.pngbin3158 -> 0 bytes
-rw-r--r--desktop/ximian-openoffice-web.pngbin3508 -> 0 bytes
-rw-r--r--desktop/ximian-openoffice-writer.pngbin4180 -> 0 bytes
-rw-r--r--doc/.cvsignore2
-rw-r--r--doc/Makefile.am2
-rw-r--r--doc/README9
-rw-r--r--doc/accessibility.txt26
-rw-r--r--doc/alpha-rework.txt59
-rw-r--r--doc/announce.txt26
-rw-r--r--doc/cuckooo.txt98
-rw-r--r--doc/filepicker.txt52
-rw-r--r--doc/gtk-integration.txt83
-rw-r--r--doc/layout-overview.txt61
-rw-r--r--doc/layout.txt208
-rw-r--r--doc/print-integration.txt62
-rw-r--r--doc/symbol-font.txt33
-rwxr-xr-xdownload66
-rw-r--r--etc/.cvsignore2
-rw-r--r--etc/Makefile.am1
-rw-r--r--etc/autoresponse.conf7
-rw-r--r--etc/autoresponse1.1.conf7
-rwxr-xr-xintltool-merge.in933
-rw-r--r--man/.cvsignore2
-rw-r--r--man/Makefile.am2
-rw-r--r--man/openoffice.1.in116
-rw-r--r--ooo1.1.spec.in193
74 files changed, 0 insertions, 5769 deletions
diff --git a/HACKING b/HACKING
deleted file mode 100644
index 722266980..000000000
--- a/HACKING
+++ /dev/null
@@ -1,8 +0,0 @@
-Please do not commit patches here, unless you have signed the JCA:
-
- http://www.openoffice.org/FAQs/faq-licensing.html#usinglicenses
-
-and intend to contribute the code to the OO.o mainline.
-
-These patches are merely in a holding / re-factoring pattern
-before they can be merged into OO.o.
diff --git a/MAINTAINERS b/MAINTAINERS
deleted file mode 100644
index 93c437bf9..000000000
--- a/MAINTAINERS
+++ /dev/null
@@ -1,2 +0,0 @@
-michael@ximian.com
-halls@debian.org
diff --git a/Makefile.am b/Makefile.am
deleted file mode 100644
index 33066982f..000000000
--- a/Makefile.am
+++ /dev/null
@@ -1,18 +0,0 @@
-if BONOBO
- MAYBE_BONOBO = bonobo
-endif
-
-SUBDIRS = po desktop bin etc patches man doc fonts www $(MAYBE_BONOBO)
-
-
-EXTRA_DIST = \
- emacs.el \
- mkinstalldirs \
- MAINTAINERS \
- HACKING \
- download \
- intltool-merge.in \
- intltool-update.in \
- intltool-extract.in
-
-ACLOCAL_AMFLAGS = -I m4
diff --git a/NEWS b/NEWS
deleted file mode 100644
index 458e9cb2f..000000000
--- a/NEWS
+++ /dev/null
@@ -1,245 +0,0 @@
-ooo-build-1.1.46
-
- + features
- + UI fixes
- + much improved OpenSymbol font (Jimmac)
- + improved font mapping (Dan, Michael)
- + more style navigator icons (Tigert)
- + nicer looking ruler scaling (Michael)
- + don't grey bullets as fields (Michael)
- + prune some ugly symbols (Anil Bhatia)
- + System bits
- + 3 new targets: RHFedora, RHTaroon, RHShrike (Dan)
- + --with-installed-ooo-dirname (Dan)
- + system libdb integration (Dan)
- + faster help linkage (Dan)
- + OOO_FORCE_DESKTOP flag (Michael, Philipp L, Chris)
- + use OOO_MS_DEFAULTS env. var (Michael)
- + use fork for 2.6 kernels (Ken Foskey, Rene)
- + Red Hat specific patches (Dan, et. al)
- + nautilus/VFS integration bits
- + system neon fix
- + libart cut/paste for old systems
- + system freetype re-hash
- + bug fixes
- + critical
- + parallel / build script fixes (Dan)
- + svx lockup fix (Dan)
- + impress I/O error fix (Martin)
- + help / language fallback issue (Chris)
- + misc
- + re-root - only scan CVS dirs (Michael)
- + missing MySQL data source fix (Rene)
- + uno asm fixes (Dan)
- + svtools build deps fix (Michael)
- + improved default font size (Chris)
-
-
-ooo-build-1.1.45
-
- + features
- + build without Java (Josh Triplett)
- + tweaks
- + improved rename ergonomics (Jayant Madavi)
- + set TYPE_UTILITY on utility windows (Michael)
- + KDE font size/integration improvements (Chris)
- + larger default font in non-Gnome/KDE WM (Chris)
- + optional dmake build (Rene)
- + conditionalized fontconfig use (Rene)
- + i18n honours LC_CTYPE (Michael)
- + alpha compositing speedups (Michael)
- + disable style-list popup on 1st run (Michael)
- + improved icon scaling helper (Martin K)
- + build infrastructure
- + improved patch descriptons (Michael, Martin)
- + simple CVS re-rooting tool (Michael)
- + deliver hard links to save space (Chris, Michael)
- + bug fixes
- + MS bullet export problems (Michael, Will Lachance)
- + fix running setup within a mount --bind tree (Chris)
- + evolution addressbook i18n fix (Martin K)
-
-
-ooo-build-1.1.44
-
- + features
- + new, sized, alpha fixed icons (Tigert, Jimmac)
- + scroll-wheel quickhelp less annoying (Michael)
- + system-zlib, system-getopt (from Mdk, Rene)
- + nice bonobo component (Martin Kretzchmar)
- + configure with --enable-bonobo
- + bug fixes
- + relocate now prunes stale .dpcc files (Michael)
- + problems in toolbox customize (Michael)
- + --with-system-gcc fix (Michael, Robin Cook)
- + print-scale fix (Dan Williams, Michael)
- + File->New i18n fix (Michael)
-
-ooo-build-1.1.43
-
- + features
- + more database etc. icons (Tigert, Jimmac)
- + drop the 1.1 bin-suffix
- + 'word count' translations (Martin, Gwenole B)
- + debian-specific splash (Rene)
- + binutils patch to speedup ld (Dirk Mueller, Michael)
- + bug fixes
- + lots of alpha problems fixed (Michael)
- + initialize some values (Julian Seward)
- + File->New/Autopilot menu i18n (Martin)
- + sparc linux build fixes (Chris)
- + bind mount setup fix (Chris)
- + use unzip not jar for building (Rene)
- + linkoo handles iso.res vs ooo.res (Michael)
- + fontconfig crasher bug (Michael)
- + fixes to mozilla disabling bits (Martin)
- + clobber irritating raise-on-load bits (Michael)
- + Debian specific
- + disable odk build [ non free stuff ] (Rene)
- + fontconfigize padmin (Chris)
- + use more Ximian patches in Debian builds (Chris)
-
-ooo-build-1.1.42
-
- + features
- + pull up to OO.o 1.1.0 final
- + loads more nice icons (Tigert, Jimmac)
- + slower & cleaner alpha rendering (Michael)
- + nicer toolbox item prelight (Michael)
- + bug fixes (Michael)
- + PDF export / font-subsetting
- + setup LD_LIBRARY_PATH problems (Anders)
- + 2nd time oddness with -writer flag
- + server render splash pixmap
- + use the right branded icon set
-
-ooo-build-1.1.40
-
- + features
- + switch to the RC4 tree (Michael)
- + more icons / better coverage (Jimmac)
- + bug fixes
- + LD_LIBRARY_PATH installer issue (Anders)
- + correct palette pop-down (Michael, Philipp L)
- + sensible coluor palette sizing (Michael)
- + system font sync fix (Michael)
- + updated magicpoint users help (Michael)
- + web fixes (Julian Seward)
- + translations (last few releases)
- + da (Kenneth Christiansen)
- + sr (Danilo Segan)
- + fr (Christophe Merlet)
- + ca (Jordi Mallach)
- + vi,wa (Pablo Saratxaga)
- + pl (Artur Flinta)
- + nl (Vincent van Adrighem)
- + cs (Miloslav Trmac)
- + pt (Duarte Loreto)
-
-ooo-build-1.1.39
-
- + features
- + switch to the RC3 tree (Michael)
- + bug fixes
- + font munging fixes (Michael)
- + wrapper cleans (Michael)
- + improved patching fuzziness (Michael)
- + more word count translations (Martin)
- + crashdump build fixes (Michael)
- + bin MS format default duplication (Michael)
-
-ooo-build-1.1.38
- + bug fixes
- + vicious bindings crasher (Michael)
- + export 'no color' bg to .doc (Chris)
- + source EOF massage (Chris)
- + build fixes (Michael, Martin)
- + features
- + elisp for OO.o source (Martin)
- + pending
- + improved gtk+ integration
- + layout prototype
-
-ooo-build-1.1.37
- + bug fixes
- + metric font mappings for XD2 fonts (Michael)
- + ccache fixes (Anders Carlsson)
- + word count fixes (Martin Kretzschmar)
- + crashdump strangeness (Michael)
- + misc. build fixes (Michael, Chris, Martin)
- + features
- + save 1.5Gb in lang-pack (Chris, Michael)
- + toolbox (Martin)
- + pretty zoom combo
- + death of URL combo
- + translated .desktop files (Carlos Perelló Marín)
- + de (Christian neumair)
- + da (Ole Laursen)
- + zh (Abel Cheung)
- + de (Martin)
- + no (Kjartan Maraas)
- + sv (Christian Rose)
- + sq (Laurent Dhima)
- + es (Carlos)
- + Man pages (Rene Engelhard)
- + beep far less (Michael)
- + build bits
- + conditionals/paths (Michael)
- + much improved patching (Chris)
- + --with-system-gcc (Michael)
- + disable broken moz bits (Michael)
- + linkoo improvements (Martin)
- + Gnome/gtk+ build fixage (Rene)
- + build less of gcc (Nick Hudson)
- + Debian patches merged (Chris, Rene, Martin)
- + config switch expansion, bin lzwc
- + drop rpaths, sal_debug, stlport dynlink
- + html fix, system python/aclocal
- + shrink perl wrapper (Michael)
- + obey LANG env.
- + obey 'COMPATIBLE' for MS export.
- + html export (Michael)
- + nicer icons (Jimmac)
- + export .png not .gif
- + pending (Michael)
- + glib/gtk+ loop integration
- + some layout bits.
-
-ooo-build-1.1.35
- + bug fixes
- + fix wrapper symlinkage / Makefile cruft.
- + default prefix to /usr
- + featurelets
- + oolink support for connectivity libraries
-
-ooo-build-1.1.34
- + bug fixes
- + fix configuration patches (system fonts etc.)
- + icon composite fixes
- + register Gnome VFS UCP properly
- + linkoo checks for abs. path (Martin Kretzschmar)
- + bin bogus .desktop user install
- + fix ~/Documents as default save loc.
- + print/error dialog fix
- + delete/backspace switch in calc.
-
- + features
- + Tools->Word Count in menus
- + cleanup unzip code (Martin, Michael)
- + add web/math/template icons (Martin / Jimmac)
- + build / user guide updates
- + more build cleans
- + menu / check rendering forward-port
-
-ooo-build-1.1.33
- + scale czech,portbr,slovak icons (Martin Kretzschmar)
- + switch to RC3_030729 snapshot.
- + add configure --enable-devel to specify target
- + misc. build fixes / cleans
-
-ooo-build-1.1.31
- + add --with-src for package builds
-
-ooo-build-1.1.30
- + import into gnome CVS.
- + re-hash build / re-arrange
diff --git a/TODO b/TODO
deleted file mode 100644
index 9c1b21478..000000000
--- a/TODO
+++ /dev/null
@@ -1,175 +0,0 @@
-** Misc. tasks that need doing **
-
-Michael's bits
- + Release issues
- + improved VCL font mappings
- + Test issues
- + check 'andy' (comicsans) is rendering right
- + check default font is ok [ in free version too ]
- + re-test bullet import/export
- + file much of this up-stream.
- + release a new OpenSymbol font.
- + Build cleaning
- + use ${prefix} etc. in setup.in - the nice way.
- + [ bin setup.in ? ]
- + scaling issues:
- + 'font style' much too large / bloated
- + 'size' - excessively bloated
- + changing font size:
- + screws up drop-down item count for combos.
- + Korean WM title-bar issue ...
- + Documentation
- + png import / render inside xmlhelp
- + mapping / clobbering the icons in pictures.jar
- + check out Philipp's cws_srx645_cups01
- + more layout research ...
- + respond to feedback
- + printing-integration
- + design a system for VCL/print dialog
- integration
- + VCL print dlg is sub-classed ?
- + knobble it in the right place
- + examine the Gnome alternative
- + gtk+ integration
- + cross toolkit modality (?)
- + test with autosave dlg popup & NAS output.
- + UDK installation + pkgconfig file
- + need a 'post-setup-install' shell-script that
- Debian can use as well ...
- + Legal
- + push font issues.
- + Gnome
- + finish bonoboui/samples/thread-demo
- + VCL
- + toolbox re-sizing flash/bang on tear-offs.
-
-Martin
- + evo ab connector - not passing utf-8 names through right
- + m_aCurrentLine->getTextEncoding - UTF8 ?
- + cf. source/drivers/file/FConnection.cxx - m_nTextEncoding.
- + Seems like we get the right string / encoding.
- + is it simply a rendering problem ?
- + tbxcust
- + code needs re-writing to use BitmapEx's internally
- + toolbar zoom combo box: add fit to page width etc.
- + Longer term
- + Bonobo component
- + file selector integration
-
-Bangalore chaps - lock.
- + Make all GUI symbol rendering:
- vcl/source/window/decoview.cxx (DrawSymbol) use nice
- icons instead.
- + file handling
- + handle relative paths eg. ooffice ./file.sxi
- + offer to create non-existant files
- + re-hash the recent files thing X#50765
- + port to sal basic types
- + Saving a file / close doesn't update ~/.recent-files
- + impress
- + open existing presentation ...
- + calc
- + select rows, right click show/hide
- + should sensitize dependant on selection
-
-+ Bug fixage
- + disable-crash-dialog.diff doesn't: somehow the
- signal setup is really strange / broken in here, needs
- cleanup / comprehensibility.
- + not using autofmt.tbl (according to Jody (?))
- + gccinstlib.pl
- + remove it - unused in HEAD ?
- + LDAP integration
- + currently done with mozilla: #17187
- + implementation blows huge chunks
- + impossible without a heavily patched mozilla
- - removes profile locking (unsafe)
- - mangles the LDAP code (not processing event queue)
- http://lxr.mozilla.org/seamonkey/source/widget/src/gtk2/nsAppShell.cpp#200
- + strategy: wait for evolution to provide a sane OOP API
- do glib integration & wait for that.
-
-+ New features
- + openoffice-gallery-extra
- + turn all the dia diagram shapes into clipart.
- + re-write i18n stuff
- + using a different configuration key
- + implement a new backend
- + UI loving
- + The 'raise' issue - re-instate gui-appear.diff
- + F3 -> Open File (again)
- + re-arrange default toolbars X#39088
- + menu shortcut text should be 'Ctrl'+A (not 'Control')
- + changing font size doesn't scale all widgets
- eg. toolbar combo boxes & labels, file selector fields.
- + mark-up all option menus correctly so they don't
- show icons erroneously
- + bin LHS padding on menus with no icons or
- check-boxes, bin RHS padding with no K/B shortuts.
- + use gnome-print dialogs for printer selection
- + toolbar icons move on mouse-over; shouldn't.
- + right click on image -> 'save as'
- + Investigate full fontconfig speedups
- + are we still loading stuff from the OO.o font cache?
- + if so can we bin that; grok ascent/descent stuff.
- + Check our pspfontcache isn't growing [ #9969 ? ]
- - pwrt. PDF printing & fontconfig bits ...
- + Evolution as the default entry in Mail/Merge source wizard.
- + session management
- + printer authentication dialog
- + Automatic font obliquing from Xft2 [?]
- + no in-page search in help
- + automatic gconf HTTP proxy fetch
- + regexp searches in Writer.
- + writer
- + mouse in margins, should trigger new cursor and row
- selection mode
- + mouse above/over table header, should allow col
- selection + cursor
- + encryption: sw/source/core/sw3io/sw3misc.cxx, line 689
- + impress
- + PPT load/save doesn't save slide names [!]
- + grouped PPT presentation transitions are munged
- into many individual interactions on import.
- + sd/source/ui/dlg/*.cxx: improve time handling, for
- sub-1 second durations.
- + drawing view needs LHS panel with scrollable
- slides-view for navigation
- + calc
- + sheet tab font ugly & cramped
- + insert a row group in oocalc
- + 2nd from bottom toolbar icon on LHS
- + expand / collapse button doesn't theme
- + XL encryption: sc/source/filter/excel/impop.cxx (SC_XCL_USEDECR)
- + fontconfig, open issues
- + AA fonts + fontconfig path fixups ...
- + pFont->m_aEncoding: symbol or not ...
- + getting ascent / descent info from
- fontconfig's FT_Face (cf. pangoft2.c)
- + bin the nDirID nonsense ...
- + font-collections (?) [ttcs]
- + looks like we must retain the fontcache for
- lone afms.
- + font width issue ...
- + printing - further work
- + paper tray selection
- + paper type selection
- + make -quickstart useful
- + get X session lifecycle right
- + gtk+ mainloop integration possibilities:
- + move 'getstyle-gnome' in-process
- + bonobo integration ? ...
- + mozilla/bonobo integration ? ...
- + native at-spi bridge avoiding java cf. doc/accessibility.txt
- + Mono integration
- + http://udk.openoffice.org/cli/cli-uno.html
- + pwrt. macro implementation.
-
-+ Testing
- + do we need inst-destdir.diff in 1.1
-
-+ Study
- + investigate the menu's 'pLogo' code for branding.
- + do we need vcl/source/window/window.cxx (maPaintTimer)
- (30ms)? before re-painting the UI ? can we do it
- cumulatively for instant response 1st time ?
diff --git a/autogen.sh b/autogen.sh
deleted file mode 100755
index 2867ef781..000000000
--- a/autogen.sh
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/sh
-# Run this to generate all the initial makefiles, etc.
-
-(cd bonobo && ./autogen.sh)
-echo "NOT YET."
-
-aclocal
-automake --gnu --add-missing
-# intltoolize --copy --force --automake
-autoconf
-./configure $@
diff --git a/bin/.cvsignore b/bin/.cvsignore
deleted file mode 100644
index 49ace0569..000000000
--- a/bin/.cvsignore
+++ /dev/null
@@ -1,5 +0,0 @@
-build-ooo-tcsh
-Makefile
-Makefile.in
-setup
-ooo-wrapper
diff --git a/bin/Makefile.am b/bin/Makefile.am
deleted file mode 100644
index d6f688ad5..000000000
--- a/bin/Makefile.am
+++ /dev/null
@@ -1,20 +0,0 @@
-script_files = \
- build-ooo \
- scale-icons \
- nothing \
- openoffice-xlate-lang \
- package-lang \
- package-ooo \
- ootouch \
- linkoo \
- install-dict.in \
- ooo-wrapper.in \
- latest-patchset
-
-EXTRA_DIST = $(script_files)
-
-all:
- ./build-ooo ${TAG} --checkout
-
-install:
- ./package-ooo ${TAG} --clean
diff --git a/bin/README b/bin/README
deleted file mode 100644
index 08681fd3c..000000000
--- a/bin/README
+++ /dev/null
@@ -1,35 +0,0 @@
-In a simple build scenario / to get started use:
-
-./build-ooo OOO_STABLE_1 --checkout
-
-then (you need to be a sudoer):
-
-./package-ooo OOO_STABLE_1 --clean
-
-Other files:
-
- setup - misc. configuration options.
- install-icons - install artwork and icons, re-scale
- existing icons using ImageMagic.
- nothing - input swallowing dummy, to kill RPM
- find-requires / provides.
- tinder-build - used on the tinderbox to build and
- package OO.o in a loop.
- ooo-wrapper.in - perl script that is used to start OO.o
- and does i18n setup first.
-
- unused.pl - build lists of unused symbols in
- an installed set.
- map-unused.pl - turn unused symbol lists into linker
- maps.
- package-lang.pl - install lang-packs and build-per lang
- .spec files.
-
- openoffice-xlate-lang - map between several language identifiers.
-
- linkoo - program to link a build tree into an
- install image.
- ootouch - utility - give it some of your stack trace,
- and it will go touch files contianing that,
- meaning you can build debug=true easily to
- get debugging symbols...
diff --git a/bin/analyse-link b/bin/analyse-link
deleted file mode 100755
index 9e76df1c3..000000000
--- a/bin/analyse-link
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/usr/bin/perl -w
-
-
-my $log = shift (@ARGV) || '../map/relocation-log.bz2';
-my $bz = ($log =~ /\.bz2$/ && "bz") || '';
-
-my $stream;
-
-my %src_links = ();
-my %dest_links = ();
-my %self_links = ();
-
-my $svt_to_svl = 0;
-my $svl_to_svt = 0;
-
-open ($stream, $bz."cat $log |") || die "Can't cat $log: $!";
-
-while (<$stream>) {
-# 20884: binding file /usr/lib/libxml2.so.2 to /usr/lib/libxml2.so.2: normal symbol `xmlXPathSubstringFunction'
- if (/\d+:\s+binding file\s+([^\s]+)\s+to\s+([^\s]+):[^\`]+\`(.*)\'/) {
- my $src = $1;
- my $dest = $2;
- my $sym = $3;
-
- if ($src =~ /libsvl/ &&
- $dest =~ /libsvt/) {
- $svl_to_svt++;
- }
-
- if ($src =~ /libsvt/ &&
- $dest =~ /libsvl/) {
- $svt_to_svl++;
- }
-
- if ($src eq $dest) {
- $self_links{$src}++;
- } else {
- $src_links{$src}++;
- $dest_links{$dest}++;
- }
-# print "binding $src to $dest: $sym\n";
- }
-}
-
-close ($stream);
-
-print "src dest self name\n";
-print "-----------------------------\n";
-my $total_src = 0;
-my $total_dest = 0;
-my $total_self = 0;
-for $lib (sort (keys %src_links)) {
- my $src = $src_links{$lib};
- my $dest = exists $dest_links{$lib} && $dest_links{$lib} || '0';
- my $self = exists $self_links{$lib} && $self_links{$lib} || '0';
- print "$src $dest $self $lib\n";
- $total_src += $src;
- $total_dest += $dest;
- $total_self += $self;
-}
-print "-----------------------------\n";
-print "$total_src $total_dest $total_self : Total\n";
-
-print "\n";
-print "svl -> svt: $svl_to_svt\n";
-print "svt -> svl: $svt_to_svl\n";
diff --git a/bin/build-ooo b/bin/build-ooo
deleted file mode 100755
index 4de94f63f..000000000
--- a/bin/build-ooo
+++ /dev/null
@@ -1,313 +0,0 @@
-#!/bin/bash
-
-#
-# See setup for user tweakables.
-#
-. ./setup
-
-if test "z$1" = 'z--help'; then
- echo "build-ooo <BRANCH> [--checkout[--clean]|--help]";
- echo " --checkout: updates CVS tree";
- echo " --clean: cleans OO build tree";
- echo " --nopatch: doesn't re-patch the tree";
- exit 0;
-fi
-
-# Ensure dirs
-echo "Creating environment"
-mkdir -p $BUILDDIR
-
-# misc install brokenness
-mkdir -p $BUILDDIR/bin
-mkdir -p $BUILDDIR/share
-mkdir -p $BUILDDIR/share/aclocal
-mkdir -p $BUILDDIR/share/autoconf
-mkdir -p $BUILDDIR/lib
-mkdir -p $BUILDDIR/man
-mkdir -p $BUILDDIR/man/man1
-mkdir -p $OOBUILDDIR
-
-# Versions
-GCC_VER=gcc-3.2.2
-GCC_TARBALL=gcc-3.2.2.tar.bz2
-GCC_UNTAR_OPTIONS=jxf
-
-BINUTILS_VER=binutils-2.13.2.1
-BINUTILS_TARBALL=binutils-2.13.2.1.tar.bz2
-BINUTILS_UNTAR_OPTIONS=jxf
-BINUTILS_PATCH=$TOOLSDIR/patches/ld-2.13.2.1.diff
-
-if test "z$ENABLE_JAVA" = "zyes"; then
- JDK_VER=j2sdk1.4.1
- JDK_TARBALL=j2sdk-1.4.1-01-linux-i586-gcc3.2.tar.bz2
- JDK_UNTAR_OPTIONS=jxf
-fi
-
-OOO_ICONS_VER=ooo-icons-OOO_1_1-6
-OOO_ICONS_TARBALL=$OOO_ICONS_VER.tar.gz
-OOO_ICONS_UNTAR_OPTIONS=xzf
-
-OOO_TARBALL="$CVSTAG.tar.bz2"
-OOO_UNTAR_OPTIONS=jxf
-
-check-tarball ()
-{
- echo -n "Looking for $1 ... ";
- if test ! -f $1; then
- echo "missing the $1 archive; run './download'"
- exit 1;
- else
- echo "ok"
- fi
-}
-
-
-
-if test "z$WITH_SRC" = "z"; then
- mkdir -p $SRCDIR
- cd $SRCDIR
-
- echo "Checking for source packages in $SRCDIR";
- if test "z$SYSTEM_GCC" = "z"; then
- check-tarball $GCC_TARBALL
- check-tarball $BINUTILS_TARBALL
- fi
- if test "z$ENABLE_JAVA" = "zyes"; then
- check-tarball $JDK_TARBALL
- fi
- check-tarball $OOO_TARBALL
- check-tarball $OOO_ICONS_TARBALL
-
- if test "z$SYSTEM_GCC" = "z"; then
- if test ! -f $GCC_TARBALL; then
- echo "You need to put the relevant source packages into $SRCDIR before commencing the build";
- exit 1
- fi
- fi
-elif test "z$SYSTEM_GCC" = "z"; then
- if test "z$ENABLE_JAVA" = "zyes" &&
- test ! -d "$BUILDDIR/$JDK_VER"; then
- echo "Missing the Jdk";
- fi
-
- if test ! -d "$BUILDDIR/$GCC_VER" ||
- test ! -d "$BUILDDIR/$OOO_ICONS_VER" ||
- test ! -d "$BUILDDIR/$BINUTILS_VER"; then
- echo "Missing some of the helper source";
- exit 1;
- fi
-fi
-
-cd $BUILDDIR
-
-
-if test "z$ENABLE_JAVA" = "zyes"; then
- # unpack the Jdk
- PKG_VER=$JDK_VER
-
- if test -f $BUILDDIR/$PKG_VER/$STAMP; then
- echo "Skipping $PKG_VER";
- ln -sfn $PKG_VER $BUILDDIR/jdk
- else
- echo "Unpacking $PKG_VER";
- cd $BUILDDIR
- if test "z$WITH_SRC" = "z"; then
- tar $JDK_UNTAR_OPTIONS $SRCDIR/$JDK_TARBALL || exit 1;
- fi
-# Link it into where we expect it in the path
- ln -sfn $PKG_VER $BUILDDIR/jdk
- touch $BUILDDIR/$PKG_VER/$STAMP || exit 1;
- fi
-fi
-
-if test "z$SYSTEM_GCC" = "z"; then
- # build binutils
- PKG_VER=$BINUTILS_VER
-
- # -- evil cut --
- if test -f $BUILDDIR/$PKG_VER/$STAMP; then
- echo "Skipping $PKG_VER";
- else
- echo "Building $PKG_VER";
- cd $BUILDDIR
- if test "z$WITH_SRC" = "z"; then
- tar $BINUTILS_UNTAR_OPTIONS $SRCDIR/$BINUTILS_TARBALL || exit 1;
- patch -p0 < $BINUTILS_PATCH || exit 1;
- fi
- cd $PKG_VER
- ./configure --prefix=$BUILDDIR || exit 1;
- make && make install || exit 1;
- touch $BUILDDIR/$PKG_VER/$STAMP || exit 1;
- fi
- # -- cut --
-
- # build gcc
- PKG_VER=$GCC_VER
-
- # -- evil cut --
- if test -f $BUILDDIR/$PKG_VER/$STAMP; then
- echo "Skipping $PKG_VER";
- else
- echo "Building $PKG_VER";
- cd $BUILDDIR
- if test "z$WITH_SRC" = "z"; then
- tar $GCC_UNTAR_OPTIONS $SRCDIR/$GCC_TARBALL || exit 1;
- fi
- cd $PKG_VER
- ./configure --prefix=$BUILDDIR --enable-languages=c++ || exit 1;
- make && make install || exit 1;
- touch $BUILDDIR/$PKG_VER/$STAMP
- fi
- # -- cut --
-fi
-
-PKG_VER=$OOO_ICONS_VER
-
-# -- evil cut --
-if test -f $BUILDDIR/$PKG_VER/$STAMP; then
- echo "Skipping $PKG_VER";
-else
- echo "Building $PKG_VER";
- cd $BUILDDIR
- if test "z$WITH_SRC" = "z"; then
- tar $OOO_ICONS_UNTAR_OPTIONS $SRCDIR/$OOO_ICONS_TARBALL || exit 1;
- fi
- touch $BUILDDIR/$PKG_VER/$STAMP || exit 1;
-fi
-# -- cut --
-
-# Checkout / Update source:
-if (test "z$2" = "z--checkout") || !(test -f $OOBUILDDIR/$STAMP); then
-
- if test "z$WITH_SRC" = "z"; then
- PRISTINE_SOURCE=0
- if test ! -d $OOBUILDDIR/solenv; then
- echo "OOo build tree not found; unpacking it... [go make some tea]"
- cd $OOBUILDDIR
- cd ..
- tar $OOO_UNTAR_OPTIONS $SRCDIR/$OOO_TARBALL || exit 1
- PRISTINE_SOURCE=1
- else
- echo "Reverting patches ..."
- $TOOLSDIR/patches/apply.pl $TOOLSDIR/patches/$CVSTAG $OOBUILDDIR --distro=$DISTRO -R || exit 1;
- fi
-
- echo "Removing custom icons";
- $TOOLSDIR/bin/scale-icons $OOBUILDDIR --remove || exit 1;
-
- echo "Poking resource builds";
- find $OOBUILDDIR/*/*.pro -name '*.dpr' -exec rm {} \;
- find $OOBUILDDIR/*/*.pro -name '*.don' -exec rm {} \;
- find $OOBUILDDIR/*/*.pro -name '*.srs' -exec rm {} \;
-
- echo "Updating source ..."
- cd $OOBUILDDIR
-
- if test -f $SRCDIR/$CVSTAG.tar.bz2; then
- # Don't re-untar the sources if you've just untarred a pristine copy above
- if test "$OOO_TARBALL" != "$CVSTAG.tar.bz2" -o $PRISTINE_SOURCE -eq 0; then
- cd ..
- tar xjf $SRCDIR/$CVSTAG.tar.bz2;
- else
- echo "Actually, not updating because sources are pristine."
- fi
- else
- echo "Unreliably broken CVS branch...";
- if test "z`hostname`" = "zchampignon.ximian.com"; then
- cvs -d /cvsroot update -dP
- else
- cvs -z3 -q -d ':pserver:anoncvs@ftp.stardiv.de:/cvs' checkout -r $CVSTAG OpenOffice || exit 1;
-# cvs -z3 -q -d ':pserver:mmeeks@localhost:/cvs' checkout -r $CVSTAG OpenOffice || echo "Some error updating [?]";
- fi
- fi
- else
- # We expect a pristine copy to be there already ...
-
- if test ! -d "$BUILDDIR/$CVSTAG"; then
- echo "Missing the main OO.o source tree";
- fi
- fi
-
- cd $OOBUILDDIR
-
- # (re)apply patches
- if test "z$2" = "z--nopatch"; then
- echo "Skipping patching";
- else
- echo "Re-applying patches"
- $TOOLSDIR/patches/apply.pl $TOOLSDIR/patches/$CVSTAG $OOBUILDDIR --distro=$DISTRO -f || exit 1;
- fi
-
- echo "Installing / scaling icons";
- $TOOLSDIR/bin/scale-icons $OOBUILDDIR || echo "Error: scaling failed";
- echo "done icon scaling";
-
- cp -Rvf $BUILDDIR/$OOO_ICONS_VER/* $OOBUILDDIR || echo "Icon copy failed";
- echo "Copied new artwork into the tree";
-
- find $OOBUILDDIR -name '*.src' -exec touch {} \;;
-
- touch $OOBUILDDIR/$STAMP;
-else
- echo "Skipping checkout, use --checkout to update";
-fi
-
-if test "z$3" = "z--clean"; then
- cd $OOBUILDDIR
- echo "Cleaning ..."
- find -name 'unxlngi4.pro' -exec rm -Rf {} \;
- exit 0;
-fi
-
-# configure
-
-# dmake security patch
-cd $OOBUILDDIR/dmake
-autoconf || exit 1;
-
-# main configure
-cd $OOBUILDDIR/config_office
-rm -f config.cache
-echo "configuring ...";
-autoconf || exit 1;
-
-./configure $CONFIGURE_OPTIONS || exit 1;
-
-# Final build preparation
-
-# tcsh sucks great rocks, and refuses to re-direct it's output otherwise
-export TERM=
-# Warning - do not edit, this is a temporary file, see build-ooo
-# Many Java files have 8bit char-set comments, javac barfs on them in utf8 locales
-# export LANG="C";
-# Many Java's can't cope with the NPTL on Linux.
-# export LD_ASSUME_KERNEL="2.2.5";
-# Don't do a massive painful install
-export BUILD_MINIMAL="01";
-# Embedded python dies without Home set
-export HOME="";
-cd $OOBUILDDIR
-# Import all of the OO.o environment
-. $OOBUILDDIR/*.Set.sh || exit 1;
-# Copy in missing libraries if we just built them
-if test "z$SYSTEM_GCC" = "z"; then
- echo "Copying libraries to $SOLARVER/$UPD/$INPATH/lib";
- mkdir -p $SOLARVER/$UPD/$INPATH/lib || exit 1;
- cp -avf $BUILDDIR/lib/libgcc* $BUILDDIR/lib/libstdc* $SOLARVER/$UPD/$INPATH/lib || exit 1;
- cp -vf $BUILDDIR/lib/libstdc++* $SOLARVER/$UPD/$INPATH/lib/ || exit 1;
-fi
-echo 'Verifying environment'
-echo "Path: '\$PATH'";
-echo "Shell: '\$SHELL'"
-echo "Gcc: "
-gcc -dumpversion
-echo 'Bootstrapping'
-./bootstrap || ./bootstrap || ./bootstrap || exit 1;
-echo 'Commencing main build'
-cd instsetoo || exit 1;
-perl $SOLARENV/bin/build.pl --all --dlv_switch link || exit 1;
-
-touch $OOBUILDDIR/$STAMP || exit 1;
-
-echo "Build succeeded ...!"
-exit 0;
diff --git a/bin/catch-endif b/bin/catch-endif
deleted file mode 100755
index 1e55aff0c..000000000
--- a/bin/catch-endif
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/usr/bin/perl -w
-
-my $test_only = 0;
-
-while ($file = shift @ARGV) {
- if ($file =~ /--test/) {
- $test_only = 1;
- next;
- }
-
- open (File, "$file") || die "Can't open $file\n";
- my $intermediate = $file.".oo.int";
- open (Tmp, ">$intermediate") || die "Can't open $intermediate\n";
- $hit = 0;
- $num = 0;
- my $line = '';
- while (<File>) {
- $num++;
- if (/^#endif\s+[^\/\s]/) {
- print STDERR "Error on line $num of $file\n";
- $hit = 1;
- if( $file =~ m/\..xx$/ ) { # C++ comment
- s/^#endif\s+/#endif \/\/ /;
- } else { # C comment
- s/^#endif\s+(.*)\s+/#endif \/* $1 *\/ /;
- }
- }
- $line = $_;
- print Tmp $line;
- }
- if (! ($line =~ m/\n$/) ) {
- print STDERR "No newline at EOF of $file\n";
- print Tmp "\n";
- $hit = 1;
- }
- close File;
- close Tmp;
- if ($hit && !$test_only) {
- print "$file\n";
- rename $file, "$file.old";
- rename $intermediate, $file;
- } else {
- unlink $intermediate;
- }
-}
diff --git a/bin/install-dict.in b/bin/install-dict.in
deleted file mode 100755
index e4619bdbf..000000000
--- a/bin/install-dict.in
+++ /dev/null
@@ -1,302 +0,0 @@
-#!/usr/bin/perl -w
-
-use strict;
-use File::Temp qw/ tempfile /;
-use XML::Twig;
-
-my $DictRegEx = '^[a-z][a-z]_[A-Z][A-Z]\.dic$';
-my $HyphRegEx = '^hyph_[a-z][a-z].*\.dic$';
-my $ThesRegEx = '^th_[a-z][a-z]_[A-Z][A-Z]\.dat$';
-
-my $Debug = $ENV{'OOO_DEBUG'};
-my $OOO_DIR = '@OOINSTBASE@';
-
-if ($Debug && $OOO_DIR =~ /^\/\@/) {
- $OOO_DIR = '/usr/lib/ooo-1.0.3';
-}
-
-my $option = shift (@ARGV);
-my $FILENAME = shift (@ARGV);
-
-my $DICT_DIR = $OOO_DIR . "/share/dict/ooo/";
-my $DICT_FILENAME = $DICT_DIR . "dictionary.lst";
-my $CONFIG_FILENAME = $OOO_DIR . "/share/config/registry/instance/org/openoffice/Office/Linguistic.xml";
-
-sub get_dict_files($)
-{
- my $path = shift;
- my $dirhandle;
- my $fname;
- my @files = ();
-
- opendir ($dirhandle, $path) || die "can't opendir $path: $!";
- while ($fname = readdir ($dirhandle)) {
- if ($fname =~ m/$DictRegEx/ ||
- $fname =~ m/$HyphRegEx/ ||
- $fname =~ m/$ThesRegEx/) {
- push @files, $fname;
- }
- }
- closedir ($dirhandle);
-
- return @files;
-}
-
-my $file;
-my @files = get_dict_files ($DICT_DIR);
-my $XML_ROOT;
-my $CONFIG_FILE;
-
-$XML_ROOT = XML::Twig->new (pretty_print => "indented", keep_encoding => 1);
-$XML_ROOT->parsefile ($CONFIG_FILENAME) || die "Couldn't parse $CONFIG_FILENAME: $!\n";
-
-clean_old_nodes ();
-
-open ($CONFIG_FILE, ">$DICT_FILENAME") || die "Can't open $DICT_FILENAME: $!\n";
-
-for $file (@files) {
- install ($file);
-}
-
-close ($CONFIG_FILE);
-replace_xml_file ($CONFIG_FILENAME, $XML_ROOT);
-
-sub filetype {
- my ($filename) = @_;
-
- if ($filename =~ m/$DictRegEx/) {
- return "DICT";
- } elsif ($filename =~ m/$HyphRegEx/) {
- return "HYPH";
- } elsif ($filename =~ m/$ThesRegEx/) {
- return "THES";
- } else {
- print "\"$filename\" does not look like a dictionary, hyphenation table, or thesaurus file\n"
- . "Dictionaries are of the form xx_YY.dic\n"
- . "Hyphenation tables are of the form hyph_xx_YY.dic\n"
- . "Thesauruses are of the form th_xx_YY.dat\n";
- exit (1);
- }
-}
-
-sub change_extension {
- my ($filename, $ext, $newext) = @_;
-
- $filename =~ s/^(.*)\.($ext)$/$1\.$newext/g;
- return $filename;
-}
-
-sub get_node_parent {
- my $type = shift;
-
- my $parent_name;
- my $parent_node;
-
- if ($type eq "DICT") {
- $parent_name = "ServiceManager/SpellCheckerList";
- } elsif ($type eq "HYPH") {
- $parent_name = "ServiceManager/HyphenatorList";
- } elsif ($type eq "THES") {
- $parent_name = "ServiceManager/ThesaurusList";
- }
-
- # XML::Twig changed at some point to actually pay attention to the
- # root node, so we need both checks. Sigh...
- my $test_path;
-
- $test_path = "/$parent_name";
- $parent_node = ($XML_ROOT->get_xpath ($test_path))[0];
- if ($parent_node) {
- $parent_name = $test_path;
- } else {
- $test_path = "/Linguistic/$parent_name";
- $parent_node = ($XML_ROOT->get_xpath ($test_path))[0];
- if ($parent_node) {
- $parent_name = $test_path;
- } else {
- print ("Could not find node $parent_name in $CONFIG_FILENAME\n");
- exit (1);
- }
- }
-
- return ($parent_name, $parent_node);
-}
-
-sub clean_old_nodes {
- my @types = ( 'DICT', 'HYPH', 'THES' );
- my $t;
-
- for $t (@types) {
- my $node;
- my ($parent_path, $dummy) = get_node_parent ($t);
-
- foreach $node ($XML_ROOT->get_xpath ($parent_path . "/cfg:any")) {
- $node->delete;
- }
- }
-}
-
-sub replace_xml_file {
- my ($base_filename, $xml_root) = @_;
-
- my $temp_filename;
- my $temp_file;
-
- ($temp_file, $temp_filename) = tempfile ($base_filename . ".XXXXXX");
- $temp_file || die ("Cannot open a temporary file");
-
- $xml_root->print ($temp_file);
-
- close ($temp_file);
-
- rename ($temp_filename, $base_filename);
- chmod (0644, $base_filename);
-}
-
-sub add_config_entry {
- my ($type, $language, $country) = @_;
-
- my $mangled_prefix;
- my $parent_name;
- my $parent_node;
-
- $mangled_prefix = $language . "-" . $country;
- ($parent_name, $parent_node) = get_node_parent ($type);
-
- # FIXME: we only support the stock MySpellChecker,
- # LibHngHyphenator, and Thesaurus types. Finnish will need
- # extended support for other types, as it brings in its own
- # language .so
-
- my $new_node_content;
-
- if ($type eq "DICT") {
- $new_node_content = "org.openoffice.lingu.MySpellSpellChecker";
- } elsif ($type eq "HYPH") {
- $new_node_content = "org.openoffice.lingu.LibHnjHyphenator";
- } elsif ($type eq "THES") {
- $new_node_content = "org.openoffice.lingu.basic.Thesaurus";
- }
-
- # See if the node exists
- my $node;
-
- foreach $node ($XML_ROOT->get_xpath ($parent_name . "/cfg:any")) {
- if ($node->att ("cfg:name") eq $mangled_prefix) {
- print ("$mangled_prefix already exists in $CONFIG_FILENAME; ignoring\n");
- return;
- }
- }
-
- # Add a new node
- $node = XML::Twig->new ();
- $node->parsestring ("<cfg:any cfg:type=\"string\" cfg:derivedBy=\"list\" cfg:name=\"$mangled_prefix\">$new_node_content</cfg:any>");
-
- $node->root->paste("first_child", $parent_node);
-}
-
-sub get_dict_list_entry {
- my ($filename) = @_;
-
- $filename =~ m/^([a-z][a-z])_([A-Z][A-Z])/;
-
- my $language = $1;
- my $country = $2;
- my $file_prefix = $1 . "_" . $2;
-
- return ($language, $country, $file_prefix);
-}
-
-sub lookup_default_country {
- my $lang = shift;
-
- if ($lang eq 'en') {
- return 'US';
- } elsif ($lang eq 'da') {
- return 'DK';
- } else {
- return uc ($lang);
- }
-}
-
-sub get_hyph_list_entry {
- my ($filename) = @_;
-
- $filename =~ s/^hyph_([a-z][a-z])//;
-
- my $language = $1;
- my $country;
- my $suffix = '';
-
- if ($filename =~ m/_([A-Z][A-Z])/) {
- $country = $1;
- $suffix = "_" . $country;
- } else {
- $country = lookup_default_country ($language);
- }
-
- my $file_prefix = "hyph_" . $language . $suffix;
-
- return ($language, $country, $file_prefix);
-}
-
-sub get_thes_list_entry {
- my ($filename) = @_;
-
- $filename =~ m/^th_([a-z][a-z])_([A-Z][A-Z])/;
-
- my $language = $1;
- my $country = $2;
- my $file_prefix = "th_" . $1 . "_" . $2;
-
- return ($language, $country, $file_prefix);
-}
-
-sub install {
- my $type;
- my $language;
- my $country;
- my $file_prefix;
- my $filename = shift;
-
- $type = filetype ($filename);
-
- if ($type eq "DICT") {
- my $dict_file = $DICT_DIR . $filename;
- my $affix_file = $DICT_DIR . change_extension ($filename, "dic", "aff");
-
- if (!-f $dict_file || !-f $affix_file) {
- print "Error: These files must be present:\n"
- . $dict_file . "\n"
- . $affix_file . "\n";
- exit (1);
- }
-
- ($language, $country, $file_prefix) = get_dict_list_entry ($filename);
- } elsif ($type eq "HYPH") {
- my $hyph_file = $DICT_DIR . $filename;
-
- if (!-f $hyph_file) {
- print ("Error: $hyph_file is not present\n");
- exit (1);
- }
-
- ($language, $country, $file_prefix) = get_hyph_list_entry ($filename);
- } elsif ($type eq "THES") {
- my $thes_file = $DICT_DIR . $filename;
- my $idx_file = $DICT_DIR . change_extension ($filename, "dat", "idx");
-
- if (!-f $thes_file || !-f $idx_file) {
- print "Error: These files must be present:\n"
- . $thes_file . "\n"
- . $idx_file . "\n";
- exit (1);
- }
-
- ($language, $country, $file_prefix) = get_thes_list_entry ($filename);
- }
-
- print $CONFIG_FILE "$type $language $country $file_prefix\n";
-
- add_config_entry ($type, $language, $country);
-}
diff --git a/bin/install-dictionaries b/bin/install-dictionaries
deleted file mode 100755
index ab55d0ee4..000000000
--- a/bin/install-dictionaries
+++ /dev/null
@@ -1,114 +0,0 @@
-#!/bin/bash
-
-# See setup for user tweakables.
-#
-. ./setup
-
-if test "z$2" = "z--force"; then
- FORCE=1
-else
- FORCE=0
-fi
-
-if (! test -d $SRCDIR); then
- echo "Cannot find $SRCDIR; make sure you already ran build-ooo"
- exit 1;
-fi
-
-DICTDIR=$OOINSTDIR/share/dict/ooo
-
-if (! test -d $DICTDIR); then
- echo "Cannot find $DICTDIR; make sure you installed OOo first"
- exit 1;
-fi
-
-cd $SRCDIR
-
-DICTIONARIES=" \
- ooo-dict-bg_BG.zip \
- ooo-dict-ca_ES.zip \
- ooo-dict-cs_CZ.zip \
- ooo-dict-da_DK.zip \
- ooo-dict-de_CH.zip \
- ooo-dict-de_DE.zip \
- ooo-dict-el_GR-enhanced.zip \
- ooo-dict-en_AU.zip \
- ooo-dict-en_CA.zip \
- ooo-dict-en_GB.zip \
- ooo-dict-es_ES.zip \
- ooo-dict-fr_FR.zip \
- ooo-dict-ga_IE.zip \
- ooo-dict-gl_ES.zip \
- ooo-dict-hr_HR.zip \
- ooo-dict-hu_HU.zip \
- ooo-dict-it_IT.zip \
- ooo-dict-lt_LT.zip \
- ooo-dict-nb_NO.zip \
- ooo-dict-nl_NL.zip \
- ooo-dict-nn_NO.zip \
- ooo-dict-pl_PL.zip \
- ooo-dict-pt_BR.zip \
- ooo-dict-pt_PT.zip \
- ooo-dict-ru_RU_yo.zip \
- ooo-dict-sk_SK.zip \
- ooo-dict-sl_SI.zip \
- ooo-dict-sv_SE.zip \
- ooo-dict-uk_UA.zip \
- ooo-hyph_cs.zip \
- ooo-hyph_de_CH.zip \
- ooo-hyph_en_CA.zip \
- ooo-hyph_en_GB.zip \
- ooo-hyph_es.zip \
- ooo-hyph_fr.zip \
- ooo-hyph_it.zip \
- ooo-hyph_nl.zip \
- ooo-hyph_pt_BR.zip \
- ooo-hyph_pt_PT.zip \
- ooo-hyph_sk.zip \
- ooo-hyph_sl.zip \
- ooo-hyph_uk.zip \
- ooo-thes-de_DE.zip \
-"
-
-echo "Getting dictionary sources..."
-for i in $DICTIONARIES; do
- if (test $FORCE = 1) || (! test -f $i); then
- bb_get $i-1
- fi
-done
-
-echo "Unpacking dictionaries..."
-for i in $DICTIONARIES; do
- unzip -o -d $DICTDIR -j $i '*.dic' '*.aff' '*.dat' '*.idx'
-done
-
-echo "Creating dictionary.lst..."
-cd $DICTDIR
-> dictionary.lst
-
-# Dictionaries
-for i in *.aff; do
- LANGUAGE=`echo $i | cut -b1-2`
- COUNTRY=`echo $i | cut -b4-5`
- FULL=`echo $i | cut -b1-5`
-
- echo "DICT $LANGUAGE $COUNTRY $FULL" >> dictionary.lst
-done
-
-# Hyphenation tables
-for i in hyph*.dic; do
- LANGUAGE=`echo $i | cut -b6-7`
- COUNTRY=`echo $i | cut -b9-10`
- FULL=`echo $i | cut -b6-10`
-
- echo "HYPH $LANGUAGE $COUNTRY $FULL" >> dictionary.lst
-done
-
-# Thesauruses
-for i in th*.dat; do
- LANGUAGE=`echo $i | cut -b4-5`
- COUNTRY=`echo $i | cut -b7-8`
- FULL=`echo $i | cut -b1-8`
-
- echo "THES $LANGUAGE $COUNTRY $FULL" >> dictionary.lst
-done
diff --git a/bin/install-maps b/bin/install-maps
deleted file mode 100755
index 9a389d486..000000000
--- a/bin/install-maps
+++ /dev/null
@@ -1,65 +0,0 @@
-#!/usr/bin/perl -w
-
-# The worst offendors in bloated sym tables:
-
-# NB - all verified to work correctly.
-$maps = {
- 'svx' => 'svx/util',
- 'svt' => 'svtools/util',
- 'svl' => 'svtools/util',
- 'sfx' => 'sfx2/util',
- 'xo' => 'xmloff/util',
- 'tk' => 'toolkit/util',
- 'vcl' => 'vcl/util',
- 'fwk' => 'framework/util',
- 'sb' => 'basic/util',
- 'so' => 'so3/util',
- 'tl' => 'tools/util',
- 'go' => 'goodies/util'
-# TOTEST:
-# 'frm'
-# 'basctl'
-# 'dba'
-# 'dbu'
- };
-
-if (@ARGV < 3) {
- print "install-maps: /path/to/OOInstall /path/to/toolsdir <mangling> --empty\n";
- exit (1);
-}
-
-$dest = shift @ARGV;
-$src = shift @ARGV;
-$mangle = shift @ARGV;
-$empty = shift @ARGV;
-
--d "$src/map" || die "Can't find $src/map: $!";
-
-my $a;
-for $a (keys %$maps) {
- my $fname = "$a-$mangle.map";
- my $s = "$src/map/$fname";
- my $d = "$dest/" . $$maps{$a};
-
- -d $d || die "No directory $d: $!";
- -f $s || die "Can't find $s: $!";
-
- $empty && print "blanking: $d\n";
- !$empty && print "installing: $s $d\n";
-
- my $df;
-
- open ($df, ">$d/$fname") || die "Can't open $d/$fname for writing: $!";
- if ($empty) {
- print $df "FOO {\n global: *;\n};\n";
- } else {
- my $sf;
-
- open ($sf, "$s") || die "Can't find $s: $!";
- while (<$sf>) {
- print $df $_;
- }
- close ($sf);
- }
- close ($df);
-}
diff --git a/bin/latest-patchset b/bin/latest-patchset
deleted file mode 100755
index cf9f8b1ee..000000000
--- a/bin/latest-patchset
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/bin/perl -w
-
-$dir = shift (@ARGV) || die "pass path to patches directory";
-
-$require_buildable = 1;
-
-while ($param = shift (@ARGV)) {
- if ($param eq '--devel') {
- $require_buildable = 0;
- }
-}
-
-my $name = '';
-
-open(Order, "$dir/order") || die "Can't find $dir/order";
-while (<Order>) {
- s/\s*#.*//;
- s/\s*(\S+)\s+(\S+)// || next;
- $name = $1;
- my $version = $2;
- my $buildable = m/build/i;
-
-# print "Name: '$name', Version '$version' [$buildable]\n";
- $require_buildable && !$buildable && next;
- last;
-}
-close(Order);
-
-print "$name";
-if ($name eq '') {
- print STDERR "Can't find latest buildable set";
- exit 1;
-}
diff --git a/bin/linkoo b/bin/linkoo
deleted file mode 100755
index 872a54282..000000000
--- a/bin/linkoo
+++ /dev/null
@@ -1,274 +0,0 @@
-#!/usr/bin/perl -w
-
-# Copyright 2002, Ximian, Inc.
-#
-# This app makes it easy to link a live build
-# set into an install set. Then your devel iteration
-# is: 'build', execute.
-#
-
-# ends up in program/env
-$env_script = '
-ulimit -c unlimited
-export PATH=".:$PATH"
-export LD_LIBRARY_PATH=".:$LD_LIBRARY_PATH"
-export GNOME_DISABLE_CRASH_DIALOG=1
-';
-
-$resources = {
- 'dbu%%01.res' => 'dbaccess',
- 'sfx%%01.res' => 'sfx2',
- 'iso%%01.res' => 'offmgr',
-# 'oem%%01.res' => 'offmgr',
-# 'for%%01.res' => 'offmgr',
- 'ooo%%01.res' => 'offmgr',
- 'ofa%%01.res' => 'offmgr',
- 'dkt%%01.res' => 'desktop',
- 'sd%%01.res' => 'sd',
- 'sch%%01.res' => 'sch',
- 'eme%%01.res' => 'goodies',
- 'epb%%01.res' => 'goodies',
- 'epn%%01.res' => 'goodies',
- 'epp%%01.res' => 'goodies',
- 'egi%%01.res' => 'goodies',
- 'ept%%01.res' => 'goodies',
- 'eps%%01.res' => 'goodies',
- 'epg%%01.res' => 'goodies',
- 'gal%%01.res' => 'svx',
- 'svx%%01.res' => 'svx',
- 'vcl%%01.res' => 'vcl',
- 'frm%%01.res' => 'forms',
- 'set%%01.res' => 'setup2',
-# 'set_pp1%%01.res' => 'setup2',
- 'tplx%%01.res' => 'setup2',
- 'dbw%%01.res' => 'wizards',
- 'cal%%01.res' => 'wizards',
- 'eur%%01.res' => 'wizards',
- 'imp%%01.res' => 'wizards',
- 'tpl%%01.res' => 'wizards',
- 'wwz%%01.res' => 'wizards',
- 'sc%%01.res' => 'sc',
- 'analysis%%01.res' => 'scaddins',
- 'date%%01.res' => 'scaddins',
-# 'stt%%01.res' => 'basic',
- 'basctl%%01.res' => 'basctl',
- 'sw%%01.res' => 'sw',
- 'sm%%01.res' => 'starmath',
- 'uui%%01.res' => 'uui',
- 'svt%%01.res' => 'svtools',
- 'svs%%01.res' => 'svtools',
- 'abp%%01.res' => 'extensions',
- 'san%%01.res' => 'extensions',
- 'pcr%%01.res' => 'extensions',
- 'dbp%%01.res' => 'extensions',
- 'bib%%01.res' => 'extensions',
- 'dbi%%01.res' => 'extensions',
- 'preload%%01.res' => 'extensions',
- 'lgd%%01.res' => 'framework',
-# 'spa%%01.res' => 'padmin'
-};
-
-$opt_resources = {
- 'cnt%%01.res' => 'chaos',
- 'oic%%01.res' => 'extensions',
- 'jvm%%01.res' => 'setup2'
-};
-
-$libraries = {
- 'libfwe%%.so' => 'framework',
- 'libfwi%%.so' => 'framework',
- 'libfwk%%.so' => 'framework',
- 'libfwl%%.so' => 'framework',
- 'libfrm%%.so' => 'forms',
- 'libofa%%.so' => 'offmgr',
- 'libpsp%%.so' => 'psprint',
- 'libsfx%%.so' => 'sfx2',
- 'libsvl%%.so' => 'svtools',
- 'libsvt%%.so' => 'svtools',
- 'libsvx%%.so' => 'svx',
- 'libtl%%.so' => 'tools',
- 'libdtransX11%%.so' => 'dtrans',
- 'libpackage2.so' => 'package',
- 'libucpfile1.so' => 'ucb',
- 'libucpdav1.so' => 'ucb',
- 'libcached1.so' => 'ucb',
- 'libucphier1.so' => 'ucb',
- 'libucb1.so' => 'ucb',
- 'libutl%%.so' => 'unotools',
- 'libvcl%%.so' => 'vcl',
- 'libwrp%%.so' => 'desktop',
- 'libxo%%.so' => 'xmloff',
- 'libsb%%.so' => 'basic',
- 'libso%%.so' => 'so3',
- 'libgo%%.so' => 'goodies',
- 'libsc%%.so' => 'sc',
- 'libsw%%.so' => 'sw',
- 'libsd%%.so' => 'sd',
- 'libsm%%.so' => 'starmath',
- 'libodbc2.so' => 'connectivity',
- 'libodbcbase2.so' => 'connectivity',
- 'libtk%%.so' => 'toolkit',
- 'libsch%%.so' => 'sch',
- 'libscn%%.so' => 'extensions',
- 'libi18npool%%.so' => 'i18npool',
- 'liblth%%.so' => 'lingucomponent',
- 'libhyphen%%.so' => 'lingucomponent',
- 'libspell%%.so' => 'lingucomponent',
- 'libulingu%%.so' => 'lingucomponent',
- 'libtvhlp1.so' => 'xmlhelp',
- 'libucpchelp1.so' => 'xmlhelp',
- 'libsot%%.so' => 'sot',
- 'libbasctl%%.so' => 'basctl',
- 'liblng%%.so' => 'linguistic'
-};
-
-$opt_libraries = {
- 'libi18n%%.so' => 'i18n_simple',
- 'libucpgvfs1.so' => 'ucb',
- 'libucpfpx%%.so' => 'ucb',
- 'libucbhelper1gcc3.so' => 'ucbhelper',
- 'libcppu.so.3.0.1' => 'cppu',
- 'libcppu.so.3.1.0' => 'cppu',
- 'libsal.so.3.0.1' => 'sal',
- 'libsal.so.3.1.0' => 'sal',
- 'libmozab2.so' => 'connectivity',
- 'libmozabdrv2.so' => 'connectivity',
- 'libmysql2.so' => 'connectivity',
- 'libodbc2.so' => 'connectivity',
- 'libodbcbase2.so' => 'connectivity',
- 'libsdbc2.so' => 'connectivity',
- 'libdbase%%.so' => 'connectivity',
- 'libdbpool2.so' => 'connectivity',
- 'libdbtools2.so' => 'connectivity',
- 'libadabas2.so' => 'connectivity',
- 'libcalc%%2.so' => 'connectivity',
- 'libevoab1.so' => 'connectivity',
- 'libfile%%.so' => 'connectivity',
- 'libflat%%.so' => 'connectivity',
- 'libspl%%.so' => 'desktop'
-};
-
-$other_bin_files = {
- 'getstyle-gnome' => 'vcl',
- 'msgbox-gnome' => 'vcl'
-};
-
-sub sniff_target($)
-{
- my $build_dir = shift;
- my ($dirhandle, $fname);
- my ($target, $libver, $dllsuffix) = ( 'unxlngi4.pro', '641', 'li' ); # defaults
-
- opendir ($dirhandle, $build_dir) || die "Can't open $build_dir";
- while ($fname = readdir ($dirhandle)) {
- $fname =~ /Set.sh$/ || next;
-
- my $file;
- open ($file, "$build_dir/$fname") || die "Can't open $build_dir/$fname";
- while (<$file>) {
- /\s*(\S+)\s*=\s*\"(\S+)\"/ || next;
- if ($1 eq 'INPATH') {
- $target = $2;
- }
- if ($1 eq 'UPD') {
- $libver = $2;
- }
- if ($1 eq 'DLLSUFFIX') {
- $dllsuffix = $2;
- }
- }
- close ($file);
- }
-
- closedir ($dirhandle);
-
- print "Sniffed target: $target, $libver, $dllsuffix\n";
-
- return ($target, $libver, $dllsuffix);
-}
-
-sub do_linkage {
- my $resources = shift;
- my $substitute = shift;
- my $dest_subdir = shift;
- my $src_subdir = shift;
- my $optional = shift;
- my $res;
-
- my $inst = "$OOO_INSTALL$dest_subdir";
- for $res (keys %$resources) {
- my $bres = $resources->{$res};
-
- $res =~ s/%%/$substitute/;
- my $build = "$OOO_BUILD/$bres/$src_subdir/$res";
-
- -l "$inst/$res" && next;
- $optional || -f "$build" || die "No file '$build' to link to\n";
-
- if (-f "$inst/$res") {
- rename ("$inst/$res", "$inst/linked/$res") || die "Failed rename of $inst/$res: $!";
- symlink ("$build", "$inst/$res") || die "Failed to symlink: $!";
- print " $res";
- } elsif (!$optional) {
- print "Unexpected / missing file $build -> $inst/$res\n";
- }
- }
-}
-
-if (@ARGV < 2) {
- printf "Usage: linkoo </path/to/ooo/install> </path/to/ooo/build/tree>\n";
- exit (1);
-}
-
-$OOO_INSTALL = shift (@ARGV) . "/program";
-$OOO_BUILD = shift (@ARGV);
-
-if ($OOO_BUILD !~ m|^/|) {
- printf "second argument must be an absolute path\n";
- exit (1);
-}
-
--d $OOO_INSTALL || die "No such directory $OOO_INSTALL";
--w $OOO_INSTALL || die "You need write access to $OOO_INSTALL";
--d $OOO_BUILD || die "No such directory $OOO_BUILD";
--d "$OOO_INSTALL/resource" || die "$OOO_INSTALL doesn't look like an OO install";
-
-$prog_link = "$OOO_INSTALL/linked";
-$res_link = "$OOO_INSTALL/resource/linked";
-
--d $prog_link || mkdir $prog_link || die "Can't make $prog_link: $!";
--d $res_link || mkdir $res_link || die "Can't make $res_link: $!";
-
-($TARGET, $LIBVER, $DLLSUFFIX) = sniff_target ($OOO_BUILD);
-
-print "Linking resources:";
-do_linkage ($resources, $LIBVER, '/resource', "$TARGET/bin", '');
-do_linkage ($opt_resources, $LIBVER . $DLLSUFFIX, '', "$TARGET/lib", '1');
-
-print "\n";
-
-print "Linking libraries:";
-do_linkage ($libraries, $LIBVER . $DLLSUFFIX, '', "$TARGET/lib", '');
-do_linkage ($opt_libraries, $LIBVER . $DLLSUFFIX, '', "$TARGET/lib", '1');
-print "\n";
-
-print "Linking other files:";
-do_linkage ($other_bin_files, $LIBVER . $DLLSUFFIX, '', "$TARGET/bin", '');
-print "\n";
-
-print "Special iso.res case:";
-$ooo_res="$OOO_INSTALL/resource/ooo".$LIBVER."01.res";
-$star_res="$OOO_INSTALL/resource/iso".$LIBVER."01.res";
-if (-l $ooo_res && -l $star_res) {
- unlink ($star_res);
- symlink ($ooo_res, $star_res);
- print " clobbered";
-}
-print "\n";
-
-if (!-f "$OOO_INSTALL/env") {
- print "Creating '$OOO_INSTALL/env'\n";
- open ($env, ">$OOO_INSTALL/env") || die "Can't open $OOO_INSTALL/env: $!";
- print $env $env_script;
- close ($env);
-}
diff --git a/bin/map-unused.pl b/bin/map-unused.pl
deleted file mode 100755
index fb43ca6fa..000000000
--- a/bin/map-unused.pl
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/usr/bin/perl
-
-# The worst offenders in bloated sym tables:
-@map_source = (
- 'svx', 'svt', 'sfx', 'xo',
- 'tk', 'vcl', 'fwk', 'svl',
- 'sb', 'so', 'tl', 'go', 'frm',
- 'basctl', 'dba', 'dbu'
-);
-
-$mangle = 'gcc3';
-
-if (@ARGV < 2) {
- print "map-unused.pl: /path/into/solver /path/to/toolsdir\n";
- exit (1);
-}
-
-my ($install, $toolsdir) = @ARGV;
-
-# poke around
--d $install || die "Can't find $install: $!";
--d $toolsdir || die "Can't find $toolsdir: $!";
--d "$install/lib" || die "Can't find $install/lib: $!";
--d "$toolsdir/map" || die "Can't find $toolsdir/map: $!";
-
-# Create selected map files
-for $a (@map_source) {
- my $src = $install ."/lib/lib".$a."641li.so.unused";
-
- -f $src || die "Can't find $src: $!";
-
- my $dest = "$toolsdir/map/$a-$mangle.map";
-
- my $srcfile;
- my $destfile;
-
- print "Build map $dest\n";
- open ($srcfile, $src) || die "Couldn't open $src: $!";
- open ($destfile, ">$dest") || die "Couldn't open $dest: $!";
-
- print $destfile "{\n";
-# print $destfile "\tglobal: *;\n";
- print $destfile "\tlocal:\n";
- while (<$srcfile>) {
- chomp;
- /^component_/ && next;
- print $destfile "\t$_;\n";
- }
- print $destfile "};\n";
-
- close ($srcfile);
- close ($destfile);
-}
-
diff --git a/bin/nothing b/bin/nothing
deleted file mode 100755
index 9af6375da..000000000
--- a/bin/nothing
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-filelist=`sed "s/['\"]/\\\&amp;/g"`
-exit 0
diff --git a/bin/ooo-wrapper.in b/bin/ooo-wrapper.in
deleted file mode 100755
index 594e95f1b..000000000
--- a/bin/ooo-wrapper.in
+++ /dev/null
@@ -1,269 +0,0 @@
-#!/usr/bin/perl -w
-#*****************************************************************************
-#
-# ooffice - Wrapper script for OpenOffice.org
-#
-# Based on the Mandrake work.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License version 2, as
-# published by the Free Software Foundation.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#
-#*****************************************************************************
-
-use strict;
-use IO::Handle;
-use Fcntl ':flock';
-
-my $Debug = $ENV{OOO_DEBUG};
-
-# Substituted by the build system:
-# Define OpenOffice.org version
-my $Version = '@VERSION@';
-# Define system installation directory
-# Autoconf totally sucks for @libdir@ type substitution
-my $SystemInstallDir = '@OOINSTBASE@';
-# Suffix for parallel installable versioning
-my $BinSuffix = '@BINSUFFIX@';
-# Debugging
-if ($Debug && $Version =~ /^\@/) {
- $Version = "1.1.0";
- $SystemInstallDir = "/usr/lib/ooo-$Version";
- $BinSuffix = '1.1';
-}
-my $ConfigSuffix = $Version;
-$ConfigSuffix =~ s/([0-9]+\.[0-9]+).*/$1/;
-# Define lock-file for this script
-my $LockFile = "$ENV{HOME}/.openoffice-lock";
-# Define user OOo versions file
-my $VersionFile = "$ENV{HOME}/.sversionrc";
-# Define user installation directory
-my $UserInstallDir = "$ENV{HOME}/.xopenoffice$ConfigSuffix";
-# Define OOo setup program
-my $SetupProgram = "$SystemInstallDir/program/setup";
-# Define setup autoresponse file for user installation
-my $SetupConfig = "/etc/openoffice/autoresponse$BinSuffix.conf";
-# Where gconftool is...
-my $GConfTool = 'gconftool-2';
-# GConf configuration keys
-my $ConfQuickstart = '/apps/ooo-ximian/quickstart';
-my $ConfDefaultFormat = '/apps/ooo-ximian/default-format';
-
-sub GetConfBool($)
-{
- my ($path) = @_;
- my ($value, $ret);
-
- $value = `$GConfTool --get $path 2>&1`;
-
- if (!$value) {
- $ret = 0;
- } elsif ($value =~ m/^true.*/i ||
- $value =~ m/^yes.*/i ||
- $value =~ m/^on.*/i) {
- $ret = 1;
- } else {
- $ret = 0;
- }
-
- return $ret;
-}
-
-sub ReadVersionFile($) {
- my ($file) = @_;
- my $e;
- my %entries;
- my $Rc;
-
- if (open ($Rc, "$file")) {
- while (<$Rc>) {
- chomp;
- if (/^\[(\w+)\]/) {
- $entries{$1} = $e = { };
- }
- elsif (/^([^=]+)=([^\r\n]+)/) {
- $e->{$1} = $2;
- }
- }
- close ($Rc);
- }
- %entries;
-}
-
-sub DoWriteVersionFile(%$) {
- my ($config, $file) = @_;
- local *F;
-
- if ($file) {
- open F, ">$file" or die "Cant write to $file\n";
- select F;
- }
- local $\ = "\n";
- while (my ($secname, $secvars) = each %$config) {
- print "[$secname]";
- while (my ($key, $value) = each %$secvars) {
- print "$key=$value";
- }
- print "";
- }
- if ($file) {
- close F;
- select STDOUT;
- }
-}
-
-sub WriteVersionFile(%) {
- my (%config) = @_;
- DoWriteVersionFile \%config, "$VersionFile";
-}
-
-#=============================================================================
-# Main
-#=============================================================================
-
-# Parse command line arguments
-my @ooo_argv;
-my $session_quickstart;
-while ($ARGV[0]) {
- $_ = shift;
- if (m/^--session-quickstart/) {
- $session_quickstart = 1;
- } else {
- push @ooo_argv, $_;
- }
-}
-
-if ($0 =~ m/\/oo(calc|draw|impress|math|writer)$BinSuffix$/) {
- my $app = $1;
- push @ooo_argv, "-$app";
- $Debug && print "Append arg: -$app\n";
-}
-
-my $Lock;
-
-$Debug && print "Taking lock: $LockFile\n";
-open ($Lock, ">$LockFile") || print "Can't open $LockFile\n";
-flock ($Lock, LOCK_EX) || print "Warning: can't flock $LockFile\n";
-$Debug && print "Obtained lock: $LockFile\n";
-
-# Remove any stale entry from versions file
-if ( -r "$VersionFile" ) {
- my %config = ReadVersionFile "$VersionFile";
- my $versions = $config{Versions};
- my $home = $versions->{"OpenOffice.org $Version"};
- if ($home && $home ne "file://$UserInstallDir") {
- $Debug && print "Re-writing $VersionFile\n";
- foreach (keys %$versions) {
- delete $versions->{$_} if ($versions->{$_} eq $home);
- }
- WriteVersionFile %config;
- }
-}
-
-# Perform a user installation, if necessary.
-if ( ! -d $UserInstallDir || ! -e "$UserInstallDir/soffice" ) {
- # First, make sure to remove any reference to $UserInstallDir, from older
- # (and broken) installation
- $Debug && print "Do fresh user install\n";
- if ( -f $VersionFile ) {
- my %config = ReadVersionFile "$VersionFile";
- my $versions = $config{Versions};
- my $changed = 0;
- foreach (keys %$versions) {
- if ($versions->{$_} eq "file://$UserInstallDir") {
- delete $versions->{$_};
- $changed = 1;
- }
- }
- WriteVersionFile %config if ($changed);
- }
- # We can safely do the installation now
- my $setup_cmd = "$SetupProgram -R:$SetupConfig -v -nogui";
-
- if (!$Debug) {
- $setup_cmd .= " >& ~/.openoffice-install-log";
- }
-
- $Debug && print "Calling setup: '$setup_cmd'\n";
- system ($setup_cmd) &&
- die "Installation of OpenOffice.org $Version failed:\n '$setup_cmd'\n";
-}
-
-# Clean the installation version tags.
-if ( -f "$VersionFile" ) {
- my %config = ReadVersionFile "$VersionFile";
- my $versions = $config{Versions};
- my $changed = 0;
- foreach (keys %$versions) {
- $_ eq "OpenOffice.org $Version" && next;
-
- if ($_ =~ /^OpenOffice.org ([0-9]+)\.([0-9]+)(.*)/) {
- my ($iv_maj, $iv_min, $iv_mic) = ($1, $2, $3);
- $Version =~ /([0-9]+)\.([0-9]+)(.*)/;
- my ($v_maj, $v_min, $v_mic) = ($1, $2, $3);
-
- $Debug && print "Old $iv_maj $iv_min $iv_mic, new $v_maj $v_min $v_mic\n";
-
- if ($iv_maj == $v_maj && $iv_min == $v_min) {
- $Debug && print "Deleting old version\n";
- delete $versions->{$_};
- $changed = 1;
- }
- }
- }
- # Add current version tag if it does not exist already. This
- # occurs when you upgrade from 1.0 to 1.0.1 for example.
- if (!$versions->{"OpenOffice.org $Version"}) {
- $versions->{"OpenOffice.org $Version"} = "file://$UserInstallDir";
- $changed = '1';
- $Debug && print "Missing version, added\n";
- }
- if ($changed) {
- $Debug && print "Version changed, re-writing config\n";
- WriteVersionFile %config;
- }
-}
-else {
- # The versions file is bound to exist unless we (or the user)
- # nuked it somehow. Regenerate it. We already have the
- # installation directory at this point.
- WriteVersionFile Versions => { "OpenOffice.org $Version" => "file://$UserInstallDir" };
- $Debug && print "Re-generate config\n";
-}
-
-# Create the user/work link for "Open..." menu command to work
-# flawlessly
-sub symlinkf { unlink $_[1]; symlink $_[0], $_[1] }
-symlinkf "$SystemInstallDir/program/soffice", "$UserInstallDir/soffice";
-symlinkf "$SystemInstallDir/program/setup", "$UserInstallDir/setup";
-
-my $format = `$GConfTool --get $ConfDefaultFormat 2>&1`;
-
-if (! ($format =~ m/^OO/i)) {
- $ENV{OOO_MS_DEFAULTS}="1";
-}
-
-flock ($Lock, LOCK_UN);
-close ($Lock);
-$Debug && print "Released lock: $LockFile\n";
-
-if ($session_quickstart) {
- my $do_qstart = GetConfBool ($ConfQuickstart);
- if (!$do_qstart) {
- exit 1;
- }
- $Debug && print "Execute quickstarter\n";
- push @ooo_argv, '-quickstart';
-}
-
-# And here we go. ;-)
-exec "$UserInstallDir/soffice", @ooo_argv
diff --git a/bin/oostripimpl.pl b/bin/oostripimpl.pl
deleted file mode 100755
index b0b7bdc6e..000000000
--- a/bin/oostripimpl.pl
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/usr/bin/perl -w
-
-my $libname = shift @ARGV;
-
-$libname || die "Need a library name";
-
-my $Symbols;
-
-open ($Symbols, "objdump -T $libname |") || die "Can't objdump $libname: $!";
-
-print "{\n\tlocal:\n";
-
-while (<$Symbols>) {
- m/(\S+)$/ || next;
-
- my $line = $1;
- $line =~ m/Impl/ || next;
-
- print "\t$line;\n";
-}
-
-close ($Symbols) || die "Can't close: $!";
-
-print "};\n";
diff --git a/bin/ootouch b/bin/ootouch
deleted file mode 100755
index 89971e779..000000000
--- a/bin/ootouch
+++ /dev/null
@@ -1,63 +0,0 @@
-#!/usr/bin/perl -w
-
-if (@ARGV < 1) {
- print "ootouch [--files <regex: .*\\.cxx>] <strings to find> [...]\n";
- exit (1);
-}
-
-my @regexps = ();
-my $arg;
-$filter = '';
-while ($arg = shift @ARGV) {
- if ($arg eq '--files') {
- $filter = shift @ARGV;
- } else {
- push (@regexps, $arg);
- }
-}
-
-if (!$filter) {
- $filter = ".*\\.cxx";
-}
-
-sub touch_dir
-{
- my $path = shift;
- my $regexp = shift;
- my $DIR;
- my $name;
-
- opendir ($DIR, $path) || die "Lost $path: $!";
-
- while ($name = readdir ($DIR)) {
- my $full_path = "$path/$name";
-
- ($name eq '.' || $name eq '..') && next;
- -d $full_path && touch_dir ($full_path, $regexp);
-
- $name =~ m/$filter/ || next;
-
- my $file;
- open ($file, $full_path) || die "Can't open $full_path: $!";
- while (<$file>) {
- if (/$regexp/) {
- print "Touch: '$full_path'\n";
- my $now = time;
- utime $now, $now, $full_path;
- last;
- }
- }
- close ($file);
- }
-
- closedir ($DIR);
-}
-
-my $cwd;
-chomp ($cwd = `pwd`);
-
-my $str;
-printf "Touching '$filter' files, ...\n";
-for $str (@regexps) {
- touch_dir ($cwd, $str);
-}
diff --git a/bin/openoffice-xlate-lang b/bin/openoffice-xlate-lang
deleted file mode 100755
index 9ab4a16dd..000000000
--- a/bin/openoffice-xlate-lang
+++ /dev/null
@@ -1,135 +0,0 @@
-#!/usr/bin/perl
-
-#
-# pinched from Debian ( from Mdk )
-# http://cvs.debian.org/oo-deb/debian/local/openoffice-xlate-lang?rev=1.2&cvsroot=debian-openoffice&content-type=text/vnd.viewcvs-markup
-#
-
-use strict;
-
-my $progname=$0; $progname = $& if $progname =~ m,[^/]+$,;
-
-my %PREFIX; # used to search for prefix numbers
-my %ISOCODE; # used to search for iso codes
-my %LANGUAGE; # used to search for language names
-
-#=======================================================================
-# initialisation code - stuff the DATA into the CODES hash
-#=======================================================================
-sub init {
-
- my $prefix;
- my $code;
- my $name;
-
-
- while (<DATA>)
- {
- next unless /\S/;
- chop;
- ($prefix, $code, $name ) = split(/:/, $_, 3);
- $PREFIX{$prefix} = $prefix;
- $PREFIX{$code} = $prefix;
- $PREFIX{$name} = $prefix;
-
- $ISOCODE{$prefix} = $code;
- $ISOCODE{$code} = $code;
- $ISOCODE{$name} = $code;
-
- $LANGUAGE{$prefix} = $name;
- $LANGUAGE{$code} = $name;
- $LANGUAGE{$name} = $name;
- }
-}
-
-
-#=======================================================================
-# usage - error message
-#=======================================================================
-sub usage {
- my $errmsg = shift;
- my $errcode = shift;
- print "$progname: $errmsg\n" if $errmsg;
- print "$progname: Converts between prefix codes, iso codes and langnames\n";
- print " Usage: $progname (-i|-l|-p|-h) <code>|all\n";
- print " -i <code>: convert prefix to iso code (ex: 03 -> pt)\n";
- print " -l <code>: convert iso code to language name (ex: pt -> portuguese)\n";
- print " -p <code>: convert iso code to prefix (ex: pt -> 03)\n";
- print " the code can either be an iso code, a prefix or even a language name\n";
- print " The special code \"all\" asks for all possible values.\n\n";
- print " -h : print this help\n";
- exit $errcode;
-}
-
-#=======================================================================
-# main -
-#=======================================================================
-init();
-
-my ($LanguageCode, $LanguageMap);
-
-while ($ARGV[0] =~ /^-/) {
- $_ = shift;
- if (m/^-i/) {
- $LanguageMap = \%ISOCODE;
- }
- elsif (m/^-l/) {
- $LanguageMap = \%LANGUAGE;
- }
- elsif (m/^-p/) {
- $LanguageMap = \%PREFIX;
- }
- elsif (m/^-h/) {
- usage("",0);
- }
- else {
- usage ("unknown option $_",1);
- }
-}
-
-usage ("no operation specified on command line",1)
- if (!$LanguageMap);
-
-usage ("no language code specified on command line",1)
- if (!($LanguageCode = shift));
-
-if ($LanguageCode =~ (m/^all$/)) {
- # Asked for all codes
- my $old="";
- foreach my $key (sort values %$LanguageMap) {
- if ($key ne $old) {
- print "$key ";
- $old=$key;
- }
- }
- print "\n";
- exit 0;
-}
-
-usage ("no mapping found for $LanguageCode\n",1)
- if (!(%$LanguageMap->{$LanguageCode}));
-
-print $LanguageMap->{$LanguageCode}, "\n";
-
-1;
-
-__DATA__
-01:en:english_us
-03:pt:portuguese
-07:ru:russian
-30:el:greek
-31:nl:dutch
-33:fr:french
-34:es:spanish
-37:ca:catalan
-39:it:italian
-45:da:danish
-46:sv:swedish
-48:pl:polish
-49:de:german
-81:ja:japanese
-82:ko:korean
-86:zh-CN:chinese_simplified
-88:zh-TW:chinese_traditional
-90:tr:turkish
-96:ar:arabic
diff --git a/bin/package-lang b/bin/package-lang
deleted file mode 100755
index 9f1322c4b..000000000
--- a/bin/package-lang
+++ /dev/null
@@ -1,198 +0,0 @@
-#!/usr/bin/perl
-
-#
-# Pinched from Debian:
-# http://cvs.debian.org/oo-deb/debian/local/openoffice-dpack-lang?rev=1.2&cvsroot=debian-openoffice&content-type=text/vnd.viewcvs-markup
-#
-
-use File::Copy;
-
-# Load settings from 'setup'
-my $Vars;
-my %setup_vars;
-
-if (!$ENV{'TOOLSDIR'}) {
- print "Sucking env from setup\n";
- open ($Vars, ". ./setup ; set|") || die "Can't find setup: $!";
- while (<$Vars>) {
- /([^=]*)=(.*)/ || next;
- $setup_vars{$1} = $2;
- }
- close ($Vars);
-} else {
- print "Using inherited env\n";
- for $a (keys %ENV) {
- $setup_vars{$a} = $ENV{$a};
- }
-}
-
-my $UnzipCommand = "/usr/bin/unzip";
-my $DestDir = $setup_vars{'OOINSTDIR'};
-my $Xlate = $setup_vars{'TOOLSDIR'}. "/bin/openoffice-xlate-lang";
-my @Langs = split (' ', `$Xlate -p all`);
-my $Target = 'unxlngi4.pro';
-my $Id = '645';
-
-
-# Parse enough of <setup.ins> to get correct Directory and File sections.
-sub ReadSetup($) {
- my ($file) = @_;
- my $e;
- my %entries;
- open FILE,"$file" || die "Can't read setup from $file : $!\n";
- while (<FILE>) {
- if (/^([_A-Za-z]+)\s*([_A-Za-z0-9]+)/) {
- $entries{$1}{$2} = $e = { };
- }
- elsif (/\s*([_A-Za-z]+)\s*=\s*\"?([^;\"]+)\"?;/) {
- $e->{$1} = $2;
- }
- }
- close FILE;
-
- # Expand predefined dirs to de $DestDir variable
- $entries{Directory}{$_} = { HostName => "$DestDir" } foreach
- qw( PREDEFINED_HOMEDIR PREDEFINED_PROGDIR PREDEFINED_CONFIGDIR );
-
- \%entries;
-}
-
-sub DumpEntries(\%$) {
- my $entries = shift;
- my ($basename) = @_;
- my $sections = $entries->{$basename} if $entries->{$basename};
- while (my ($key, $value) = each(%$sections)) {
- print "$basename $key\n";
- $value->{$_} and print "\t$_\t= \"$value->{$_}\";\n"
- foreach qw(Bitmap Date DefaultDestPath DefaultLanguage
- Description FadeType FileName fontsDirFile
- fontsDirGlobalFile fontspath HostName ID Key
- Languages Name PackedName Path ProcName
- ProductName ProductVersion Section Text Time
- Value VendorBitmap);
- $value->{$_} and print "\t$_\t= $value->{$_};\n"
- foreach qw(ArchiveFiles ArchiveSize BitmapPosX BitmapPoxY
- Carrier Default Dir DiskNo FileID FontSize
- Minimal ModuleID NetDir Order ParentID
- ProfileID RegistryID ScriptVersion Size
- TextHeight TextWidth UnixRights);
- print "End\n\n";
- }
-}
-
-sub GetFullPath {
- my $dirs = shift;
- my ($id) = @_;
- return ( $dirs->{$id}->{ParentID} ? GetFullPath($dirs, $dirs->{$id}->{ParentID}) . "/" : "" )
- . $dirs->{$id}->{HostName};
-}
-
-sub mkpath {
- # Stolen in File::Path
- my($paths, $verbose, $mode) = @_;
- # $paths -- either a path string or ref to list of paths
- # $verbose -- optional print "mkdir $path" for each directory created
- # $mode -- optional permissions, defaults to 0777
- local($")= "/";
- $mode = 0777 unless defined($mode);
- $paths = [$paths] unless ref $paths;
- my(@created,$path);
- foreach $path (@$paths) {
- next if -d $path;
- # parent=dirname
- my $parent = $path; $parent =~ s#/[^/]*/?$##;
- unless (-d $parent or $path eq $parent) {
- push(@created,mkpath($parent, $verbose, $mode));
- }
- print "mkdir $path\n" if $verbose;
- unless (mkdir($path,$mode)) {
- my $e = $!;
- # allow for another process to have created it meanwhile
- die "mkdir $path: $e" unless -d $path;
- }
- push(@created, $path);
- }
- @created;
-}
-
-sub BuildLang {
- my $lang = shift;
- my $SetupDir = $setup_vars{'OOBUILDDIR'} . "/instsetoo/$Target/$lang/normal";
- my $SolverDir = $setup_vars{'OOBUILDDIR'} . "/solver/$Id/$Target";
- my $SetupConf = "$SetupDir/setup.ins";
-
- if (!-r $SetupConf) {
- print "not found";
- return 1;
- }
-
- # Parse the file and get all entries
- my $setup = ReadSetup($SetupConf);
-
- #DumpEntries %$setup, "Directory";
- #DumpEntries %$setup, "File";
-
- die "$UnzipCommand not found, please set the full path to the unzip command\n" if
- ( ! -x "$UnzipCommand" );
-
- while (my ($key, $value) = each (%{$setup->{File}})) {
- if ($value->{PackedName}) {
- # Find language-specific candidates
- if (($key =~ /_Lang$/) || ($value->{Name} =~ /\.res$/) ||
- ($key =~ /File_Help/ && $value->{Dir} =~ /gid_Dir_Help_Isolanguage/)) {
-
- # Prefer NetDir path over simple Dir
- my $outpath = GetFullPath \%{$setup->{Directory}}, $value->{NetDir} ? $value->{NetDir} : $value->{Dir};
- my $action = "None";
- -d $outpath or mkpath($outpath);
- if ($value->{Styles} =~ /PACKED/) {
- my $fileToCopy = $SolverDir . '/bin/' . $value->{Name};
- my $destFile = $outpath . '/' . $value->{Name};
-
- if( -f $destFile ) {
- unlink $destFile or die "Can't delete $destFile";
- }
-
- # Try to link file first
- if(link($fileToCopy,$destFile)) {
- $action = "Link";
- }
- else {
- copy($fileToCopy,$outpath) or die "Can't copy $fileToCopy to $outpath";
- $action = "Copy";
- }
- }
- else {
- my $fileToUnzip = $SolverDir . '/pck/' . $value->{Name};
- if( -r $fileToUnzip ) {
- $action = "Unzip";
- system("$UnzipCommand -qq -o $fileToUnzip -d $outpath");
- }
- else {
- $action = "Skip";
- }
- }
- print "$action $value->{PackedName} - $value->{Name} $value->{Styles} $value->{NetDir} $value->{Dir} \n";
- }
- }
- }
-
- print "done";
-
- return 0;
-}
-
-for $a (@Langs) {
- $a eq '01' && next; # English built-in
-
- $std_locale = `$Xlate -i $a`;
- chomp ($std_locale);
- $txt_name = `$Xlate -l $a`;
- chomp ($txt_name);
-
- print "Building language $txt_name ($std_locale:$a): ";
-
- BuildLang ($a);
-
- print "\n";
-}
diff --git a/bin/package-ooo b/bin/package-ooo
deleted file mode 100755
index f4905fce9..000000000
--- a/bin/package-ooo
+++ /dev/null
@@ -1,141 +0,0 @@
-#!/bin/bash
-
-# Based on docs/setup.txt
-
-#
-# See setup for user tweakables.
-#
-. ./setup
-
-export LANG='';
-
-if !(test -f $OOBUILDDIR/$STAMP); then
- echo "Source build failed, no stamp";
- exit 1;
-fi
-
-AUTORESPONSE=$OOBUILDDIR/autoresponse.conf
-
-echo "Create auto-response file"
-echo "[ENVIRONMENT]
-INSTALLATIONMODE=INSTALL_NETWORK
-INSTALLATIONTYPE=STANDARD
-DESTINATIONPATH=$OOINSTDIR
-OUTERPATH=
-LOGFILE=
-LANGUAGELIST=<LANGUAGE>
-
-[JAVA]
-JavaSupport=preinstalled_or_none" > $AUTORESPONSE
-
-echo "Building $OOINSTDIR/ooo-wrapper$BINSUFFIX";
-sed -e "s|@OOINSTBASE@|$OOINSTBASE|g
- s|@SYSCONFDIR@|$SYSCONFDIR|g
- s|@BINSUFFIX@|$BINSUFFIX|g
- s|@VERSION@|$VERSION|g" $TOOLSDIR/bin/ooo-wrapper.in \
- >| "$OOBUILDDIR/ooo-wrapper$BINSUFFIX" || exit 1;
-mkdir -p $PREFIX/bin
-mkdir -p $PREFIX/man/man1
-cp -f $OOBUILDDIR/ooo-wrapper$BINSUFFIX $PREFIX/bin
-chmod +x $PREFIX/bin/ooo-wrapper$BINSUFFIX
-for app in calc draw impress html math writer ffice; do
- ln -sf ooo-wrapper${BINSUFFIX} $PREFIX/bin/oo${app}${BINSUFFIX}
- if test "z$DISTRO" != "zDebian"; then
- echo ".so man1/openoffice$BINSUFFIX.1" >| $PREFIX/man/man1/oo${app}$BINSUFFIX.1;
- fi
-done
-# SuSE - specific hack, prolly not needed.
-# mkdir -p /usr/X11R6/bin/OOo-wrapper.
-# ln -s /usr/bin/ooo-wrapper /usr/X11R6/bin/OOo-wrapper
-
-if test "z$DISTRO" != "zDebian"; then
- echo "Generating man page ...";
- sed -e "s|@BINSUFFIX@|$BINSUFFIX|g" $TOOLSDIR/man/openoffice.1.in \
- >| "$OOBUILDDIR/openoffice$BINSUFFIX.1" || exit 1;
- cp -f $OOBUILDDIR/openoffice$BINSUFFIX.1 $PREFIX/man/man1
-fi
-
-echo "Building $OOINSTDIR/install-dict";
-sed -e "s|@OOINSTBASE@|$OOINSTBASE|g" $TOOLSDIR/bin/install-dict.in >| "$OOBUILDDIR/install-dict" || exit 1;
-mkdir -p $OOINSTDIR
-cp -f $OOBUILDDIR/install-dict $OOINSTDIR
-chmod +x $OOINSTDIR/install-dict
-
-mkdir -p $SYSCONFDIR/openoffice
-cp -f $TOOLSDIR/etc/autoresponse$BINSUFFIX.conf $SYSCONFDIR/openoffice
-
-echo "Installing system files ...";
-mkdir -p $PREFIX/share/gnome/ximian/applications
-cp $TOOLSDIR/desktop/*$BINSUFFIX.desktop $PREFIX/share/gnome/ximian/applications
-
-mkdir -p $PREFIX/share/pixmaps
-cp $TOOLSDIR/desktop/ximian-openoffice-*.png $PREFIX/share/pixmaps
-
-# Disable odk stuff for now
-if test "disable" = "this"; then
- echo "Installing the ODK";
- ODK_SRC=$OOBUILDDIR/odk$BUILD_MAGIC;
- ODK_INCLUDE=$OOINSTDIR/include
- echo " unzip";
- rm -Rf $ODK_SRC
- tar -C $OOBUILDDIR -xzf $OOBUILDDIR/solver/$BUILD_MAGIC/$ARCHITECTURE/bin/odk$BUILD_MAGIC.tar.gz;
- echo " setup $OOINSTDIR";
- mkdir -p $ODK_INCLUDE
- mkdir -p $OOINSTDIR
- mkdir -p $OOINSTDIR/utils
- mkdir -p $OOINSTDIR/program
- mkdir -p $OOINSTDIR/idl
- mkdir -p $OOINSTDIR/xml
- mkdir -p $OOINSTDIR/share/doc/openoffice$BINSUFFIX
- mkdir -p $PREFIX/lib/pkgconfig
- echo " re-arrange files";
- cp -a $ODK_SRC/include/* $ODK_INCLUDE
- cp -a $ODK_SRC/linux/lib/* $OOINSTDIR/program
- cp -a $ODK_SRC/linux/bin/* $OOINSTDIR/utils
- cp -a $ODK_SRC/idl/* $OOINSTDIR/idl
- cp -a $ODK_SRC/docs/* $OOINSTDIR/share/doc/openoffice$BINSUFFIX
- cp -a $ODK_SRC/examples $OOINSTDIR/share/doc/openoffice$BINSUFFIX
- cp -a $ODK_SRC/xml/* $OOINSTDIR/xml
- echo " create pkgconfig file";
- echo "
-libdir=$OOINSTBASE/program
-includedir=$OOINSTBASE/include
-idlinclude=$OOINSTBASE/idl
-xmlinclude=$OOINSTBASE/xml
-toolsdir=$OOINSTBASE/utils
-
-Name: openoffice$BINSUFFIX
-Description: The OpenOffice.org infrastructure
-Version: $VERSION
-Libs: -L\${libdir} -lprot_uno_uno
-Cflags: -I\${includeddir}" > $PREFIX/lib/pkgconfig/openoffice$BINSUFFIX.pc
-fi
-
-if (test -f $OOINSTDIR/$STAMP) && (!(test "z$2" = "z--clean") || !(test "z$WITH_SRC" = "z")); then
- echo "Skipping unpack";
-else
- echo "Cleaning $OOINSTDIR";
- rm -Rf $OOINSTDIR;
-
- INSTALLER_PATH="`tcsh -c "cd $OOBUILDDIR; source $OOBUILDDIR/*.Set; echo \"$OOBUILDDIR/instsetoo/\\$INPATH/01/normal\""`";
- export DISPLAY=''; # clobber;
- echo "Execute from $INSTALLER_PATH to $OOINSTDIR [$LANG]";
- cd $INSTALLER_PATH || exit 1;
-
- ./setup -net -v -r:$AUTORESPONSE -nogui || exit 1;
- echo "Done";
-
- echo "Stripping binaries";
- strip $OOINSTDIR/program/*.so
- touch $OOINSTDIR/$STAMP || exit 1;
- echo "Done...";
-fi
-
-echo "Building lang-packs ...";
-
-cd $TOOLSDIR/bin || exit 1;
-./package-lang || exit 1;
-
-echo "Packaging succeeded";
-exit 0;
-
diff --git a/bin/re-root b/bin/re-root
deleted file mode 100755
index cef3c6466..000000000
--- a/bin/re-root
+++ /dev/null
@@ -1,76 +0,0 @@
-#!/usr/bin/perl -w
-
-sub scan_dirs($$);
-
-sub rewrite_cvs($$)
-{
- my $dir_path = shift;
- my $new_root = shift;
-
- -d $dir_path || return;
-
- printf "Re-write root $dir_path\n";
- my $file;
- my $file_name = "$dir_path/Root";
- if (open ($file, ">$file_name") ) {
- print $file "$new_root\n";
- close $file;
- } else {
- print "Couldn't open '$file_name': $!\n";
- }
-
- return;
-
-# speculative - as I recall the internal repository path is different too
- my $src;
- my $src_name = "$dir_path/Repository";
- if (open ($src, $src_name)) {
- my $dest;
- my $dest_name = "$src_name.tmp";
- open ($dest, ">$dest_name") || die "Can't open $dest_name for writing: $!";
- while (<$src>) {
- s/^foo\///;
- print $dest $_;
- }
- close ($src) || die "can't close $src_file: $!";
- close ($dest) || die "can't close $dest_file: $!";
- rename $dest_file, $src_file || die "Can't rename $src_file to $dest_file: $!";
- }
-}
-
-sub scan_dirs($$)
-{
- my $dir_path = shift;
- my $new_root = shift;
-
- my $misc_dir;
- opendir ($misc_dir, $dir_path) || return;
- my $name;
- while ($name = readdir ($misc_dir)) {
- $name =~ /^\./ && next;
- -d "$dir_path/$name/CVS" && scan_dirs ("$dir_path/$name", $new_root);
- }
- closedir ($misc_dir);
- rewrite_cvs ("$dir_path/CVS", $new_root);
-}
-
-# main
-my $cvsPath;
-chomp ($pwd = `pwd`);
-
-if (!($cvsPath = shift @ARGV)) {
- print "Syntax: re-root <path-of-checkout> [<new root>]\n";
- exit 1;
-}
-if ($cvsPath =~ /^\./) {
- $cvsPath = $pwd . "/$cvsPath";
-}
-
-my $newRoot;
-if (!($newRoot = shift @ARGV)) {
- $newRoot = ':pserver:anoncvs@anoncvs.services.openoffice.org:/cvs';
-}
-
-print "Path: $cvsPath\n";
-
-scan_dirs ($cvsPath, $newRoot);
diff --git a/bin/relocate b/bin/relocate
deleted file mode 100755
index 32c3b3073..000000000
--- a/bin/relocate
+++ /dev/null
@@ -1,116 +0,0 @@
-#!/usr/bin/perl -w
-
-sub sniff_set($)
-{
- my $build_dir = shift;
- my ($dirhandle, $fname);
-
- opendir ($dirhandle, $build_dir) || die "Can't open $build_dir";
- while ($fname = readdir ($dirhandle)) {
- $fname =~ /Set.sh$/ && last;
- }
- closedir ($dirhandle);
-
- return $fname;
-}
-
-sub rewrite_set($$)
-{
- my $new_root = shift;
- my $set = shift;
- my $old_root;
- my $tmp_fname = "$new_root/$set.new";
- my $old_fname = "$new_root/$set";
- my $old_file;
- my $new_file;
-
- open ($old_file, $old_fname) || die "Can't open $old_fname: $!";
- open ($new_file, ">$tmp_fname") || die "Can't open $tmp_fname: $!";
-
- while (<$old_file>) {
- if (/\s*([^=]+)\s*=\s*\"([^\"]+)\"/) {
- my ($name, $value) = ($1, $2);
- if ($name eq 'SRC_ROOT') {
- $old_root = $value;
- }
- $value =~ s/$old_root/$new_root/g;
- print $new_file "$name=\"$value\"\n";
- } else {
- print $new_file $_;
- }
- }
-
- close ($new_file) || die "Failed to close $tmp_fname: $!";
- close ($old_file) || die "Failed to close $old_fname: $!";
-
- rename $tmp_fname, $old_fname || die "Failed to replace $old_fname: $!";
-
- return $old_root;
-}
-
-sub rewrite_product_dpcc($$$)
-{
- my $new_root = shift;
- my $product_path = shift;
- my $old_root = shift;
-
- my $path = "$new_root/$product_path/misc";
- my $misc_dir;
- opendir ($misc_dir, $path) || return;
- my $name;
- while ($name = readdir ($misc_dir)) {
- $name =~ /\.dpcc$/ || next;
-# Should re-write the dpcc files - but perhaps this'd screw with timestamps ?
- unlink ("$path/$name");
- }
- closedir ($misc_dir);
-}
-
-sub rewrite_dpcc($$)
-{
- my $new_root = shift;
- my $old_root = shift;
-
- print "re-writing dependencies:";
- my $top_dir;
- my $idx = 0;
- opendir ($top_dir, $new_root) || die "Can't open $new_root: $!";
- my $name;
- while ($name = readdir ($top_dir)) {
- my $sub_dir;
- opendir ($sub_dir, "$new_root/$name") || next;
- my $sub_name;
- while ($sub_name = readdir ($sub_dir)) {
- if ($sub_name =~ /\.pro$/) {
- $idx || print "\n ";
- if ($idx++ == 6) {
- $idx = 0;
- }
- print "$name ";
- rewrite_product_dpcc ($new_root, "$name/$sub_name", $old_root);
- }
- }
- closedir ($sub_dir);
- }
- closedir ($top_dir);
-}
-
-for $a (@ARGV) {
- if ($a eq '--help' || $a eq '-h') {
- print "relocate: syntax\n";
- print " relocate /path/to/new/ooo/source_root\n";
- }
-}
-
-$OOO_BUILD = shift (@ARGV) || die "Pass path to relocated source tree";
-$OOO_BUILD =~ /^\// || die "Path must be absolute";
-
-$set = sniff_set($OOO_BUILD) || die "Can't find env. set";
-
-$OLD_ROOT = rewrite_set($OOO_BUILD, $set);
-
-print "Relocate: $OLD_ROOT -> $OOO_BUILD\n";
-
-rewrite_dpcc($OOO_BUILD, $OLD_ROOT);
-
-print "done.\n";
diff --git a/bin/reorder-link b/bin/reorder-link
deleted file mode 100755
index 17c64f51a..000000000
--- a/bin/reorder-link
+++ /dev/null
@@ -1,136 +0,0 @@
-#!/usr/bin/perl -w
-
-# Libraries to re-order for startup speed ...
-
-@libraries = (
- 'libsw%%li.so', 'sw', 'sw.lib',
- 'libsfx%%li.so', 'sfx2', 'sfx.lib',
- 'libsvx%%li.so', 'svx', 'svx.lib'
- );
-
-sub find_bindings
-{
- my $file;
- my $ldname = shift;
- my %binds;
-
- print "Reading bindings for: $ldname\n";
- open ($file, $output) || die "Can't open $output: $!";
- while (<$file>) {
- /$ldname:\s+.*\`([^\']*)\'/ || next;
- my $sym = $1;
- my $count;
- $count = ++$binds{$sym};
- }
- close ($file);
-
- return %binds;
-}
-
-sub make_path
-{
- my $base = shift;
- my $fname = shift;
-
- print "Base '$base'\n";
- return ($base . "/unxlngi4.pro/slb/" . $fname);
-}
-
-sub read_object_list
-{
- my $base = shift;
- my $fname = shift;
- my $path;
- my %objs;
-
- $path = make_path ($base, $fname);
-
- my $file;
- open ($file, $path) || die "Can't open $path: $!\n";
- while (<$file>) {
- chomp;
- $_ eq '' && next;
- $objs{$_} = 0;
- }
- close ($file);
-
- return %objs;
-}
-
-sub count_symbols
-{
- my $path = shift;
- my $bindings = shift;
- my $count = 0;
- my $pipe;
-
- print ".";
-
-# FIXME - we need to check the type of re-location I think [!?] - needs to be a provides ..
- open $pipe, "nm $path|" || die "Can't objdump $path: $!";
- while (<$pipe>) {
- /\s+([^\s]+)$/ || next;
-# hard to know which is best - this seems so,
-# /[TGDBRS]\s+([^\s]+)$/ || next;
- if (exists $bindings->{$1}) {
- $count = $count + $bindings->{$1};
- }
- }
- close $pipe;
-
- return $count;
-}
-
-if (@ARGV < 1) {
- print "Syntax:\n";
- print " reorder-link <path-to-output>\n";
- print " where output is generated by LD_DEBUG=bindings\n";
- exit (1);
-}
-
-$output = shift @ARGV;
-
-{
- print "Sucking env from setup\n";
- open ($Vars, ". ./setup ; set|") || die "Can't find setup: $!";
- while (<$Vars>) {
- /([^=]*)=(.*)/ || next;
- $setup_vars{$1} = $2;
- }
- close ($Vars);
-}
-
-# Hack - clobber for test setup
-$setup_vars{'OOBUILDDIR'} = '/opt/OpenOffice/OOO_STABLE_1';
-
-while (@libraries) {
- my $ldname = shift @libraries;
- my $path = shift @libraries;
- my $libname = shift @libraries;
-
- $ldname =~ s/%%/641/;
-
- my $base = $setup_vars{'OOBUILDDIR'} . "/$path";
-
- my %bindings = find_bindings ($ldname);
- my %objects = read_object_list ($base, $libname);
- my $obj;
-
- printf "Counting symbols ";
- foreach $obj (keys %objects) {
- $objects{$obj} = count_symbols ("$base/$obj", \%bindings);
- }
- printf "\n";
-
- my $out_path = make_path ($base, "$libname.sorted");
- my $out_file;
- print "Writing new map to $out_path ...\n";
- open ($out_file, ">$out_path") || die "Can't open $out_path: $!";
-
- foreach $obj (sort { $objects{$b} <=> $objects{$a} } keys %objects) {
- print $objects{$obj}. ", ";
- print $out_file "$obj\n";
- }
- close ($out_file);
- print "\ndone\n";
-}
diff --git a/bin/scale-icons b/bin/scale-icons
deleted file mode 100755
index da7e73c61..000000000
--- a/bin/scale-icons
+++ /dev/null
@@ -1,179 +0,0 @@
-#!/usr/bin/perl -w
-
-# Newer ImageMagick's don't like some of the
-# broken icons OO.o contains.
-$lc_good = 'res/lc00000.bmp';
-$sc_good = 'res/sc00000.bmp';
-
-# beautiful hard-coding action.
-@scale_dirs = (
- 'res',
- 'sc/res/imglst/apptbx',
- 'sc/res/imglst/navipi',
- 'sd/res/imagelst',
- 'sd/res/imagelst/korean',
- 'sw/win/imglst',
- 'sw/win/imglst/korean',
- 'sch/res',
- 'offmgr/res',
- 'res/enus',
- 'dbaccess/res',
- 'sc/res',
- 'sd/res',
- 'sw/win/res',
- 'starmath/res',
- 'res/arab',
- 'res/catalan',
- 'res/chinsim',
- 'res/chintrad',
- 'res/czech',
- 'res/dtch',
- 'res/fren',
- 'res/ital',
- 'res/japn',
- 'res/korean',
- 'res/pol',
- 'res/poln',
- 'res/port',
- 'res/portbr',
- 'res/russ',
- 'res/slovak',
- 'res/span',
- 'res/turk'
- );
-
-%scale_exceptions = (
- 'sw/win/imglst' => '[sn][cr][0-9]*\.bmp',
- 'sc/res/imglst/navipi' => 'na0.*\.bmp',
- 'res' => '[si][cm][0-9]*\.bmp'
-);
-
-sub usage {
- printf "Usage: scale-icons </path/to/ooo_checkout> [--quiet] [--backupdir=</path/for/original_bmps>\n";
-}
-
-if (@ARGV < 1) {
- usage ();
- exit (1);
-}
-
-$OOO_PATH = shift (@ARGV);
-
-if ($OOO_PATH =~ m/--.*/) {
- usage ();
- exit (1);
-}
-
-$lc_good = "$OOO_PATH/$lc_good";
-$sc_good = "$OOO_PATH/$sc_good";
-
-$quiet = 0;
-$remove = 0;
-$backupdir = "";
-
-foreach $a (@ARGV) {
- if ($a eq '--quiet') {
- $quiet = 1;
- } elsif ($a eq '--remove') {
- $remove = 1;
- } elsif ($a =~ m/--backupdir=(.*)/) {
- $backupdir = $1;
- }
-}
-
-sub handle_scaled {
- my $relinstdir = shift;
- my $small_regex = shift;
- my $large_regex = shift;
- my ($dirhandle, $file);
- my $instdir = "$OOO_PATH/$relinstdir";
- my $STAMPNAME = "$instdir/ooo-convert-stamp";
-
- if (! -d $instdir) {
- print "skipping $instdir\n";
- next;
- }
-
- if ($remove) {
- -f $STAMPNAME || return;
- } else {
- -f $STAMPNAME && return;
- }
-
- print "Scaling: '$instdir'\n";
-
- opendir ($dirhandle, $instdir) || die "can't opendir $instdir: $!";
-
- while ($file = readdir ($dirhandle)) {
- if ($file =~ m/^$small_regex$|^$large_regex$/) {
- my $src = "$instdir/$file";
- my $dest = "$src.cnvt";
-
- if ($remove) {
- $quiet || print "Remove '$src'\n";
- unlink ($src);
- next;
- }
- $quiet || print "Convert '$src'\n";
-
- -f $src || die "Internal error";
-
- if ($src =~ /$small_regex/) {
- if (system ("convert -mattecolor '#c0c0c0' -frame 2x2 -crop 16x16+2+2 $src $dest") != 0) {
- print "*** Warning: convert failed; trying copy\n";
- system ("cp -f $sc_good $dest");
- }
- } elsif ($src =~ /$large_regex/) {
- if (system ("convert -mattecolor '#c0c0c0' -frame 2x2 -crop 24x24+3+2 $src $dest") != 0) {
- print "*** Warning: convert failed; trying copy\n";
- system ("cp -f $lc_good $dest");
- }
- }
- if (-f $dest) {
- print $backupdir ? "$backupdir/$relinstdir/$file" : "$src.orig", "\n";
- rename ($src,
- $backupdir ? "$backupdir/$relinstdir/$file" : "$src.orig");
- rename ($dest, $src);
- }
- }
- }
-
- closedir ($dirhandle);
-
- if ($remove) {
- unlink ("$STAMPNAME");
- } else {
- my $stamphandle;
- open ($stamphandle, ">$STAMPNAME") || die "Error stamping $STAMPNAME $!";
- print $stamphandle "Stamp\n";
- close ($stamphandle);
- }
-}
-
-for $a (@scale_dirs) {
- my $small_regex;
- if (defined ($scale_exceptions{$a})) {
- $small_regex = $scale_exceptions{$a};
- print "Exception on '$a' => '$small_regex'\n";
- } else {
- $small_regex = 'sc[0-9]*\.bmp';
- }
- if ($backupdir) {
- if (system ("mkdir -p $backupdir/$a\n") != 0) {
- print "*** Warning: could not create $backupdir/$a\n" ;
- $backupdir = "";
- }
- }
- handle_scaled ("$a", $small_regex, 'lc[0-9]*\.bmp');
-}
-
-print "Binning dupped icons\n";
--f "$OOO_PATH/extras/source/symbols/makefile.mk" || die "No dupped icon directory";
-if ($backupdir) {
- system ("mkdir -p $backupdir/extras/source/symbols");
- system ("cp -a $OOO_PATH/extras/source/symbols/*.bmp $backupdir/extras/source/symbols");
-}
-system ("rm -f $OOO_PATH/extras/source/symbols/*.bmp");
-
-print "Completed cleanly.\n";
-exit (0);
diff --git a/bin/setup.in b/bin/setup.in
deleted file mode 100755
index 17a06c061..000000000
--- a/bin/setup.in
+++ /dev/null
@@ -1,128 +0,0 @@
-# The tree layout with WITH_SRC is:
-#
-# ooo/ [ pointed to by WITH_SRC ]
-# binutils-2.13
-# gcc-3.0.4
-# j2sdk1.3.1
-# ooo-build-$BUILD_VERSION
-# etc.
-
-# shrink this to ENUS,GERM for a faster build
-LANGS="ENUS,FREN,GERM,SPAN,ITAL,DTCH,PORT,SWED,POL,RUSS";
-LANGS="$LANGS,DAN,GREEK,TURK,CHINSIM,CHINTRAD,JAPN,KOREAN";
-LANGS="$LANGS,CAT";
-
-# this undetectable mess rocks:
-ARCHITECTURE=unxlngi4.pro
-BUILD_MAGIC=645
-
-DISTRO='@DISTRO@'
-WITH_SRC='@WITH_SRC@'
-VERSION='@OOO_VERSION@'
-BINSUFFIX='@OOO_BINSUFFIX@'
-CVSTAG='@TAG@'
-
-
-if test "z$DISTRO" = "zRHFedora"; then
-CONFIGURE_OPTIONS="--with-lang=$LANGS \
- --enable-libart --enable-libsn --enable-crashdump=no \
- --enable-symbols=SMALL --with-system-zlib --enable-fontconfig";
-else
-CONFIGURE_OPTIONS="--with-lang=$LANGS \
- --enable-libart --enable-libsn --enable-crashdump=no \
- --without-fonts --disable-rpath \
- --with-system-zlib --enable-fontconfig";
-fi
-
-ENABLE_BONOBO=@ENABLE_BONOBO@
-ENABLE_JAVA=@ENABLE_JAVA@
-# Misc. internal
-STAMP=ooo-build-stamp
-TOOLSDIR='@TOOLSDIR@'
-BASEDIR='@BASEDIR@'
-OODESTDIR=$DESTDIR
-OOBUILDDIR='@OOBUILDDIR@'
-SYSTEM_GCC='@SYSTEM_GCC@'
-
-# clobber bogus env vars. they badly screw things up
-unset DESTDIR;
-unset CC;
-unset CXX;
-unset ERROR_FLAGS;
-unset MAKE
-unset BUILDDIR
-unset SRCDIR
-unset WARN_CFLAGS
-
-if !(test "z$WITH_SRC" = "z"); then
- # Building in the build system ...
- echo "In the build system ..."
-
- BASEDIR="@WITH_SRC@"
- SRCDIR='<No manual unpacking required>'
- BUILDDIR=$BASEDIR
-fi
-
-# Where to install to
-PREFIXBASE=@prefix@
-PREFIX=$OODESTDIR$PREFIXBASE
-SYSCONFBASE=@sysconfdir@
-SYSCONFDIR=$OODESTDIR$SYSCONFBASE
-OOINSTBASE=@prefix@/lib/@OOOINSTALLDIRNAME@
-OOINSTDIR=$OODESTDIR$OOINSTBASE
-
-CVSROOT=':pserver:anoncvs@cvs.openoffice.org:/cvs'
-TCSH=/bin/tcsh
-
-# Misc directories
-if test "z$WITH_SRC" = "z"; then
- SRCDIR=$BASEDIR/src
- BUILDDIR=$BASEDIR/build
-fi
-
-# setup paths
-PATH="$BUILDDIR/bin:$PATH"
-if test "z$ENABLE_JAVA" = "zyes"; then
- PATH="$BUILDDIR/jdk/bin:$PATH"
-else
- CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS --disable-java"
-fi
-
-LD_LIBRARY_PATH="$BUILDDIR/lib:$LD_LIBRARY_PATH"
-if test "$DISTRO" = "Ximian" ; then
- RPM_RELEASE=1.ximian.1
-fi
-CCACHE_DIR=$BUILDDIR/.ccache
-
-export LD_LIBRARY_PATH PATH CVSROOT CVSTAG
-export CCACHE_DIR BUILDDIR OOBUILDDIR BUILD_FLAGS
-export VERSION TOOLSDIR
-export PREFIX PREFIXBASE SYSCONFDIR SYSCONFBASE
-export OOINSTDIR OOINSTBASE
-export OODESTDIR CONFIGURE_OPTIONS WITH_SRC DISTRO
-export BINSUFFIX ARCHITECTURE BUILD_MAGIC
-export ENABLE_BONODO BONOBODIR ENABLE_JAVA
-
-if test "$DISTRO" = "Ximian" ; then
- export RPM_RELEASE
-fi
-
-echo "Setup:"
-echo " Tag: '$CVSTAG'"
-echo " Flags: '$BUILD_FLAGS'"
-echo " Suffix: '$BINSUFFIX'"
-echo " Dir: '$BUILDDIR'"
-echo " DestDir: '$DESTDIR'"
-echo " Path: '$PATH'"
-echo " Prefix: '$PREFIX'"
-echo " Sysconf: '$SYSCONFDIR'"
-echo " OOInBase: '$OOINSTBASE'"
-echo " OOInstall: '$OOINSTDIR'"
-echo " OODestDir: '$OODESTDIR'"
-echo " Config: '$CONFIGURE_OPTIONS'"
-echo " OOo-Bonobo: '$ENABLE_BONOBO'"
-
-if !(test "z$WITH_SRC" = "z"); then
- echo "Build environment:";
- set
-fi
diff --git a/bin/snapshot-build b/bin/snapshot-build
deleted file mode 100755
index 2f3be7502..000000000
--- a/bin/snapshot-build
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/bash
-
-failed()
-{
- echo "$1";
- sleep 3600;
-}
-
-# find the parent directory.
-while (!(test -f configure)) do cd ..; done
-
-while (true; ) do
-
- DESTDIR="`pwd`/dest";
-
- echo "Started build `date`";
- rm -Rf $DESTDIR;
- export DESTDIR;
-
- if !(cvs upd -A); then
- failed "Update failed";
-
- elif !(./autogen.sh); then
- failed "Autogen failed";
-
- elif !(make); then
- echo "Make failed";
-
- elif !(make install); then
- failed "Make install failed";
-
- elif !(rpmbuild -bb --nobuild ooo1.1.spec); then
- failed "Failed to pack";
-
- fi
-
- sleep 10;
-done
diff --git a/bin/tinder-build b/bin/tinder-build
deleted file mode 100755
index b87fbf83f..000000000
--- a/bin/tinder-build
+++ /dev/null
@@ -1,106 +0,0 @@
-#!/usr/bin/perl -w
-
-use IO::Handle;
-
-@BUILD_TAGS = ( 'OOO_1_0_2' );
-
-# $BUILDNAME = `hostname`; chomp($BUILDNAME);
-$BUILDNAME = 'Ximian x86';
-$TINDER_DEST = 'ooo@ooo.ximian.com';
-$SENDMAIL = '/usr/sbin/sendmail';
-$LOGDIR = $ENV{'HOME'} . "/build-logs";
-`mkdir -p $LOGDIR`;
-
-# 'not_running', 'building', 'build_failed', 'test_failed', 'success'
-sub start_mail {
- my $status = shift;
- my $tree = shift;
- my $starttime = shift;
- my $MAIL;
- my $MAIL_HEADER =
- "X-Tinder: cookie\n".
- "\n". # vital header / body separator
- "tinderbox: administrator: michael\@ximian.com\n".
- "tinderbox: builddate: deprecated\n".
- "tinderbox: starttime: $starttime\n".
- "tinderbox: buildname: $BUILDNAME\n".
- "tinderbox: errorparser: unix\n".
- "tinderbox: status: $status\n".
- "tinderbox: timenow: ". time(). "\n".
- "tinderbox: tree: $tree\n".
- "tinderbox: END\n".
- "\n"; # end of tinder header separator
-
- print "Mailing '$status'\n";
-
- if ($tree eq 'OOO_STABLE_1') { # secret stuff ...
- open ($MAIL, ">/dev/null");
- } else {
-# open ($MAIL, "|cat > $TINDER_DEST") || die "Can't log to file";
- open ($MAIL, "|$SENDMAIL $TINDER_DEST") || die "Can't send mail";
- print $MAIL $MAIL_HEADER;
- }
-
- return $MAIL;
-}
-
-sub end_mail {
- my $MAIL = shift;
- close ($MAIL);
-}
-
-sub send_msg {
- my $status = shift;
- my $tree = shift;
- my $starttime = shift;
- my $mailbody = shift;
-
- $MAIL = start_mail ($status, $tree, $starttime);
- local $SIG{PIPE} = 'IGNORE';
- print $MAIL $mailbody;
- end_mail ($MAIL);
-}
-
-sub build_one {
- my $tree = shift;
- my $starttime = time();
- my $buildlog = "$LOGDIR/log-$tree-$starttime";
- my $ret;
- my $MAIL;
-
- print "Building $tree: ".$starttime."\n";
-
-# $MAIL = start_mail ('building', $tree, $starttime);
-# end_mail ($MAIL);
-
- printf "Building log: $buildlog ...\n";
- if (system ("./build-ooo $tree --checkout >& $buildlog")) {
- $status = 'build_failed';
- } elsif (system ("./package-ooo $tree --clean >> $buildlog 2>&1")) {
- $status = 'test_failed';
- } else {
- $status = 'success';
- }
-
- my $LOG;
- open ($LOG, "$buildlog") || warn "Can't open $buildlog: $!";
- while (<$LOG>) {
- $mailbody .= $_;
- }
- close ($LOG);
-
-# send_msg ($status, $tree, $starttime, $mailbody);
-}
-
-if (@ARGV) {
- @BUILD_TAGS = @ARGV;
-}
-
-while (1) {
- print "Starting cycle ".gmtime(time())."\n";
- foreach $a (@BUILD_TAGS) {
- build_one ($a);
- }
- print "Done cycle, pause ";
- sleep (60 * 5);
-}
diff --git a/bin/tunnel b/bin/tunnel
deleted file mode 100755
index ffe75571a..000000000
--- a/bin/tunnel
+++ /dev/null
@@ -1 +0,0 @@
-ssh -f -2 -P -L 2401:localhost:2401 tunnel@openoffice.org sleep 140000 < /dev/null > /dev/null
diff --git a/bin/unused.pl b/bin/unused.pl
deleted file mode 100755
index 7aac912e5..000000000
--- a/bin/unused.pl
+++ /dev/null
@@ -1,205 +0,0 @@
-#!/usr/bin/perl -w
-
-$total_defined = 0;
-%libs = ();
-%symbols = ();
-%ex_syms = ();
-@prefix = ();
-
-$path='/opt/OpenOffice/OOO_STABLE_1/solver/641/unxlngi4.pro';
-
-# for various tools.
-$ENV{LD_LIBRARY_PATH}="$path/lib:$ENV{LD_LIBRARY_PATH}";
-
-sub build_libs {
- my $file;
- my $dirhandle;
- my $path = shift;
-
- opendir ($dirhandle, $path) || die "Can't open dir $path: $!";
- while ($file = readdir ($dirhandle)) {
- if ($file =~ m/\S+.so/ &&
- !($file =~ m/used/)) {
- $libs{"$path/$file"} = undef;
- }
- }
- closedir ($dirhandle);
-}
-
-sub find_deps {
- my $lib = shift;
- my @deps = ();
- my $ldd;
-
- open $ldd, "ldd $lib|" || die "Can't ldd $lib: $!";
-
- while (<$ldd>) {
-# print "Dep $_\n";
- /not found/ && die "Missing dep-lib ('$lib'): '$_'\n";
- if (/\s+\S+\s\=\>\s+(\S+)\s+\(/) {
- if (exists ($libs{$1})) {
- push @deps, $1;
- }
- }
- }
- close $ldd;
-
- return @deps;
-}
-
-sub insert_symbols {
- my $obj;
- my $defined = 0;
- my $referenced = 0;
- my $lib = shift;
-# my @fixups = ();
- my @external = ();
- my $pref = join ('', @prefix) . ' ';
-
-# print "$pref inserting from $lib\n";
-
-# Use '-C' to get de-mangled symbols ...
- open $obj, "objdump -T $lib|" || die "Can't objdump $lib: $!";
-
- while (<$obj>) {
- /[0-9a-f]*\s+([g ])\s+..\s+(\S*).....................\s+(.*)/ || next;
-
- my ($symbol, $type) = ($3, $2);
-
- if (!$symbol || !$type) {
- next;
- }
-
- if ($type eq '.text') {
- if (exists $symbols{$symbol}) {
-# FIXME: investigate all these
-# print "$pref possible duplicate def of '$symbol'\n";
- } else {
-# print "$pref define symbol: '$symbol'\n";
- $symbols{$symbol} = $lib;
- }
- $defined++;
- $total_defined++;
- } elsif ($type eq '*UND*') {
- push (@external, $symbol);
- }
- }
-
- for $symbol (@external) {
- if (exists $symbols{$symbol}) {
- my $val;
- $referenced++;
- $val = $symbols{$symbol};
- $val =~ m/^r-/ || ($symbols{$symbol} = "r-$val");
- } else {
- $ex_syms{$symbol} = "$lib";
- }
- }
-
- print "$pref $defined defined, $referenced referenced\n";
-
- close $obj;
-}
-
-sub resolve_symbols {
- my $lib = shift;
- my @deps;
-
- if ($libs{$lib}) {
- return;
- }
-
- @deps = find_deps ($lib);
-
- print join ('', @prefix), "resolving library $lib:\n";
- push @prefix, ' ';
-
- for $resolve (@deps) {
- resolve_symbols ($resolve);
- }
-
- insert_symbols ($lib);
-
- pop @prefix;
-
- $libs{$lib} = 'resolved';
-}
-
-# Main:
-
-my $instset = 0;
-
-if ($instset) {
- # This path misses the symbols
- # needed by the builtin utils
- build_libs ($path);
- build_libs ("$path/filter");
- build_libs ("$path/components");
- # custom nastiness
- $libs{"$path/soffice.bin"} = undef;
- $libs{"$path/setup.bin"} = undef;
-} else {
- build_libs ("$path/lib");
-}
-
-# builtin tools ...
-@tools = ('autodoc', 'bmp', 'bmpgui', 'cfgex',
- 'checkdll', 'checkscp', 'checksingleton',
- 'cppumaker', 'g2g', 'idlc',
- 'localize', 'lzip', 'makedepend',
- 'proxy', 'rdbmaker', 'regcomp', 'regmerge',
- 'regview', 'regcompare', 'rsc', 'rsc2',
- 'rscdep', 'rscpp', 'scpcomp', 'scplink',
- 'scppkg', 'scpzip', 'srvdepy', 'svidl',
- 'transex3', 'uno', 'xml2cmp', 'xrmex',
- 'setup.bin', 'loader.bin', 'soffice.bin',
- 'ucb.bin' );
-
-for $bin (@tools) {
- $libs{"$path/bin/$bin"} = undef;
-}
-
-for $lib (keys %libs) {
- resolve_symbols ($lib);
-}
-
-my %unused = ();
-
-printf "Finding unused...";
-for $lib (keys %libs) {
- my $used = 0;
- my $unused = 0;
- my $used_file;
- my $un_used_file;
-
- open ($used_file, ">$lib.used") || die "Failed to open $lib.used: $!";
- open ($un_used_file, ">$lib.unused") || die "Failed to open $lib.unused: $!";
-
- for $symbol (keys (%symbols)) {
- my $sym_lib = $symbols {$symbol};
-
- if ($sym_lib eq $lib) {
- print $un_used_file "$symbol\n";
- $unused++;
- } elsif ($sym_lib eq "r-$lib") {
- print $used_file "$symbol\n";
- $used++;
- }
- }
-
- close ($used_file);
- close ($un_used_file);
-
- print "Library $lib: $used used, and $unused unused\n";
-}
-
-my $ex_file;
-open ($ex_file, ">external.used") || die "Failed to open external.used: $!";
-for $symbol (keys %ex_syms) {
- my $hmm = '';
- if ($symbols{$symbol}) {
- $hmm = 'defined later (!)';
- }
- print $ex_file "$symbol; $hmm\n";
-}
-close ($ex_file);
diff --git a/desktop/.cvsignore b/desktop/.cvsignore
deleted file mode 100644
index 570e81dde..000000000
--- a/desktop/.cvsignore
+++ /dev/null
@@ -1,10 +0,0 @@
-Makefile
-Makefile.in
-drawing.desktop
-drawing1.1.desktop
-presentation.desktop
-presentation1.1.desktop
-spreadsheet.desktop
-spreadsheet1.1.desktop
-textdoc.desktop
-textdoc1.1.desktop
diff --git a/desktop/Makefile.am b/desktop/Makefile.am
deleted file mode 100644
index 692e07c79..000000000
--- a/desktop/Makefile.am
+++ /dev/null
@@ -1,10 +0,0 @@
-desktop_in_files = ${wildcard *.desktop.in}
-
-all: $(desktop_in_files:.desktop.in=.desktop)
-
-%.desktop: %.desktop.in $(top_builddir)/intltool-merge $(wildcard $(top_srcdir)/po/*.po)
- $(top_builddir)/intltool-merge $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache
-
-
-EXTRA_DIST=${wildcard *.desktop} ${wildcard *.png}
-
diff --git a/desktop/drawing.desktop.in b/desktop/drawing.desktop.in
deleted file mode 100644
index 42913d8cd..000000000
--- a/desktop/drawing.desktop.in
+++ /dev/null
@@ -1,11 +0,0 @@
-[Desktop Entry]
-_Name=Drawing
-_Comment=OpenOffice.org drawing package
-TryExec=oodraw
-Exec=oodraw
-Icon=ximian-openoffice-draw.png
-Terminal=false
-Type=Application
-Categories=GNOME;Application;Office;X-Ximian-Main;
-X-GNOME-Bugzilla-Bugzilla=Ximian
-X-GNOME-Bugzilla-Product=OpenOffice.org Ximian Edition
diff --git a/desktop/drawing1.1.desktop.in b/desktop/drawing1.1.desktop.in
deleted file mode 100644
index 937960011..000000000
--- a/desktop/drawing1.1.desktop.in
+++ /dev/null
@@ -1,12 +0,0 @@
-[Desktop Entry]
-_Name=Drawing (1.1)
-_Comment=OpenOffice.org drawing package
-TryExec=oodraw1.1
-Exec=oodraw1.1
-Icon=ximian-openoffice-draw.png
-Terminal=false
-Type=Application
-Categories=GNOME;Application;Office;X-Ximian-Main;
-X-GNOME-Bugzilla-Bugzilla=Ximian
-X-GNOME-Bugzilla-Product=OpenOffice.org Ximian Edition
-StartupNotify=true
diff --git a/desktop/presentation.desktop.in b/desktop/presentation.desktop.in
deleted file mode 100644
index fc018059b..000000000
--- a/desktop/presentation.desktop.in
+++ /dev/null
@@ -1,11 +0,0 @@
-[Desktop Entry]
-_Name=Presentation
-_Comment=OpenOffice.org presentation application
-TryExec=ooimpress
-Exec=ooimpress
-Icon=ximian-openoffice-impress.png
-Terminal=false
-Type=Application
-Categories=GNOME;Application;Office;X-Ximian-Main;
-X-GNOME-Bugzilla-Bugzilla=Ximian
-X-GNOME-Bugzilla-Product=OpenOffice.org Ximian Edition
diff --git a/desktop/presentation1.1.desktop.in b/desktop/presentation1.1.desktop.in
deleted file mode 100644
index 747255a00..000000000
--- a/desktop/presentation1.1.desktop.in
+++ /dev/null
@@ -1,12 +0,0 @@
-[Desktop Entry]
-_Name=Presentation (1.1)
-_Comment=OpenOffice.org presentation application
-TryExec=ooimpress1.1
-Exec=ooimpress1.1
-Icon=ximian-openoffice-impress.png
-Terminal=false
-Type=Application
-Categories=GNOME;Application;Office;X-Ximian-Main;
-X-GNOME-Bugzilla-Bugzilla=Ximian
-X-GNOME-Bugzilla-Product=OpenOffice.org Ximian Edition
-StartupNotify=true
diff --git a/desktop/spreadsheet.desktop.in b/desktop/spreadsheet.desktop.in
deleted file mode 100644
index bf0c65139..000000000
--- a/desktop/spreadsheet.desktop.in
+++ /dev/null
@@ -1,12 +0,0 @@
-[Desktop Entry]
-_Name=Spreadsheet
-_Comment=OpenOffice.org spreadsheet
-TryExec=oocalc
-Exec=oocalc
-Icon=ximian-openoffice-calc.png
-Terminal=false
-Type=Application
-Categories=GNOME;Application;Office;Finance;X-Ximian-Main;
-X-GNOME-Bugzilla-Bugzilla=Ximian
-X-GNOME-Bugzilla-Product=OpenOffice.org Ximian Edition
-
diff --git a/desktop/spreadsheet1.1.desktop.in b/desktop/spreadsheet1.1.desktop.in
deleted file mode 100644
index 3b28973eb..000000000
--- a/desktop/spreadsheet1.1.desktop.in
+++ /dev/null
@@ -1,12 +0,0 @@
-[Desktop Entry]
-_Name=Spreadsheet (1.1)
-_Comment=OpenOffice.org spreadsheet
-TryExec=oocalc1.1
-Exec=oocalc1.1
-Icon=ximian-openoffice-calc.png
-Terminal=false
-Type=Application
-Categories=GNOME;Application;Office;Finance;X-Ximian-Main;
-X-GNOME-Bugzilla-Bugzilla=Ximian
-X-GNOME-Bugzilla-Product=OpenOffice.org Ximian Edition
-StartupNotify=true
diff --git a/desktop/textdoc.desktop.in b/desktop/textdoc.desktop.in
deleted file mode 100644
index ac98ed79c..000000000
--- a/desktop/textdoc.desktop.in
+++ /dev/null
@@ -1,12 +0,0 @@
-[Desktop Entry]
-_Name=Word Processor
-_Comment=OpenOffice.org word processor
-TryExec=oowriter
-Exec=oowriter
-Icon=ximian-openoffice-writer.png
-Terminal=false
-Type=Application
-Categories=GNOME;Application;Office;X-Ximian-Main;
-X-GNOME-Bugzilla-Bugzilla=Ximian
-X-GNOME-Bugzilla-Product=OpenOffice.org Ximian Edition
-X-GNOME-Bugzilla-OtherBinaries=soffice.bin;getstyle-gnome
diff --git a/desktop/textdoc1.1.desktop.in b/desktop/textdoc1.1.desktop.in
deleted file mode 100644
index dab0b858c..000000000
--- a/desktop/textdoc1.1.desktop.in
+++ /dev/null
@@ -1,14 +0,0 @@
-[Desktop Entry]
-_Name=Word Processor (1.1)
-_Comment=OpenOffice.org word processor
-TryExec=oowriter1.1
-Exec=oowriter1.1
-Icon=ximian-openoffice-writer.png
-Terminal=false
-Type=Application
-Categories=GNOME;Application;Office;X-Ximian-Main;
-X-GNOME-Bugzilla-Bugzilla=Ximian
-X-GNOME-Bugzilla-Product=OpenOffice.org Ximian Edition
-X-GNOME-Bugzilla-OtherBinaries=soffice.bin;getstyle-gnome
-StartupNotify=true
-
diff --git a/desktop/ximian-openoffice-calc.png b/desktop/ximian-openoffice-calc.png
deleted file mode 100644
index 3177b5c11..000000000
--- a/desktop/ximian-openoffice-calc.png
+++ /dev/null
Binary files differ
diff --git a/desktop/ximian-openoffice-draw.png b/desktop/ximian-openoffice-draw.png
deleted file mode 100644
index def86f1d7..000000000
--- a/desktop/ximian-openoffice-draw.png
+++ /dev/null
Binary files differ
diff --git a/desktop/ximian-openoffice-impress.png b/desktop/ximian-openoffice-impress.png
deleted file mode 100644
index f79bfcbcd..000000000
--- a/desktop/ximian-openoffice-impress.png
+++ /dev/null
Binary files differ
diff --git a/desktop/ximian-openoffice-math.png b/desktop/ximian-openoffice-math.png
deleted file mode 100644
index 0bbe12f86..000000000
--- a/desktop/ximian-openoffice-math.png
+++ /dev/null
Binary files differ
diff --git a/desktop/ximian-openoffice-template.png b/desktop/ximian-openoffice-template.png
deleted file mode 100644
index 8c084dc7d..000000000
--- a/desktop/ximian-openoffice-template.png
+++ /dev/null
Binary files differ
diff --git a/desktop/ximian-openoffice-web.png b/desktop/ximian-openoffice-web.png
deleted file mode 100644
index 7425ad17e..000000000
--- a/desktop/ximian-openoffice-web.png
+++ /dev/null
Binary files differ
diff --git a/desktop/ximian-openoffice-writer.png b/desktop/ximian-openoffice-writer.png
deleted file mode 100644
index 970b68a1d..000000000
--- a/desktop/ximian-openoffice-writer.png
+++ /dev/null
Binary files differ
diff --git a/doc/.cvsignore b/doc/.cvsignore
deleted file mode 100644
index 282522db0..000000000
--- a/doc/.cvsignore
+++ /dev/null
@@ -1,2 +0,0 @@
-Makefile
-Makefile.in
diff --git a/doc/Makefile.am b/doc/Makefile.am
deleted file mode 100644
index 965a5fe56..000000000
--- a/doc/Makefile.am
+++ /dev/null
@@ -1,2 +0,0 @@
-EXTRA_DIST=${wildcard *.txt} README
-
diff --git a/doc/README b/doc/README
deleted file mode 100644
index 2dec94ef1..000000000
--- a/doc/README
+++ /dev/null
@@ -1,9 +0,0 @@
-Some random development-style thoughts / documents on OO.o
-
-accessibility.txt: notes on gnome/a11y code.
-announce.txt: base announcement E-mail for new releases
-alpha-rework.txt: notes on nicely alpha blended icons
-cuckooo.txt: outline notes on this, & Java samples.
-layout-overview.txt: notes on adding layout to VCL
-print-integration.txt: notes on printing integration.
-
diff --git a/doc/accessibility.txt b/doc/accessibility.txt
deleted file mode 100644
index cf6899096..000000000
--- a/doc/accessibility.txt
+++ /dev/null
@@ -1,26 +0,0 @@
-Accessibility: towards a Free software (Java-free) future.
-
- The crucial a11y code in OO.o will not be adopted due to the
-painful Java requirement, these are some notes on potentially
-circumventing this, and bridging directly to at-spi.
-
-* code
-
-accessibility/bride/org/openoffice/
- accessibility/*
- Windows related accessibility code ?
- java/accessibility/*
- Java mapping from UNO <-> Java bindings.
-
-
-accessibility/
-
-offapi/com/sun/star/accessibility/
- XAccessibleContent.idl: equivalent to Accessible.idl
- XAccessibleComponent.idl: AccessibleComponent.idl
-etc.
- What is required is simply a _lot_ of typing / type-mapping.
-
-
-Hooks into the toolkit done with eg.:
- unoToolkit.addKeyHandler(new KeyHandler());
diff --git a/doc/alpha-rework.txt b/doc/alpha-rework.txt
deleted file mode 100644
index eca2a1f68..000000000
--- a/doc/alpha-rework.txt
+++ /dev/null
@@ -1,59 +0,0 @@
-** The 2nd re-work
-
-We have to re-re-work this without touching BitmapColour if possible.
-
-
-
-
-
-** The 1st re-work
-
-Re-working the alpha icon support:
-
- * vcl/source/gdi/image.cxx (ImageList): reads the
- MaskBitmap from the resource file. res. compiler seems
- to decompose alpha via RSC_IMAGE_MASKCOLOR with no
- RSC_IMAGE_MASKBITMAP; 'ImageBitmap', 'MaskBitmap',
- 'MaskColor' (via. the MASKCOLOR macro) used in .src.
- * rsc/source/res/rscclass.cxx (RscSysDepend::WriteRc): writes
- writes the filename to tmp; & does a
- * rsc/source/parser/rscdb.cxx (PutSysName): tracks file names.
- ImageBitmap's can be built from IdList's: why have the IdCount ?
- (RSC_IMAGELIST_ IDLIST/IDCOUNT)
-
-* Build seems to:
- + run rscdep - presumably dependency re-calculator
- + run rscpp - presumably pre-processor
- + run rsc (seems to run rsc2)
- + -s flag passed.
- writes an srs file with pre-processing done,
- doesn't build the images / resource file ...
- + run 'bmp' - pass the srs file, icon paths etc.
- build icon strips.
- + in util/ process the srs files into a resource file
- + -r flag passed
-
-
-* vcl/source/gdi/bitmap.cxx
- + internal pixel format dictated by underlying system
- + WriteAcess sets accessors based on:
- + BMP_SCANLINE_FORMAT( mpBuffer->mnFormat ) (mask off top bit)
- + [ from bmpbuffer.cxx - implemented in sal ... ]
- + Both Win & Unix use BMP_FORMAT_8BIT_PAL
- + pScanLine in converter is a Byte *
- + operator BitmapColor::BYTE -> mcBlueOrIndex [ the index ]
- + Add 'GetAlphaMask' to bitmap2.cxx.
-
-* svtools/bmpmaker/bmpcore.cxx
- + Can't really hope to create alpha mask files in here, since
- too many individual bmps - it would suck.
- + We can however convert 8bit -> 32bit here nicely.
-
-
-* With hacks to bmpcore.cxx and bitmap.cxx / image.cxx:
- + got a working soln'.
-
-
-* TODO
- + Bin 'IdCount': it blows chunks, just count items instead
- + Split the RSC_IMAGE_MASKBITMAP out of all deep color bmps.
diff --git a/doc/announce.txt b/doc/announce.txt
deleted file mode 100644
index ca1312743..000000000
--- a/doc/announce.txt
+++ /dev/null
@@ -1,26 +0,0 @@
-ximian-openoffice <openoffice@lists.ximian.com>
-Announce <gnome-announce-list@gnome.org>
-
-ANNOUNCE: ooo-build-***
-
-OpenOffice.org build:
-
- This package contains the Gnome integration work for
-OpenOffice.org, and a much simplified build wrapper, making an OO.o
-build / install possible for the common man.[1] It is a staging ground
-for up-streaming patches to OO.o.
-
-Changes in this release:
-
-
-Package available from:
-
-http://ooo.ximian.com/packages/***/ooo-build-***.tar.gz
-
- To find out more and/or get involved in OOo hacking see
-http://ooo.ximian.com/ and/or subscribe to our OO.o development
-mailing list at:
- http://lists.ximian.com/mailman/listinfo/openoffice.
-
-[1] - assuming the common man has 4Gb+ of spare space and lots of
- idle CPU time.
diff --git a/doc/cuckooo.txt b/doc/cuckooo.txt
deleted file mode 100644
index e2d42d4cc..000000000
--- a/doc/cuckooo.txt
+++ /dev/null
@@ -1,98 +0,0 @@
-* KOOo::Part
-
- component built aroung KOOo::OfficeWidget
-
- configuration (cuckooopartui.ini UNO .ini file; KConfig cuckooorc)
-
- ui-merging (cuckooopartui.rc)
-
- persistence (loading only)
-
- whats that QConSpec = "pipe,name=%1_cuckooo-OOo_pipe"? cf. initOffice.
-
-* KOOo::Factory
-
-* KOOo::OfficeWidget
-
-** helpers for string conversions
-
-** paintEvent
-
- only splash screen painting
-
-** initOffice, serviceManager
-
- see p 75, example code on p 77 (in pdf version of the developer's guide)
-
- example in devguide doesn't use inifile (thus requires some env variables set)
- for settings in that inifile read
- http://udk.openoffice.org/common/man/concept/uno_default_bootstrapping.html
-
- cuckooo code has existing error handling
-
- pipe vs. socket: p 79, the example can't use a pipe (not available with java binding)
-
- TODO: read the sections about what's deprecated
-
-** createFrame
-
- creates Frame, attaches it to this window (winId() being a method of QWidget):
-
- anyParent <<= winId() and
- rChildFactory->createSystemChild(anyParent, seqProcessId,
- lang::SystemDependent::SYSTEM_XWINDOW)
-
- on frames:
- http://api.openoffice.org/docs/DevelopersGuide/OfficeDev/OfficeDev.htm
-
- especially the example in 6.1.4
-
- "there are two ways to obtain it"
- -> the first way is deprecated since 643 (says devguide)
-
-** loadDocument
-
- tries to reuse m_frame or createFrame
-
- loads the doc from url, readonly
-
- XComponentLoader, devguide 6.1.5
-
- hideOfficeControls()
-
-** hideOfficeControls
-
- hides menu bar, common task bar, inetbar, macrobar, navigationbar,
- objectbar, optionbar, statusbar, toolbar
-
- this is where it needs sfx2 headers (for SIDs)
-
-** dispatchUrl
-
- gets an XDispatch for the frame
-
- what's the URLTransformer for?
-
- uses that to dispatch urls (think verbs)
-
-** getUniqueFrameName
-
- kooo-frame-<basename><number>
-
- loops through all frames to eliminate all used <number>s
-
- unique name is needed for the componentLoader to load the document in
- the correct frame
- BETTER: don't use ComponentLoader, it's possible to load with a
- Reference<XFrame>, so names don't have to be unique.
-
-* Don't forget to test this:
-
-** run OOo app, then open use component
-
-** run component, then OOo app (does the app appear?)
-
-** view file in component, keep open, then open in OOo app (does it
- create a new editable frame)
-
-** press Ctrl-Q or Ctrl-W when the control has focus
diff --git a/doc/filepicker.txt b/doc/filepicker.txt
deleted file mode 100644
index 3e7779052..000000000
--- a/doc/filepicker.txt
+++ /dev/null
@@ -1,52 +0,0 @@
-To get a FilePicker:
- xMultiServiceFactory->createInstance of "com.sun.star.ui.dialogs.FilePicker"
- (aka. FILE_OPEN_SERVICE_NAME)
-
-e.g. in OpenDocExec_Impl:
--> if( !pFileNameItem ) sfx2::FileOpenDialog_Impl
--> FileDialogHelper aDialog(...); aDialog.Execute(...);
--> mpImp = new FileDialogHelper_Impl(); mpImp->execute();
--> FileDialogHelper_Impl::implDoExecute
--> aService = FILE_OPEN_SERVICE_NAME; mxFileDlg = mxFileDlg.query( xFactory->createInstance( aService ); mxFileDlg->execute()
-
-dialogs.FilePicker implemented by:
- SvtFilePicker (svtools/source/filepicker/filepicker), the cross-platform version
- also implements the service com.sun.star.ui.dialogs.OfficeFilePicker
-
- CFilePicker (fpicker/source/win32/filepicker/FilePicker.cxx, delivered;
- old copy in sysui/source/win32/filepicker/FilePicker.cxx, not delivered),
- the win32 native file picker
- also implements the service com.sun.star.ui.dialogs.SystemFilePicker
-
-SvtFilePicker::impl_createInstance (factory for SvtFilePicker) creates a
-SystemFilePicker if available (registered) and not disabled by the user
-(SvtMiscOptions.UseSystemFileDialog(), an unbreak-me option?)
-
-SvtFilePicker implements (svtools/source/filepicker/filepicker.hxx) the interfaces
- XInterface x
- XTypeProvider x
- XServiceInfo x
- XExecutableDialog (parent-iface of XFilePicker) x
- XFilePicker (parent of XFilePickerControlAccess) x
- XFilePickerControlAccess x
- XFilePickerNotifier x
- XFilePreview x
- XInitialization x
- XFilterManager x
- XFilterGroupManager x
-and via OCommonPicker (commonpicker.hxx)
- XControlAccess
- XControlInformation
- XEventListener x
- XCancellable x
- XInitialization x
-
-For a description of the interfaces:
-http://api.openoffice.org/docs/common/ref/com/sun/star/ui/dialogs/FilePicker.html
-
-CFilePicker implements the interfaces with x
-
-XFilePreview: dialog can only preview bitmaps
-
-XControlAccess: for setting properties of controls inside the dialog
-XControlInformation: get list of control, their properties
diff --git a/doc/gtk-integration.txt b/doc/gtk-integration.txt
deleted file mode 100644
index 2e03af1da..000000000
--- a/doc/gtk-integration.txt
+++ /dev/null
@@ -1,83 +0,0 @@
-Some blurb about gtk+ integration pain:
-
-* gtk+
-
-** main-loop
- + The first thread to the main-loop gets to lurk in the
- 'select' - any other thread gets to block on that.
- + Not a problem, since all timeout adds etc. interrupt
- the existing mainloop.
- + Lock state in the filter_function:
- + gdk_event_translate: lock must be held when called
- + lock taken without notifying SalYieldMutex::acquire
- + we must setup SalYieldMutex / and tear-down too.
-
-!? + How do gtk+ inferior loops work ?
- + we need to be able to hook into the take/drop
- semantics of the inferior loop really.
-
- + What happens when gtk+ drops it's lock ?
- + doesn't happen except around the main-loop / event
- emission.
- + thus - setup the lock during the duration of
- the event emission.
-
-
- + URGH- gmain.c holds the context (not released) over dispatch
- thus no other thread can get into the mainloop, until the
- round of dispatch is over ... [!] - the same is true of VCL.
-
-* vcl
- + we drop our lock as we poll
- + we then re-take any locks & re-poll with the guard taken.
- + cf. saldata.hxx's YieldMutexReleaser.
- + we do not XInitThreads ...
- + we guard XNextEvent etc. with the YieldMutex
- + cf. vcl/unx/source/app/saldisp.cxx (Yield) from
- + vcl/unx/source/app/saldata.cxx (Yield)
-
- + vcl/source/app/svapp.cxx (Application::Yield): ->
- SalInstance::Yield ->
- GetSalData()->GetLib()->Yield( bWait );
- SalInstance::AcquireYieldMutex - called by:
- Application::AcquireSolarMutex
-
- + Need to bin all daft direct uses of mpSalYieldMutex;
-
-** Solar Mutex == YieldMutex
- cf. Application::GetSolarMutex -> GetYieldMutex.
- also cf. Application::GetMainThreadIdentifier
-
-** Recursive lock <-> non recursive impl.
- + need a slave lock to handle ThreadId changes etc.
- + need to preserve 'Count' after a drop/pick-up
- restoration [!]
-
- lock A -> lock B -> unlock A
- lock A -> unlock B -> unlock A
- A race condition !
-
-
-** Conditions:
-
-L - locked, U - unlocked
-
- Gdk YM ID cnt
-
-An unowned lock:
-
-lock: N N 0 0
- N Y ME 1 - other lockers inhibited ...
- N N ME 1 - a yield/busy loop for other lockers ?
- Y N ME 1
-
-
-unlock: Y N ME 1
- Y Y 0 0
- Y N 0 0
- N N 0 0
-
-
- Forget the lock - imagine the lock is a queue - push/pop or
-somesuch, we have to efficiently synchronize access to it.
-
diff --git a/doc/layout-overview.txt b/doc/layout-overview.txt
deleted file mode 100644
index 83bee2287..000000000
--- a/doc/layout-overview.txt
+++ /dev/null
@@ -1,61 +0,0 @@
-Thoughts on adding Layout to VCL with minimal changes.
- - Michael Meeks <michael@ximian.com>
-
-* Why ?
-
- Adding more advanced, containment based widget layout has the
-following nice properties:
-
- + vital for cross-platform theming - necessarily different
- platforms have different widget sizes & it is not feasible
- to have a per-platform, per-language layout cost.
-
- + current per-language layout does not happen, resulting in
- an increasing level of unfeasible ugliness.
-
- + an automatic layout, can look identical to a manual layout
- at the size / locale it's designed for - resulting in no
- loss of visual 'quality'. It was a fool who said that manual
- layout is always better - in the degenerate case it's just
- as good; for re-sizing it's always better.
-
- + current dialogs are clunky and ugly; especially with a
- different font size; cf. horrific hacks such as
- vcl/source/window/window.cxx:395 /Force all fonts/
-
-* Misc. requirements:
-
- + 100% backwards compatibility
- + the existing non-layout scheme must continue to
- function - and is as discussed a degenerate case
- of layout anyway.
- + no perceptible performance impact
- + minimaly invasive code changes
-
-* Ramblings:
-
- While many complex layout schemes are possible; the gtk+
-scheme - is perhaps a good balance of simplicity and
-flexibility. While eg. Java's Layouts provide minimum, and preferred
-sizes for widgets - gtk+'s scheme is based on a hierarchy of
-containers which invoke either:
-
- Size RequestSize(); or AllocateSize( Size );
-
- Since with the existing positioning scheme, we already have an
-method for allocating sizes, adding gtk+ style layout would entail
-adding a single extra virtual method to 'Window', and a set of
-implementations of 'RequestSize'. Many of these may simply map to the
-existing disparate CalcMinimumSize methods.
-
- While gtk+'s layout containers are inherited from Widget -
-there is no necessity for this in vcl; indeed the whole layout scheme
-can be layered inside new private layout classes. These could be
-hooked into the existing positional layout logic in
-Window::ImplLoadRes; and extensions made to the resource file format
-to allow selected windows to have layout added.
-
- Clearly many dialogs (especially re-sizable ones) currently
-rely on the exact positioning of widgets; thus converting dialogs to
-the layout scheme has to involve incremental testing / code-reading to
-ensure that each will continue to function well.
diff --git a/doc/layout.txt b/doc/layout.txt
deleted file mode 100644
index 027de267a..000000000
--- a/doc/layout.txt
+++ /dev/null
@@ -1,208 +0,0 @@
-Some thoughts on coding up layout.
-
-* Resource compiler (rsc/source/*)
- + rscdep - dependencies ?
- + rscpp - pre-processor ?
- + rsc2 - real compile
-
-* Resource reader (tools/source/rc/resmgr)
-
-* Current design:
-
- + Hierarchical information
- + None in the resource file
- + None in the code
-
- + Window construction
- + can pass ResId for toplevel win, but
- doesn't have to [ only bother fixing up
- people using ResIds ].
- + children instantiated, associated with
- Window parent (and a ResId).
-
- + Resource load (Window -> is a Resource) [ tools/inc/rc.h ]
- + Window::ImplInitRes( rResId )
- + GetRes( rResId )
- + Whole resource load process done via cursor
- state on GetResManager();
- + ResManager has an Init/PopContext stack
-
-
-
-* Hacking
-
- + Hierarchical information
- + Add it to the resource format - tied to
- Window - do we currently have a list of
- children even ? [ or is it totally abstract e
-
- + Window creation
- + walk hierarchical information
- + build a set of layout / peers
- + associate these at Window::ImplLoadRes time
- + post-association / on Window show => doLayout first.
-
-* Demo
-
- + svtools/workben (svdem): hack here ... ?
-
-* Suggested Format:
-
-#define DLG_TEST 1001
-#define BTN_OK 1002
-#define BTN_CANCEL 1003
-#define DLG_TEST_LAYOUT 1100
-
-ModalDialog DLG_TEST
-{
- OutputSize = TRUE ;
- Moveable = TRUE ;
- Closeable = TRUE ;
- Sizeable = TRUE;
- LayoutId = DLG_TEST_LAYOUT;
-
- PushButton BTN_OK
- {
- Text = "OK";
- };
- PushButton BTN_CANCEL
-
- {
- Text = "Cancel";
- };
-
- Layout DLG_TEST_LAYOUT {
- Homogeneous = False;
- Layout {
- PeerId = BTN_OK;
- Expand = True;
- Fill = True;
- };
- Layout {
- PeerId = BTN_CANCEL;
- Expand = False;
- Fill = False;
- };
- };
-};
-
-
-* Glade2 XML format:
-
- <child>
- <widget class="GtkHBox" id="hbox4">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
-
- <child>
- <widget class="GtkVBox" id="vbox1">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">6</property>
-
- <child>
- <widget class="GtkCheckButton" id="enable_toggle">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes">E_nable sound server startup</property>
- <property name="use_underline">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <property name="active">False</property>
- <property name="inconsistent">False</property>
- <property name="draw_indicator">True</property>
- <signal name="toggled" handler="enable_toggled_cb"/>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
- ...
- </widget>
- </child>
- </widget>
- </child>
- etc.
-
-
-* Resource compiler class hierarachy:
-
-# BiNode
- * NameNode
- o IdNode
- + RefNode
- # RscTop
- * RscArray
- o RscClassArray
- o RscLangArray
- * RscBaseCont
- o RscContWriteSrc
- + RscCont
- + RscContExtraData
- * RscClass
- o RscMgr
- o RscSysDepend
- + RscFirstSysDepend
- o RscTupel
- * RscClient
- * RscConst
- o RscEnum
- o RscFlag
- * RscIdRange
- * RscLongRange
- o RscLongEnumRange
- * RscRange
- o RscBool
- o RscBreakRange
- * RscString
- + RscInstNode
- o StringNode
- + RscDefine
-
-
- + despite all the .cxx, .hxx etc. stuff it seems to
- compile direct .src -> .rc with no intermediates.
- + Post parsing we call WriteRc on the nodes,
- + We can also call WriteSrc - presumably a legacy
- from the src -> representation / fiddle / -> src
- round-trip process.
- + RscCont is a generic container class.
- + code hidden in rsc/source/prj/gui.cxx flow:
- rscyacc.y:
- + everything built into a RscTypeCont *pTC.
- + all strings munged into HashString: pHS
- + pHS->Get( HASHID ) returns it to a string.
- RscTypeCont -> RscTypCont::Init - sets up parser.
- RscCompiler (pTypeCont)->Start.
- + CheckSyntax -> ParseOneFile -> parser -> yyparse
- -> DoClassHeader (rscyacc.cxx) -> GetElement (rsctop.cxx)
-
- + Problems
- + each RscClass has to define it's child
- properties => we have to define all possible
- child properties in advance for 'Widget')
-
-* VCL Issues
-
- + Flow:
- + Res -> Window -> [ constr. Layout tree ]
- + We need to associate instances of widgets later;
- + They do ImplInitRes - and we need to connect them
- and queue re-draws on the parent etc.
- + Have a hash of Layout <-> ResId mappings on Window ...
- + re-flow on re-size etc. 'queue_redraw' ?
-
- + Layout -> Widget [ via. Layout tree & peers, toplevel is always a peer ]
-
- + Window <-> Layout in all cases ? [ show / hide ? ]
- cache 'visible' state ? etc. have a Layout ptr. on each
- Window ...
- + Need a factory for Layouts ...
- + We only need to virtualize sizeAllocate on the Layouts,
- not the widgets - thank goodness.
-
-** Decisions
- + Totally static layout manipulation
- - ie. no self-building - too complex anyway.
diff --git a/doc/print-integration.txt b/doc/print-integration.txt
deleted file mode 100644
index 23cc3b66f..000000000
--- a/doc/print-integration.txt
+++ /dev/null
@@ -1,62 +0,0 @@
-Gnome printing integration...
-
-* VCL
-
-** GUI
- + Name/Status/Location/Comment
- + print to file [PDF/PS]
- + Print range; - All/Pages/Selection
- + Number of copies / collate
- + 'Properties' ...
- + same for every component so far.
- + "Extended Options"
- + calc
- + Suppress output of empty pages
- + Print only selected sheets
- + writer
- + Contents
- + Graphics, Tables, Drawings, Controls,
- Background, Print black
- + Pages
- + Left pages, right pages,
- reversed, brochure
- + Notes
- + None, notes only, end of document,
- end of page
- + Other
- + create single print jobs
- + paper tray from printer settings
- + FAX ...
- + impress
- + Contents
- + Drawing, Notes, Handouts, Outline
- + Quality
- + Default, Greyscale, Black&White
- + Print
- + Page name, Date, Time, Hidden pages
- + Page options
- + Default, Fit to page, Tile pages,
- Brochure [ Front, Back ],
- Paper tray from printer settings
- + ergo extended options => app specific, and not implementable.
- + Dialog in very bad need of layout.
-
-** Code
- + No printer dialog in VCL
- + svtools/source/dialogs/printdlg.cxx (PrintDialog)
- + the only implementation / not sub-classed.
- only inherited virtual functions.
- + svtools/inc/printdlg.hxx
- + re-write the dialog completely ...
-
-* libgnomeprintui
-
-** GUI
- + As per Galeon's method:
- dialog = gnome_print_dialog_new(job, "Print", 0);
- g_object_set_data (G_OBJECT (dialog), "job", job);
- gnome_print_dialog_print_file_hack (GNOME_PRINT_DIALOG (dialog));
- config = gnome_print_job_get_config(job);
- g_object_set_data_full (G_OBJECT (config), "tempfilename", filename, g_free);
- g_object_unref(config);
- ...
diff --git a/doc/symbol-font.txt b/doc/symbol-font.txt
deleted file mode 100644
index 99699b6d8..000000000
--- a/doc/symbol-font.txt
+++ /dev/null
@@ -1,33 +0,0 @@
-Some overview docs. on symbol problems
-
- The overall strategy with bullets / symbols is this:
-
- 1. user creates a bullet with a font that exists eg. opensymbol.
- 2. on save to MS format map known symbols to the "symbol"
- font for maximum interoperability
- 3. on load keep the "symbol" font associated with bullets (which
- causes the selector to behave strangely), and map this back
- to opensymbol each time we render to the screen.
-
- In addition to this, there is a special 'Symbol' textencoding
-which differs per symbol font, but provides an extra piece of markup
-information. The code involved in these stages is:
-
-* Mapping on MS export
-
- sw/filter/source/ww8/wrtw8num.cxx (SubstituteBullet):
- calls CreateStarSymbolToMSMultiFont
- vcl/source/gdi/fontcvt.cxx (StarSymbolToMSMultiFont) class
- this does various splitting / mapping stuff for export.
-
-* Mapping on render
-
- vcl/source/gdi/fontcvt.cxx (ImplRecodeString)
- the outdev3.cxx font engine decides which font to map eg.
- "symbol" to, and then calls ImplGetRecodeData, which builds
- an ImplCvtChar structure, containing pointers to character
- re-location tables for that font mapping.
-
-* Symbol textencoding
-
- cf. RTL_TEXTENCONDING_SYMBOL and code in sal/textenc. \ No newline at end of file
diff --git a/download b/download
deleted file mode 100755
index d6859a43a..000000000
--- a/download
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/usr/bin/perl -w
-
-sub usage {
- print STDERR "\ndownload\n";
- print STDERR "Syntax: download [<TAG> | --with-system-gcc | --help] \n\n";
- print STDERR "Example: build --with-system-gcc\n";
- print STDERR " - downloads only OpenOffice.org source files and not gcc and binutils\n\n";
- print STDERR "Example: build OOO_1_1_0 --with-system-gcc\n";
- print STDERR " - downloads specific CVS tag, excluding gcc and binutils\n\n";
- print STDERR "Keys: <TAG> - specifies a particular CVS tag to pull sources from\n";
- print STDERR " --with-system-gcc - use system gcc and do not download gcc + binutils\n";
- print STDERR " --help - print help info\n";
- print STDERR "Default: - download 'head' CVS tag and gcc + binutils\n";
-};
-
-$SRC_URL='http://ooo.ximian.com/packages';
-
-$WGET='/usr/bin/wget';
-
-if (!-d "src") {
- `mkdir -p src`;
-}
-
-# Defaults
-$support_files = 'all';
-$tag = `bin/latest-patchset patches`;
-
-while ($arg = shift @ARGV) {
- if ( $arg eq '--with-system-gcc' ) {
- $support_files = 'none';
- } elsif ( $arg eq '--help' ) {
- &usage and exit(0);
- } else {
- $tag = $arg;
- }
-}
-
-print "Downloading files for $tag\n";
-
--x $WGET || die "Can't find wget - install it and try again\n";
-
-sub webget($$)
-{
- my ($src, $dest) = @_;
-
- print "Get $src -> $dest\n";
- system ("cd $dest ; $WGET $src") != 0 && die "Failed fetch";
-}
-
-if ( $support_files eq 'all' ) {
- $files{ 'binutils-2.13.2.1.tar.bz2' } = 'support';
- $files{ 'gcc-3.2.2.tar.bz2' } = 'support';
-}
-
-$files{ 'ooo-icons-OOO_1_1-6.tar.gz' } = '';
-$files{ "$tag.tar.bz2" } = $tag;
-
-for $a (keys %files) {
- if (-f "src/$a") {
- print "Skipping $a\n";
- } else {
- print "No file src/$a\n";
- webget("$SRC_URL/".$files{$a}."/$a", 'src');
- }
-}
-print "Done\n";
diff --git a/etc/.cvsignore b/etc/.cvsignore
deleted file mode 100644
index 282522db0..000000000
--- a/etc/.cvsignore
+++ /dev/null
@@ -1,2 +0,0 @@
-Makefile
-Makefile.in
diff --git a/etc/Makefile.am b/etc/Makefile.am
deleted file mode 100644
index 325d0ec3b..000000000
--- a/etc/Makefile.am
+++ /dev/null
@@ -1 +0,0 @@
-EXTRA_DIST=autoresponse.conf autoresponse1.1.conf
diff --git a/etc/autoresponse.conf b/etc/autoresponse.conf
deleted file mode 100644
index 2c007a6b0..000000000
--- a/etc/autoresponse.conf
+++ /dev/null
@@ -1,7 +0,0 @@
-[ENVIRONMENT]
-INSTALLATIONMODE=INSTALL_WORKSTATION
-INSTALLATIONTYPE=WORKSTATION
-DESTINATIONPATH=<home>/.xopenoffice1.1
-
-[JAVA]
-JavaSupport=none
diff --git a/etc/autoresponse1.1.conf b/etc/autoresponse1.1.conf
deleted file mode 100644
index 2c007a6b0..000000000
--- a/etc/autoresponse1.1.conf
+++ /dev/null
@@ -1,7 +0,0 @@
-[ENVIRONMENT]
-INSTALLATIONMODE=INSTALL_WORKSTATION
-INSTALLATIONTYPE=WORKSTATION
-DESTINATIONPATH=<home>/.xopenoffice1.1
-
-[JAVA]
-JavaSupport=none
diff --git a/intltool-merge.in b/intltool-merge.in
deleted file mode 100755
index 9554a1c2a..000000000
--- a/intltool-merge.in
+++ /dev/null
@@ -1,933 +0,0 @@
-#!@INTLTOOL_PERL@ -w
-
-#
-# The Intltool Message Merger
-#
-# Copyright (C) 2000, 2003 Free Software Foundation.
-# Copyright (C) 2000, 2001 Eazel, Inc
-#
-# Intltool is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# version 2 published by the Free Software Foundation.
-#
-# Intltool is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-#
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-#
-# Authors: Maciej Stachowiak <mjs@noisehavoc.org>
-# Kenneth Christiansen <kenneth@gnu.org>
-# Darin Adler <darin@bentspoon.com>
-#
-# Proper XML UTF-8'ification written by Cyrille Chepelov <chepelov@calixo.net>
-#
-
-## Release information
-my $PROGRAM = "intltool-merge";
-my $PACKAGE = "intltool";
-my $VERSION = "0.27.2";
-
-## Loaded modules
-use strict;
-use Getopt::Long;
-use Text::Wrap;
-
-## Scalars used by the option stuff
-my $HELP_ARG = 0;
-my $VERSION_ARG = 0;
-my $BA_STYLE_ARG = 0;
-my $XML_STYLE_ARG = 0;
-my $KEYS_STYLE_ARG = 0;
-my $DESKTOP_STYLE_ARG = 0;
-my $SCHEMAS_STYLE_ARG = 0;
-my $RFC822DEB_STYLE_ARG = 0;
-my $QUIET_ARG = 0;
-my $PASS_THROUGH_ARG = 0;
-my $UTF8_ARG = 0;
-my $cache_file;
-
-## Handle options
-GetOptions
-(
- "help" => \$HELP_ARG,
- "version" => \$VERSION_ARG,
- "quiet|q" => \$QUIET_ARG,
- "oaf-style|o" => \$BA_STYLE_ARG, ## for compatibility
- "ba-style|b" => \$BA_STYLE_ARG,
- "xml-style|x" => \$XML_STYLE_ARG,
- "keys-style|k" => \$KEYS_STYLE_ARG,
- "desktop-style|d" => \$DESKTOP_STYLE_ARG,
- "schemas-style|s" => \$SCHEMAS_STYLE_ARG,
- "rfc822deb-style|r" => \$RFC822DEB_STYLE_ARG,
- "pass-through|p" => \$PASS_THROUGH_ARG,
- "utf8|u" => \$UTF8_ARG,
- "cache|c=s" => \$cache_file
- ) or &error;
-
-my $PO_DIR;
-my $FILE;
-my $OUTFILE;
-
-my %po_files_by_lang = ();
-my %translations = ();
-my $iconv = $ENV{"INTLTOOL_ICONV"} || "iconv";
-
-# Use this instead of \w for XML files to handle more possible characters.
-my $w = "[-A-Za-z0-9._:]";
-
-# XML quoted string contents
-my $q = "[^\\\"]*";
-
-## Check for options.
-
-if ($VERSION_ARG)
-{
- &print_version;
-}
-elsif ($HELP_ARG)
-{
- &print_help;
-}
-elsif ($BA_STYLE_ARG && @ARGV > 2)
-{
- &preparation;
- &print_message;
- &ba_merge_translations;
- &finalize;
-}
-elsif ($XML_STYLE_ARG && @ARGV > 2)
-{
- &utf8_sanity_check;
- &preparation;
- &print_message;
- &xml_merge_translations;
- &finalize;
-}
-elsif ($KEYS_STYLE_ARG && @ARGV > 2)
-{
- &utf8_sanity_check;
- &preparation;
- &print_message;
- &keys_merge_translations;
- &finalize;
-}
-elsif ($DESKTOP_STYLE_ARG && @ARGV > 2)
-{
- &preparation;
- &print_message;
- &desktop_merge_translations;
- &finalize;
-}
-elsif ($SCHEMAS_STYLE_ARG && @ARGV > 2)
-{
- &preparation;
- &print_message;
- &schemas_merge_translations;
- &finalize;
-}
-elsif ($RFC822DEB_STYLE_ARG && @ARGV > 2)
-{
- &preparation;
- &print_message;
- &rfc822deb_merge_translations;
- &finalize;
-}
-else
-{
- &print_help;
-}
-
-exit;
-
-## Sub for printing release information
-sub print_version
-{
- print <<_EOF_;
-${PROGRAM} (${PACKAGE}) ${VERSION}
-Written by Maciej Stachowiak, Darin Adler and Kenneth Christiansen.
-
-Copyright (C) 2000-2003 Free Software Foundation, Inc.
-Copyright (C) 2000-2001 Eazel, Inc.
-This is free software; see the source for copying conditions. There is NO
-warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-_EOF_
- exit;
-}
-
-## Sub for printing usage information
-sub print_help
-{
- print <<_EOF_;
-Usage: ${PROGRAM} [OPTION]... PO_DIRECTORY FILENAME OUTPUT_FILE
-Generates an output file that includes some localized attributes from an
-untranslated source file.
-
-Mandatory options: (exactly one must be specified)
- -b, --ba-style includes translations in the bonobo-activation style
- -d, --desktop-style includes translations in the desktop style
- -k, --keys-style includes translations in the keys style
- -s, --schemas-style includes translations in the schemas style
- -r, --rfc822deb-style includes translations in the RFC822 style
- -x, --xml-style includes translations in the standard xml style
-
-Other options:
- -u, --utf8 convert all strings to UTF-8 before merging
- -p, --pass-through use strings as found in .po files, without
- conversion (STRONGLY unrecommended with -x)
- -c, --cache=FILE specify cache file name
- (usually \$top_builddir/po/.intltool-merge-cache)
- -q, --quiet suppress most messages
- --help display this help and exit
- --version output version information and exit
-
-Report bugs to http://bugzilla.gnome.org/ (product name "$PACKAGE")
-or send email to <xml-i18n-tools\@gnome.org>.
-_EOF_
- exit;
-}
-
-
-## Sub for printing error messages
-sub print_error
-{
- print STDERR "Try `${PROGRAM} --help' for more information.\n";
- exit;
-}
-
-
-sub print_message
-{
- print "Merging translations into $OUTFILE.\n" unless $QUIET_ARG;
-}
-
-
-sub preparation
-{
- $PO_DIR = $ARGV[0];
- $FILE = $ARGV[1];
- $OUTFILE = $ARGV[2];
-
- &gather_po_files;
- &get_translation_database;
-}
-
-# General-purpose code for looking up translations in .po files
-
-sub po_file2lang
-{
- my ($tmp) = @_;
- $tmp =~ s/^.*\/(.*)\.po$/$1/;
- return $tmp;
-}
-
-sub gather_po_files
-{
- for my $po_file (glob "$PO_DIR/*.po") {
- $po_files_by_lang{po_file2lang($po_file)} = $po_file;
- }
-}
-
-sub get_local_charset
-{
- my ($encoding) = @_;
- my $alias_file = $ENV{"G_CHARSET_ALIAS"} || "/usr/lib/charset.alias";
-
- # seek character encoding aliases in charset.alias (glib)
-
- if (open CHARSET_ALIAS, $alias_file)
- {
- while (<CHARSET_ALIAS>)
- {
- next if /^\#/;
- return $1 if (/^\s*([-._a-zA-Z0-9]+)\s+$encoding\b/i)
- }
-
- close CHARSET_ALIAS;
- }
-
- # if not found, return input string
-
- return $encoding;
-}
-
-sub get_po_encoding
-{
- my ($in_po_file) = @_;
- my $encoding = "";
-
- open IN_PO_FILE, $in_po_file or die;
- while (<IN_PO_FILE>)
- {
- ## example: "Content-Type: text/plain; charset=ISO-8859-1\n"
- if (/Content-Type\:.*charset=([-a-zA-Z0-9]+)\\n/)
- {
- $encoding = $1;
- last;
- }
- }
- close IN_PO_FILE;
-
- if (!$encoding)
- {
- print STDERR "Warning: no encoding found in $in_po_file. Assuming ISO-8859-1\n" unless $QUIET_ARG;
- $encoding = "ISO-8859-1";
- }
-
- system ("$iconv -f $encoding -t UTF-8 </dev/null 2>/dev/null");
- if ($?) {
- $encoding = get_local_charset($encoding);
- }
-
- return $encoding
-}
-
-sub utf8_sanity_check
-{
- if (!$UTF8_ARG)
- {
- if (!$PASS_THROUGH_ARG)
- {
- $PASS_THROUGH_ARG="1";
- }
- }
-}
-
-sub get_translation_database
-{
- if ($cache_file) {
- &get_cached_translation_database;
- } else {
- &create_translation_database;
- }
-}
-
-sub get_newest_po_age
-{
- my $newest_age;
-
- foreach my $file (values %po_files_by_lang)
- {
- my $file_age = -M $file;
- $newest_age = $file_age if !$newest_age || $file_age < $newest_age;
- }
-
- $newest_age = 0 if !$newest_age;
-
- return $newest_age;
-}
-
-sub create_cache
-{
- print "Generating and caching the translation database\n" unless $QUIET_ARG;
-
- &create_translation_database;
-
- open CACHE, ">$cache_file" || die;
- print CACHE join "\x01", %translations;
- close CACHE;
-}
-
-sub load_cache
-{
- print "Found cached translation database\n" unless $QUIET_ARG;
-
- my $contents;
- open CACHE, "<$cache_file" || die;
- {
- local $/;
- $contents = <CACHE>;
- }
- close CACHE;
- %translations = split "\x01", $contents;
-}
-
-sub get_cached_translation_database
-{
- my $cache_file_age = -M $cache_file;
- if (defined $cache_file_age)
- {
- if ($cache_file_age <= &get_newest_po_age)
- {
- &load_cache;
- return;
- }
- print "Found too-old cached translation database\n" unless $QUIET_ARG;
- }
-
- &create_cache;
-}
-
-sub create_translation_database
-{
- for my $lang (keys %po_files_by_lang)
- {
- my $po_file = $po_files_by_lang{$lang};
-
- if ($UTF8_ARG)
- {
- my $encoding = get_po_encoding ($po_file);
-
- if (lc $encoding eq "utf-8")
- {
- open PO_FILE, "<$po_file";
- }
- else
- {
- print STDERR "WARNING: $po_file is not in UTF-8 but $encoding, converting...\n" unless $QUIET_ARG;;
-
- open PO_FILE, "$iconv -f $encoding -t UTF-8 $po_file|";
- }
- }
- else
- {
- open PO_FILE, "<$po_file";
- }
-
- my $nextfuzzy = 0;
- my $inmsgid = 0;
- my $inmsgstr = 0;
- my $msgid = "";
- my $msgstr = "";
-
- while (<PO_FILE>)
- {
- $nextfuzzy = 1 if /^#, fuzzy/;
-
- if (/^msgid "((\\.|[^\\])*)"/ )
- {
- $translations{$lang, $msgid} = $msgstr if $inmsgstr && $msgid && $msgstr;
- $msgid = "";
- $msgstr = "";
-
- if ($nextfuzzy) {
- $inmsgid = 0;
- } else {
- $msgid = unescape_po_string($1);
- $inmsgid = 1;
- }
- $inmsgstr = 0;
- $nextfuzzy = 0;
- }
-
- if (/^msgstr "((\\.|[^\\])*)"/)
- {
- $msgstr = unescape_po_string($1);
- $inmsgstr = 1;
- $inmsgid = 0;
- }
-
- if (/^"((\\.|[^\\])*)"/)
- {
- $msgid .= unescape_po_string($1) if $inmsgid;
- $msgstr .= unescape_po_string($1) if $inmsgstr;
- }
- }
- $translations{$lang, $msgid} = $msgstr if $inmsgstr && $msgid && $msgstr;
- }
-}
-
-sub finalize
-{
-}
-
-sub unescape_one_sequence
-{
- my ($sequence) = @_;
-
- return "\\" if $sequence eq "\\\\";
- return "\"" if $sequence eq "\\\"";
- return "\n" if $sequence eq "\\n";
-
- # gettext also handles \n, \t, \b, \r, \f, \v, \a, \xxx (octal),
- # \xXX (hex) and has a comment saying they want to handle \u and \U.
-
- return $sequence;
-}
-
-sub unescape_po_string
-{
- my ($string) = @_;
-
- $string =~ s/(\\.)/unescape_one_sequence($1)/eg;
-
- return $string;
-}
-
-## NOTE: deal with < - &lt; but not > - &gt; because it seems its ok to have
-## > in the entity. For further info please look at #84738.
-sub entity_decode
-{
- local ($_) = @_;
-
- s/&apos;/'/g; # '
- s/&quot;/"/g; # "
- s/&amp;/&/g;
- s/&lt;/</g;
-
- return $_;
-}
-
-# entity_encode: (string)
-#
-# Encode the given string to XML format (encode '<' etc). It also
-# encodes high bit if not in UTF-8 mode.
-
-sub entity_encode
-{
- my ($pre_encoded) = @_;
-
- my @list_of_chars = unpack ('C*', $pre_encoded);
-
- if ($PASS_THROUGH_ARG)
- {
- return join ('', map (&entity_encode_int_even_high_bit, @list_of_chars));
- }
- else
- {
- # with UTF-8 we only encode minimalistic
- return join ('', map (&entity_encode_int_minimalist, @list_of_chars));
- }
-}
-
-sub entity_encode_int_minimalist
-{
- return "&quot;" if $_ == 34;
- return "&amp;" if $_ == 38;
- return "&apos;" if $_ == 39;
- return "&lt;" if $_ == 60;
- return chr $_;
-}
-
-sub entity_encode_int_even_high_bit
-{
- if ($_ > 127 || $_ == 34 || $_ == 38 || $_ == 39 || $_ == 60)
- {
- # the ($_ > 127) should probably be removed
- return "&#" . $_ . ";";
- }
- else
- {
- return chr $_;
- }
-}
-
-sub entity_encoded_translation
-{
- my ($lang, $string) = @_;
-
- my $translation = $translations{$lang, $string};
- return $string if !$translation;
- return entity_encode ($translation);
-}
-
-## XML (bonobo-activation specific) merge code
-
-sub ba_merge_translations
-{
- my $source;
-
- {
- local $/; # slurp mode
- open INPUT, "<$FILE" or die "can't open $FILE: $!";
- $source = <INPUT>;
- close INPUT;
- }
-
- open OUTPUT, ">$OUTFILE" or die "can't open $OUTFILE: $!";
-
- while ($source =~ s|^(.*?)([ \t]*<\s*$w+\s+($w+\s*=\s*"$q"\s*)+/?>)([ \t]*\n)?||s)
- {
- print OUTPUT $1;
-
- my $node = $2 . "\n";
-
- my @strings = ();
- $_ = $node;
- while (s/(\s)_($w+\s*=\s*"($q)")/$1$2/s) {
- push @strings, entity_decode($3);
- }
- print OUTPUT;
-
- my %langs;
- for my $string (@strings)
- {
- for my $lang (keys %po_files_by_lang)
- {
- $langs{$lang} = 1 if $translations{$lang, $string};
- }
- }
-
- for my $lang (sort keys %langs)
- {
- $_ = $node;
- s/(\sname\s*=\s*)"($q)"/$1"$2-$lang"/s;
- s/(\s)_($w+\s*=\s*")($q)"/$1 . $2 . entity_encoded_translation($lang, $3) . '"'/seg;
- print OUTPUT;
- }
- }
-
- print OUTPUT $source;
-
- close OUTPUT;
-}
-
-
-## XML (non-bonobo-activation) merge code
-
-sub xml_merge_translations
-{
- my $source;
-
- {
- local $/; # slurp mode
- open INPUT, "<$FILE" or die "can't open $FILE: $!";
- $source = <INPUT>;
- close INPUT;
- }
-
- open OUTPUT, ">$OUTFILE" or die;
-
- # FIXME: support attribute translations
-
- # Empty nodes never need translation, so unmark all of them.
- # For example, <_foo/> is just replaced by <foo/>.
- $source =~ s|<\s*_($w+)\s*/>|<$1/>|g;
-
- # Support for <_foo>blah</_foo> style translations.
- while ($source =~ s|^(.*?)([ \t]*)<\s*_($w+)\s*>(.*?)<\s*/_\3\s*>([ \t]*\n)?||s)
- {
- print OUTPUT $1;
-
- my $spaces = $2;
- my $tag = $3;
- my $string = $4;
-
- print OUTPUT "$spaces<$tag>$string</$tag>\n";
-
- $string =~ s/\s+/ /g;
- $string =~ s/^ //;
- $string =~ s/ $//;
- $string = entity_decode($string);
-
- for my $lang (sort keys %po_files_by_lang)
- {
- my $translation = $translations{$lang, $string};
- next if !$translation;
- $translation = entity_encode($translation);
- print OUTPUT "$spaces<$tag xml:lang=\"$lang\">$translation</$tag>\n";
- }
- }
-
- print OUTPUT $source;
-
- close OUTPUT;
-}
-
-sub keys_merge_translations
-{
- open INPUT, "<${FILE}" or die;
- open OUTPUT, ">${OUTFILE}" or die;
-
- while (<INPUT>)
- {
- if (s/^(\s*)_(\w+=(.*))/$1$2/)
- {
- my $string = $3;
-
- print OUTPUT;
-
- my $non_translated_line = $_;
-
- for my $lang (sort keys %po_files_by_lang)
- {
- my $translation = $translations{$lang, $string};
- next if !$translation;
-
- $_ = $non_translated_line;
- s/(\w+)=.*/[$lang]$1=$translation/;
- print OUTPUT;
- }
- }
- else
- {
- print OUTPUT;
- }
- }
-
- close OUTPUT;
- close INPUT;
-}
-
-sub desktop_merge_translations
-{
- open INPUT, "<${FILE}" or die;
- open OUTPUT, ">${OUTFILE}" or die;
-
- while (<INPUT>)
- {
- if (s/^(\s*)_(\w+=(.*))/$1$2/)
- {
- my $string = $3;
-
- print OUTPUT;
-
- my $non_translated_line = $_;
-
- for my $lang (sort keys %po_files_by_lang)
- {
- my $translation = $translations{$lang, $string};
- next if !$translation;
-
- $_ = $non_translated_line;
- s/(\w+)=.*/${1}[$lang]=$translation/;
- print OUTPUT;
- }
- }
- else
- {
- print OUTPUT;
- }
- }
-
- close OUTPUT;
- close INPUT;
-}
-
-sub schemas_merge_translations
-{
- my $source;
-
- {
- local $/; # slurp mode
- open INPUT, "<$FILE" or die "can't open $FILE: $!";
- $source = <INPUT>;
- close INPUT;
- }
-
- open OUTPUT, ">$OUTFILE" or die;
-
- # FIXME: support attribute translations
-
- # Empty nodes never need translation, so unmark all of them.
- # For example, <_foo/> is just replaced by <foo/>.
- $source =~ s|<\s*_($w+)\s*/>|<$1/>|g;
-
- while ($source =~ s/
- (.*?)
- (\s+)(<locale\ name="C">(\s*)
- (<default>\s*(.*?)\s*<\/default>)?(\s*)
- (<short>\s*(.*?)\s*<\/short>)?(\s*)
- (<long>\s*(.*?)\s*<\/long>)?(\s*)
- <\/locale>)
- //sx)
- {
- print OUTPUT $1;
-
- my $locale_start_spaces = $2 ? $2 : '';
- my $default_spaces = $4 ? $4 : '';
- my $short_spaces = $7 ? $7 : '';
- my $long_spaces = $10 ? $10 : '';
- my $locale_end_spaces = $13 ? $13 : '';
- my $c_default_block = $3 ? $3 : '';
- my $default_string = $6 ? $6 : '';
- my $short_string = $9 ? $9 : '';
- my $long_string = $12 ? $12 : '';
-
- $c_default_block =~ s/default>\[.*?\]/default>/s;
-
- print OUTPUT "$locale_start_spaces$c_default_block";
-
- $default_string =~ s/\s+/ /g;
- $default_string = entity_decode($default_string);
- $short_string =~ s/\s+/ /g;
- $short_string = entity_decode($short_string);
- $long_string =~ s/\s+/ /g;
- $long_string = entity_decode($long_string);
-
- for my $lang (sort keys %po_files_by_lang)
- {
- my $default_translation = $translations{$lang, $default_string};
- my $short_translation = $translations{$lang, $short_string};
- my $long_translation = $translations{$lang, $long_string};
-
- next if (!$default_translation && !$short_translation &&
- !$long_translation);
-
- print OUTPUT "\n$locale_start_spaces<locale name=\"$lang\">";
-
- print OUTPUT "$default_spaces";
-
- if ($default_translation)
- {
- $default_translation = entity_encode($default_translation);
- print OUTPUT "<default>$default_translation</default>";
- }
-
- print OUTPUT "$short_spaces";
-
- if ($short_translation)
- {
- $short_translation = entity_encode($short_translation);
- print OUTPUT "<short>$short_translation</short>";
- }
-
- print OUTPUT "$long_spaces";
-
- if ($long_translation)
- {
- $long_translation = entity_encode($long_translation);
- print OUTPUT "<long>$long_translation</long>";
- }
-
- print OUTPUT "$locale_end_spaces</locale>";
- }
- }
-
- print OUTPUT $source;
-
- close OUTPUT;
-}
-
-sub rfc822deb_merge_translations
-{
- my $source;
-
- $Text::Wrap::huge = 'overflow';
-
- {
- local $/; # slurp mode
- open INPUT, "<$FILE" or die "can't open $FILE: $!";
- $source = <INPUT>;
- close INPUT;
- }
-
- open OUTPUT, ">${OUTFILE}" or die;
-
- while ($source =~ /(^|\n+)(_)?([^:_\n]+)(:\s*)(.*?)(?=\n[\S\n]|$)/sg)
- {
- my $sep = $1;
- my $non_translated_line = $3.$4;
- my $string = $5;
- my $is_translatable = defined($2);
- # Remove [] dummy strings
- $string =~ s/\[\s[^\[\]]*\]$//;
- $non_translated_line .= $string;
-
- print OUTPUT $sep.$non_translated_line;
-
- if ($is_translatable)
- {
- my @str_list = rfc822deb_split($string);
-
- for my $lang (sort keys %po_files_by_lang)
- {
- my $is_translated = 1;
- my $str_translated = '';
- my $first = 1;
-
- for my $str (@str_list)
- {
- my $translation = $translations{$lang, $str};
-
- if (!$translation)
- {
- $is_translated = 0;
- last;
- }
-
- # $translation may also contain [] dummy
- # strings, mostly to indicate an empty string
- $translation =~ s/\[\s[^\[\]]*\]$//;
-
- if ($first)
- {
- $str_translated .=
- Text::Tabs::expand($translation) .
- "\n";
- }
- else
- {
- $str_translated .= Text::Tabs::expand(
- Text::Wrap::wrap(' ', ' ', $translation)) .
- "\n .\n";
- }
- $first = 0;
-
- # To fix some problems with Text::Wrap::wrap
- $str_translated =~ s/(\n )+\n/\n .\n/g;
- }
- next unless $is_translated;
-
- $str_translated =~ s/\n \.\n$//;
- $str_translated =~ s/\s+$//;
-
- $_ = $non_translated_line;
- s/^(\w+):\s*.*/$sep${1}-$lang: $str_translated/s;
- print OUTPUT;
- }
- }
- }
- print OUTPUT "\n";
-
- close OUTPUT;
- close INPUT;
-}
-
-sub rfc822deb_split
-{
- # Debian defines a special way to deal with rfc822-style files:
- # when a value contain newlines, it consists of
- # 1. a short form (first line)
- # 2. a long description, all lines begin with a space,
- # and paragraphs are separated by a single dot on a line
- # This routine returns an array of all paragraphs, and reformat
- # them.
- my $text = shift;
- $text =~ s/^ //mg;
- return ($text) if $text !~ /\n/;
-
- $text =~ s/([^\n]*)\n//;
- my @list = ($1);
- my $str = '';
-
- for my $line (split (/\n/, $text))
- {
- chomp $line;
- $line =~ /\s+$/;
-
- if ($line =~ /^\.$/)
- {
- # New paragraph
- $str =~ s/\s*$//;
- push(@list, $str);
- $str = '';
- }
- elsif ($line =~ /^\s/)
- {
- # Line which must not be reformatted
- $str .= "\n" if length ($str) && $str !~ /\n$/;
- $str .= $line."\n";
- }
- else
- {
- # Continuation line, remove newline
- $str .= " " if length ($str) && $str !~ /[\n ]$/;
- $str .= $line;
- }
- }
-
- $str =~ s/\s*$//;
- push(@list, $str) if length ($str);
-
- return @list;
-}
-
diff --git a/man/.cvsignore b/man/.cvsignore
deleted file mode 100644
index 282522db0..000000000
--- a/man/.cvsignore
+++ /dev/null
@@ -1,2 +0,0 @@
-Makefile
-Makefile.in
diff --git a/man/Makefile.am b/man/Makefile.am
deleted file mode 100644
index 40728567e..000000000
--- a/man/Makefile.am
+++ /dev/null
@@ -1,2 +0,0 @@
-EXTRA_DIST=openoffice.1.in
-
diff --git a/man/openoffice.1.in b/man/openoffice.1.in
deleted file mode 100644
index 33ffa5c69..000000000
--- a/man/openoffice.1.in
+++ /dev/null
@@ -1,116 +0,0 @@
-.TH openoffice "1" "2002-11-11" "OpenOffice.org 1.0.1" "User Commands"
-.SH "Name"
-openoffice@BINSUFFIX@ \- OpenOffice.org office suite
-.SH SYNOPSIS
-.B openoffice@BINSUFFIX@
-[\-accept=] [\-display DISPLAYNAME] [\-invisible] [\-minimized]
-[\-norestore] [\-p] [\-pt] [\-quickstart] [\-server] [\-terminate_after_init]
-[FILE]...
-.br
-.B ooffice@BINSUFFIX@
-.br
-.B oocalc@BINSUFFIX@
-.br
-.B oodraw@BINSUFFIX@
-.br
-.B oohtml@BINSUFFIX@
-.br
-.B ooimpress@BINSUFFIX@
-.br
-.B oomath@BINSUFFIX@
-.br
-.B oowriter@BINSUFFIX@
-
-.SH DESCRIPTION
-OpenOffice.org is a fully featured office suite for the daily use with all
-features you'd normally expect in a office suite.
-
-This script runs OpenOffice with the arguments <args> given on the command line
-
-There are also some wrapper scripts in /usr/bin which are calling the "normal"
-openoffice script and run the wanted OpenOffice.org module.
-
-.SH OPTIONS
-These arguments are passed directly to the real start binary by the wrapper.
-.TP
-\fB[FILE]...\fR
-Files to operate on. Opening them is the default behaviour, which can be
-influenced by command line arguments. \fB\-p\fP will print the files instead.
-.TP
-\fB\-accept=\fR
-This command line parameter provides an uno accept string to the
-office. The accept string is used to create an acceptor thread.
-
-"socket," = Uses the socket implementation to create an acceptor.
-Currently used by scripting clients to access the OpenOffice.org API.
-.TP
-\fB\-display \fIDISPLAYNAME\fR
-This option specifies the X server to contact; see \fBX\fR(7x)
-.TP
-\fB\-invisible\fB
-The office doesn't show the intro bitmap during startup and doesn't
-open the first default document. After startup there is no visible UI
-although using the Office API it is possible to open visible
-documents/dialogs. The only way to shutdown the office is through the
-Office API or using the task manager / kill command.
-.TP
-\fB\-minimized\fR
-This argument only controls the visibility of the intro bitmap during startup.
-There is no code that minimizes the first window after startup.
-If you never want the intro to show up, you can set Logo=0 in
-\fI/etc/openoffice/sofficerc\fP
-.TP
-\fB\-norestore\fR
-Don't restart office and restore all opened documents automatically after an
-exception. It is possible OOo will try to restore a file it keeps crashing on,
-if that happens \-norestore is the only way to start OOo.
-.TP
-\fB\-p ...\fR
-.br
-"Print" command to print all following files on the default printer.
-The office doesn't show the intro bitmap during startup.
-.TP
-\fB\-pt ...\fR
-"Print to" command to specify an additional printer for output. The
-office doesn't show the intro bitmap during startup.
-.TP
-\fB\-quickstart\fR
-Specifies that the quickstarter service should be activated during
-startup. The office doesn't show the intro bitmap during startup. If you
-use this option for a 2nd office this command is send to the running
-office and activates the quickstarter.
-.TP
-\fB\-server\fR
-This argument is like -invisible, additionally the ucb component is
-configured using the configuration key
-/org.openoffice.ucb.Configuration/ContentProviders/['Server']/SecondaryKeys/['Office']/ProviderData
-instead of
-/org.openoffice.ucb.Configuration/ContentProviders/['Local']/SecondaryKeys/['Office']/ProviderData
-to support a remote file system. This configuration data is NOT included
-in OpenOffice so normally you cannot use it. Please use -invisible
-instead.
-
-There are some limitations for this command line argument. All "open",
-"print", "print to" commands on the command line are ignored. No default
-document is opened. After startup there is no visible UI although using
-the Office API it is possible to open visible documents/dialogs. The
-only way to shutdown the office is through the Office API or using the
-task manager / kill command.
-.TP
-\fB\-terminate_after_init\fR
-The office terminates after it registers some uno services. The office
-doesn't show the intro bitmap during startup.
-
-.SH TROUBLESHOOTING PROBLEMS
-If OOo crashes, you should get a GUI bug reporting tool, please use
-that to file a helpful bug report, or see http://ooo.ximian.com/hackers-guide.html
-for more information on debugging OOo.
-.SH FILES
-.TP
-\fI/etc/openoffice/\fP
-.SH SEE ALSO
-.BR http://ooo.ximian.com/
-.SH AUTHOR
-This manual page was created by Rene Engelhard <rene@debian.org> for
-the Debian GNU/Linux Distribution, because the original package does not have
-one.
diff --git a/ooo1.1.spec.in b/ooo1.1.spec.in
deleted file mode 100644
index cea4284cd..000000000
--- a/ooo1.1.spec.in
+++ /dev/null
@@ -1,193 +0,0 @@
-# RPM specfile for ooo1.1 module
-# Generated Fri Aug 8 11:32:32 2003 GMT by Ximian build system
-# $Id: ooo1.1.spec.in,v 1.4 2003/08/21 10:58:14 michael Exp $
-# from $Id: ooo1.1.spec.in,v 1.4 2003/08/21 10:58:14 michael Exp $
-
-%define _topdir @BASEDIR@
-%define _sourcedir @BASEDIR@/src
-%define _builddir @BASEDIR@/build
-%define buildroot @BASEDIR@/dest
-%define _rpmdir /tmp/michael/built-packages
-%define _srcrpmdir /tmp/michael/built-packages
-%define _install_script_path /usr/bin:/usr/X11R6/bin:/usr/bin:/bin
-%define _rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm
-%define _noPayloadPrefix 1
-%define __check_files /usr/share/ximian-build-system/packsys/rpm/check-files /home/michael/openoffice/bb-snaps/dest
-%define __find_requires @BASEDIR@/bin/nothing
-%define __find_provides @BASEDIR@/bin/nothing
-%define _use_internal_dependency_generator 0
-
-%define nam ooo1.1
-%define ver 1.1
-%define licensedir %{_datadir}/licenses/%{nam}-%{ver}
-%define ximrev 7.@SNAPSHOT_TAG@
-
-Name: ooo1.1
-Version: 1.1
-Release: 0.ximian.6.7.@SNAPSHOT_TAG@
-Vendor: Ximian, Inc.
-Distribution: Ximian GNOME for Red Hat Linux 9 / i386
-Copyright: LGPL
-BuildRoot: /var/tmp/%{nam}-%{ver}-root
-Docdir: /usr/share/doc
-
-URL: http://ooo.ximian.com
-Summary: OpenOffice.org Office Suite
-Group: Applications/Office
-Requires: fontconfig
-Requires: perl-XML-Twig
-Requires: gnome-cups-manager
-Requires: gnome-vfs2
-Requires: ooo-fonts
-Requires: unzip
-Requires: libart_lgpl >= 2.3.13
-Provides: ximian-ooo1.1 = %{?epoch:%{epoch}:}%{version}-%{?ximrev:%{ximrev}}%{!?ximrev:%{release}}
-Obsoletes: openoffice
-Obsoletes: openoffice-skel
-Obsoletes: openoffice-libs
-Obsoletes: ooo-sys
-
-%description
-OpenOffice.org is a Free software, Microsoft Office compatible,
-productivity suite. It is the most powerful office suite
-available on Free platforms.
-
-Usage: Use 'ooffice' to run the suite.
-
-%files
-%defattr(-, root, root)
-/etc/openoffice
-/usr/lib/ooo-1.1/help/en
-/usr/lib/ooo-1.1/help/main_transform.xsl
-/usr/lib/ooo-1.1/LICENSE*
-/usr/lib/ooo-1.1/README*
-/usr/lib/ooo-1.1/install-dict
-/usr/lib/ooo-1.1/program/a*
-/usr/lib/ooo-1.1/program/b*
-/usr/lib/ooo-1.1/program/c*
-/usr/lib/ooo-1.1/program/f*
-/usr/lib/ooo-1.1/program/g*
-/usr/lib/ooo-1.1/program/i*
-/usr/lib/ooo-1.1/program/j*
-/usr/lib/ooo-1.1/program/l*
-/usr/lib/ooo-1.1/program/m*
-/usr/lib/ooo-1.1/program/n*
-/usr/lib/ooo-1.1/program/o*
-/usr/lib/ooo-1.1/program/p*
-/usr/lib/ooo-1.1/program/reg*
-/usr/lib/ooo-1.1/program/rem*
-/usr/lib/ooo-1.1/program/s*
-/usr/lib/ooo-1.1/program/t*
-/usr/lib/ooo-1.1/program/u*
-/usr/lib/ooo-1.1/program/resource/*01.res
-/usr/bin/oo*
-/usr/share/gnome/ximian/applications/*1.1.desktop
-/usr/share/pixmaps/ximian-openoffice*
-/usr/lib/ooo-1.1/user/autocorr
-/usr/lib/ooo-1.1/user/autotext/english
-/usr/lib/ooo-1.1/user/basic
-/usr/lib/ooo-1.1/user/config
-/usr/lib/ooo-1.1/user/database
-/usr/lib/ooo-1.1/user/gallery
-/usr/lib/ooo-1.1/user/plugin
-/usr/lib/ooo-1.1/user/psprint
-/usr/lib/ooo-1.1/user/store
-/usr/lib/ooo-1.1/user/temp
-/usr/lib/ooo-1.1/user/template
-/usr/lib/ooo-1.1/user/uno_packages
-/usr/lib/ooo-1.1/user/wordbook
-/usr/lib/ooo-1.1/share/autocorr
-/usr/lib/ooo-1.1/share/autotext/english
-/usr/lib/ooo-1.1/share/basic
-/usr/lib/ooo-1.1/share/config
-/usr/lib/ooo-1.1/share/dtd
-/usr/lib/ooo-1.1/share/dict
-/usr/lib/ooo-1.1/share/gallery
-/usr/lib/ooo-1.1/share/fonts
-/usr/lib/ooo-1.1/share/psprint
-/usr/lib/ooo-1.1/share/readme
-/usr/lib/ooo-1.1/share/registry
-/usr/lib/ooo-1.1/share/samples
-/usr/lib/ooo-1.1/share/uno_packages
-/usr/lib/ooo-1.1/share/template/english
-/usr/lib/ooo-1.1/share/wordbook/english
-/usr/lib/ooo-1.1/share/xslt
-
-
-# $RPM_COMMAND is an environment variable used by the Ximian build
-# system to control the build process with finer granularity than RPM
-# normally allows. This specfile will function as expected by RPM if
-# $RPM_COMMAND is unset. If you are not the Ximian build system,
-# feel free to ignore it.
-
-%prep
-case "${RPM_COMMAND:-all}" in
-dist)
- ;;
-all)
- ;;
-esac
-case "${RPM_COMMAND:-all}" in
-dist|all)
- ;;
-esac
-
-%build
-MAKE=${MAKE:-make}
-RPM_COMMAND=${RPM_COMMAND:-all}
-DESTDIR=${DESTDIR:-"$RPM_BUILD_ROOT"}
-ARCH=%{_target_platform}
-export MAKE RPM_COMMAND DESTDIR ARCH
-case "$RPM_COMMAND" in
-prepare|all)
- (./configure --prefix=/usr --sysconfdir=/etc)
- ;;
-esac
-case "$RPM_COMMAND" in
-clean|all)
- if [ "/" != "$DESTDIR" ]; then
- rm -rf "$DESTDIR"
- fi
- ;;
-esac
-case "$RPM_COMMAND" in
-build|all)
- (make)
- ;;
-esac
-
-%install
-MAKE=${MAKE:-make}
-DESTDIR=${DESTDIR:-"$RPM_BUILD_ROOT"}
-# export DESTDIR
-case "${RPM_COMMAND:-all}" in
-install|all)
- (make DESTDIR=${DESTDIR} install)
- ;;
-esac
-
-%clean
-DESTDIR=${DESTDIR:-"$RPM_BUILD_ROOT"}
-export DESTDIR
-case "${RPM_COMMAND:-all}" in
-clean|all)
- if [ "/" != "$DESTDIR" ]; then
- rm -rf "$DESTDIR"
- fi
- ;;
-esac
-
-
-%changelog
-* Fri Aug 8 2003 Ximian, Inc.
-
-- Version: 1.1-0.ximian.6.6.RC3_030729.35
-- Summary: New build.
-- New automated build.
-
-* Wed Jun 11 2003 Ximian, Inc.
-
-- Version: [[ooversion]]-0.ximian.6.1
-- Summary: New build.
-- New automated build.
-