Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
9f5fbeb4
Kaydet (Commit)
9f5fbeb4
authored
Haz 22, 2010
tarafından
obo
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
CWS-TOOLING: integrate CWS mythes12
üst
0cf05168
cd551000
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
316 additions
and
0 deletions
+316
-0
makefile.mk
mythes/makefile.mk
+115
-0
mythes-1.2.0-makefile-mk.diff
mythes/mythes-1.2.0-makefile-mk.diff
+94
-0
mythes-1.2.0-vanilla-th-gen-idx.patch
mythes/mythes-1.2.0-vanilla-th-gen-idx.patch
+97
-0
build.lst
mythes/prj/build.lst
+3
-0
d.lst
mythes/prj/d.lst
+7
-0
No files found.
mythes/makefile.mk
0 → 100644
Dosyayı görüntüle @
9f5fbeb4
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2000, 2010 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
#
# This file is part of OpenOffice.org.
#
# OpenOffice.org is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# only, as published by the Free Software Foundation.
#
# OpenOffice.org 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 Lesser General Public License version 3 for more details
# (a copy is included in the LICENSE file that accompanied this code).
#
# You should have received a copy of the GNU Lesser General Public License
# version 3 along with OpenOffice.org. If not, see
# <http://www.openoffice.org/license.html>
# for a copy of the LGPLv3 License.
#
#*************************************************************************
PRJ
=
.
PRJNAME
=
mythes
TARGET
=
mythes
# --- Settings -----------------------------------------------------
.INCLUDE
:
settings.mk
# --- Files --------------------------------------------------------
TARFILE_NAME
=
mythes-1.2.0
TARFILE_MD5
=
067201ea8b126597670b5eff72e1f66c
ADDITIONAL_FILES
+=
makefile.mk
PATCH_FILES
=
mythes-1.2.0-vanilla-th-gen-idx.patch
\
mythes-1.2.0-makefile-mk.diff
.IF
"$(GUI)"
==
"UNX"
CONFIGURE_DIR
=
$(BUILD_DIR)
.IF
"$(SYSTEM_HUNSPELL)"
!=
"YES"
HUNSPELL_CFLAGS +
:
= -I$(SOLARINCDIR)$/hunspell
HUNSPELL_LIBS +
:
= -L$(SOLARLIBDIR) -lhunspell-1.2
.ENDIF
#relative to CONFIGURE_DIR
# still needed also in system-mythes case as it creates the makefile
CONFIGURE_ACTION
=
configure
CONFIGURE_FLAGS
=
--disable-shared
--with-pic
.IF
"$(COM)"
==
"C52"
&&
"$(CPU)"
==
"U"
LCL_CONFIGURE_CFLAGS
+=
-m64
.ENDIF
.IF
"$(SYSBASE)"
!=
""
.IF
"$(EXTRA_CFLAGS)"
!=
""
LCL_CONFIGURE_CFLAGS
+=
$(EXTRA_CFLAGS)
CONFIGURE_FLAGS
+=
CXXFLAGS
=
"
$(EXTRA_CFLAGS)
"
.ENDIF
# "$(EXTRA_CFLAGS)"!=""
.ELIF
"$(OS)"
==
"MACOSX"
# "$(SYSBASE)"!=""
CONFIGURE_FLAGS
+=
CPPFLAGS
=
"
$(EXTRA_CDEFS)
"
.ENDIF
.IF
"$(LCL_CONFIGURE_CFLAGS)"
!=
""
CONFIGURE_FLAGS
+=
CFLAGS
=
'
$(LCL_CONFIGURE_CFLAGS)
'
.ENDIF
.IF
"$(SYSTEM_MYTHES)"
==
"YES"
@all
:
echo
"Nothing to do here."
.ELSE
BUILD_ACTION
=
make
OUT2INC
+=
mythes.hxx
.ENDIF
.ENDIF
# "$(GUI)"=="UNX"
.IF
"$(GUI)"
==
"WNT"
.IF
"$(COM)"
==
"GCC"
CONFIGURE_ACTION
=
configure
CONFIGURE_FLAGS
=
--disable-shared
--with-pic
BUILD_ACTION
=
make
.ELSE
BUILD_ACTION
=
dmake
.ENDIF
# "$(COM)"=="GCC"
OUT2INC
+=
mythes.hxx
.ENDIF
# "$(GUI)"=="WNT"
.IF
"$(GUI)"
==
"OS2"
BUILD_ACTION
=
dmake
OUT2INC
+=
mythes.hxx
.ENDIF
# "$(GUI)"=="OS2"
# --- Targets ------------------------------------------------------
.INCLUDE
:
set_ext.mk
.INCLUDE
:
target.mk
.INCLUDE
:
tg_ext.mk
.IF
"$(SYSTEM_HUNSPELL)"
!=
"YES"
.EXPORT
:
HUNSPELL_LIBS HUNSPELL_CFLAGS
.ENDIF
mythes/mythes-1.2.0-makefile-mk.diff
0 → 100644
Dosyayı görüntüle @
9f5fbeb4
--- misc/mythes-1.2.0/makefile.mk 2010-05-14 23:36:09.000000000 +0200
+++ misc/build/mythes-1.2.0/makefile.mk 2010-05-14 23:35:14.000000000 +0200
@@ -1 +1,90 @@
-dummy
+#*************************************************************************
+#
+# $RCSfile: makefile.mk,v $
+#
+# $Revision: 1.1.1.1 $
+#
+# last change: $Author: caolan $ $Date: 2010/02/27 15:52:17 $
+#
+# The Contents of this file are made available subject to the terms of
+# either of the following licenses
+#
+# - GNU Lesser General Public License Version 2.1
+# - Sun Industry Standards Source License Version 1.1
+#
+# Sun Microsystems Inc., October, 2000
+#
+# GNU Lesser General Public License Version 2.1
+# =============================================
+# Copyright 2000 by Sun Microsystems, Inc.
+# 901 San Antonio Road, Palo Alto, CA 94303, USA
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License version 2.1, as published by the Free Software Foundation.
+#
+# This library 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
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+#
+# Sun Industry Standards Source License Version 1.1
+# =================================================
+# The contents of this file are subject to the Sun Industry Standards
+# Source License Version 1.1 (the "License"); You may not use this file
+# except in compliance with the License. You may obtain a copy of the
+# License at http://www.openoffice.org/license.html.
+#
+# Software provided under this License is provided on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+# See the License for the specific provisions governing your rights and
+# obligations concerning the Software.
+#
+# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+#
+# Copyright: 2000 by Sun Microsystems, Inc.
+#
+# All Rights Reserved.
+#
+# Contributor(s): _______________________________________
+#
+#
+#
+#*************************************************************************
+
+PRJ = ../../../..
+
+PRJNAME = mythes
+TARGET = mythes
+LIBTARGET=YES
+EXTERNAL_WARNINGS_NOT_ERRORS := TRUE
+
+#----- Settings ---------------------------------------------------------
+
+.INCLUDE : settings.mk
+
+# --- Files --------------------------------------------------------
+
+all_target: ALLTAR
+
+
+
+SLOFILES= \
+ $(SLO)$/mythes.obj
+
+LIB1TARGET= $(SLB)$/lib$(TARGET).lib
+LIB1ARCHIV= $(LB)/lib$(TARGET).a
+LIB1OBJFILES= $(SLOFILES)
+
+# --- Targets ------------------------------------------------------
+
+.INCLUDE : target.mk
+
mythes/mythes-1.2.0-vanilla-th-gen-idx.patch
0 → 100644
Dosyayı görüntüle @
9f5fbeb4
--- misc/mythes-1.2.0.orig/th_gen_idx.pl
+++ misc/build/mythes-1.2.0/th_gen_idx.pl
@@ -1,11 +1,32 @@
-#!/usr/bin/perl
-
-# perl program to take a thesaurus structured text data file
-# and create the proper sorted index file (.idx)
+:
+eval 'exec perl -wS $0 ${1+"$@"}'
+ if 0;
+#*************************************************************************
+#
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# Copyright 2000, 2010 Oracle and/or its affiliates.
+#
+# OpenOffice.org - a multi-platform office productivity suite
+#
+# This file is part of OpenOffice.org.
+#
+# OpenOffice.org is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# only, as published by the Free Software Foundation.
+#
+# OpenOffice.org 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 Lesser General Public License version 3 for more details
+# (a copy is included in the LICENSE file that accompanied this code).
#
-# typcially invoked as follows:
-# cat th_en_US_new.dat | ./th_gen_idx.pl > th_en_US_new.idx
+# You should have received a copy of the GNU Lesser General Public License
+# version 3 along with OpenOffice.org. If not, see
+# <http://www.openoffice.org/license.html>
+# for a copy of the LGPLv3 License.
#
+#*************************************************************************
sub by_entry {
my ($aent, $aoff) = split('\|',$a);
@@ -13,6 +34,27 @@ sub by_entry {
$aent cmp $bent;
}
+#FIXME: someone may want "infile" or even parameter parsing
+sub get_outfile {
+ my $next_is_file = 0;
+ foreach ( @ARGV ) {
+ if ( $next_is_file ) {
+ return $_
+ }
+ if ( $_ eq "-o" ) {
+ $next_is_file = 1;
+ }
+ }
+ return "";
+}
+
+sub usage {
+ print "usage:\n";
+ print "$0 -o outfile < input\n";
+
+ exit 99;
+}
+
# main routine
my $ne = 0; # number of entries in index
my @tindex=(); # the index itself
@@ -24,6 +66,10 @@ my $nm=0; # number of meaning fo
my $meaning=""; # current meaning and synonyms
my $p; # misc uses
my $encoding; # encoding used by text file
+my $outfile = "";
+
+$outfile = get_outfile();
+usage() if ( $outfile eq "" );
# top line of thesaurus provides encoding
$encoding=<STDIN>;
@@ -51,9 +97,13 @@ while ($rec=<STDIN>){
# now we have all of the information
# so sort it and then output the encoding, count and index data
@tindex = sort by_entry @tindex;
-print STDOUT "$encoding\n";
-print STDOUT "$ne\n";
+
+print "$outfile\n";
+open OUTFILE, ">$outfile" or die "ERROR: Can't open $outfile for writing!";
+print OUTFILE "$encoding\n";
+print OUTFILE "$ne\n";
foreach $one (@tindex) {
- print STDOUT "$one\n";
+ print OUTFILE "$one\n";
}
+close OUTFILE;
mythes/prj/build.lst
0 → 100644
Dosyayı görüntüle @
9f5fbeb4
myt mythes : soltools solenv HUNSPELL:hunspell NULL
myt mythes usr1 - all myt_mkout NULL
myt mythes nmake - all myt_mythes NULL
mythes/prj/d.lst
0 → 100644
Dosyayı görüntüle @
9f5fbeb4
..\%__SRC%\slb\libmythes.lib %_DEST%\lib%_EXT%\libmythes.lib
..\%__SRC%\inc\mythes.hxx %_DEST%\inc%_EXT%\mythes.hxx
..\%__SRC%\misc\build\mythes-1.2.0\.libs\libmythes-1.2.a %_DEST%\lib%_EXT%\libmythes-1.2.a
..\%__SRC%\lib\libmythes-1.2.a %_DEST%\lib%_EXT%\libmythes-1.2.a
..\%__SRC%\misc\build\mythes-1.2.0\th_gen_idx.pl %_DEST%\bin%_EXT%\th_gen_idx.pl
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment