--- kipina-0.1.1.orig/doc/reference/Makefile +++ kipina-0.1.1/doc/reference/Makefile @@ -0,0 +1,408 @@ +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am + +# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +# This is a blank Makefile.am for using gtk-doc. +# Copy this to your project's API docs directory and modify the variables to +# suit your project. See the GTK+ Makefiles in gtk+/docs/reference for examples +# of using the various options. + +# The name of the module, e.g. 'glib'. + + +SHELL = /bin/sh + +srcdir = . +top_srcdir = ../.. + +prefix = /usr +exec_prefix = ${prefix} + +bindir = ${exec_prefix}/bin +sbindir = ${exec_prefix}/sbin +libexecdir = ${exec_prefix}/libexec +datadir = ${prefix}/share +sysconfdir = ${prefix}/etc +sharedstatedir = ${prefix}/com +localstatedir = ${prefix}/var +libdir = ${exec_prefix}/lib +infodir = ${prefix}/share/info +mandir = ${prefix}/share/man +includedir = ${prefix}/include +oldincludedir = /usr/include + +DESTDIR = + +pkgdatadir = $(datadir)/kipina +pkglibdir = $(libdir)/kipina +pkgincludedir = $(includedir)/kipina + +top_builddir = ../.. + +ACLOCAL = /home/abi/qa/kipina-0.1.1/missing aclocal-1.4 +AUTOCONF = autoconf +AUTOMAKE = /home/abi/qa/kipina-0.1.1/missing automake-1.4 +AUTOHEADER = autoheader + +INSTALL = /usr/bin/install -c +INSTALL_PROGRAM = ${INSTALL} $(AM_INSTALL_PROGRAM_FLAGS) +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_SCRIPT = ${INSTALL} +transform = s,x,x, + +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +host_alias = x86_64-linux-gnu +host_triplet = x86_64-pc-linux-gnu +AR = ar +AS = @AS@ +CATALOGS = fi.gmo +CATOBJEXT = .gmo +CC = x86_64-linux-gnu-gcc +CXX = x86_64-linux-gnu-g++ +CXXCPP = x86_64-linux-gnu-g++ -E +DATADIRNAME = share +DLLTOOL = @DLLTOOL@ +ECHO = echo +EGREP = grep -E +EXEEXT = +F77 = x86_64-linux-gnu-g77 +GCJ = @GCJ@ +GCJFLAGS = @GCJFLAGS@ +GETTEXT_PACKAGE = kipina +GLADE_CFLAGS = -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 +GLADE_LIBS = -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lX11 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 +GMOFILES = fi.gmo +GMSGFMT = /usr/bin/msgfmt +GOBJECT_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include +GOBJECT_LIBS = -lgobject-2.0 -lglib-2.0 +GTK_CFLAGS = -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 +GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lX11 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 +HAVE_LIB = @HAVE_LIB@ +HTML_DIR = ${datadir}/gtk-doc/html +INSTOBJEXT = .mo +INTLLIBS = +INTLTOOL_CAVES_RULE = %.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +INTLTOOL_DESKTOP_RULE = %.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +INTLTOOL_DIRECTORY_RULE = %.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +INTLTOOL_EXTRACT = $(top_builddir)/intltool-extract +INTLTOOL_KBD_RULE = %.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +INTLTOOL_KEYS_RULE = %.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +INTLTOOL_MERGE = $(top_builddir)/intltool-merge +INTLTOOL_OAF_RULE = %.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@ +INTLTOOL_PERL = /usr/bin/perl +INTLTOOL_PONG_RULE = %.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +INTLTOOL_PROP_RULE = %.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +INTLTOOL_SCHEMAS_RULE = %.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +INTLTOOL_SERVER_RULE = %.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +INTLTOOL_SHEET_RULE = %.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +INTLTOOL_SOUNDLIST_RULE = %.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +INTLTOOL_THEME_RULE = %.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +INTLTOOL_UI_RULE = %.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +INTLTOOL_UPDATE = $(top_builddir)/intltool-update +INTLTOOL_XAM_RULE = %.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +INTLTOOL_XML_RULE = %.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +LIB = @LIB@ +LIBTOOL = $(SHELL) $(top_builddir)/libtool +LIBXML2_CFLAGS = -I/usr/include/libxml2 +LIBXML2_LIBS = -lxml2 +LIBXSLT_CFLAGS = -I/usr/include/libxml2 +LIBXSLT_LIBS = -lxslt -lxml2 +LN_S = ln -s +LTLIB = @LTLIB@ +MAINT = # +MAKEINFO = makeinfo +MKINSTALLDIRS = ./mkinstalldirs +OBJDUMP = @OBJDUMP@ +OBJEXT = o +PACKAGE = kipina +PKG_CONFIG = /usr/bin/pkg-config +POFILES = fi.po +POSUB = po +PO_IN_DATADIR_FALSE = +PO_IN_DATADIR_TRUE = +RANLIB = ranlib +RC = @RC@ +STRIP = strip +USE_NLS = yes +VERSION = 0.1.1 +kipinalocaledir = ${prefix}/${DATADIRNAME}/locale + +DOC_MODULE = kipina + +# The top-level SGML file. Change it if you want. +DOC_MAIN_SGML_FILE = $(DOC_MODULE)-docs.sgml + +# The directory containing the source code. +DOC_SOURCE_DIR = ../../src + +# Extra options to pass to gtkdoc-scanobj or gtkdoc-scangobj. +SCANOBJ_OPTIONS = --type-init-func="gtk_type_init(0)" + +# Extra options to supply to gtkdoc-scan. +SCAN_OPTIONS = + +# Extra options to supply to gtkdoc-mkdb. +MKDB_OPTIONS = + +# Extra options to supply to gtkdoc-fixref. +FIXXREF_OPTIONS = + +# Used for dependencies. +HFILE_GLOB = +CFILE_GLOB = + +# Header files to ignore when scanning. +IGNORE_HFILES = + +# Images to copy into HTML directory. +HTML_IMAGES = + +# Extra SGML files that are included by $(DOC_MAIN_SGML_FILE). +content_files = + +# Other files to distribute. +extra_files = + +# CFLAGS and LDFLAGS for compiling scan program. Only needed if your app/lib +# contains GtkObjects/GObjects and you want to document signals and properties. +GTKDOC_CFLAGS = `pkg-config --cflags gtk+-2.0 glib-2.0 libxml-2.0 libxslt libglade-2.0` -I../../src -I../../src/gui +GTKDOC_LIBS = `pkg-config --libs gtk+-2.0 glib-2.0 gthread-2.0 libxml-2.0 libxslt libglade-2.0` ../../src/libkipina.a ../../src/gui/libgui.a + +GTKDOC_CC = $(CC) +GTKDOC_LD = $(CC) + +# If you need to override some of the declarations, place them in the +# $(DOC_MODULE)-overrides.txt file and uncomment the second line here. +DOC_OVERRIDES = +#DOC_OVERRIDES = $(DOC_MODULE)-overrides.txt + +########################################################################### +# Everything below here is generic and you shouldn't need to change it. +########################################################################### + +TARGET_DIR = $(HTML_DIR)/$(DOC_MODULE) + +EXTRA_DIST = $(content_files) $(extra_files) $(HTML_IMAGES) $(DOC_MAIN_SGML_FILE) $(DOC_MODULE).types $(DOC_MODULE)-sections.txt $(DOC_OVERRIDES) + + +DOC_STAMPS = scan-build.stamp tmpl-build.stamp sgml-build.stamp html-build.stamp $(srcdir)/tmpl.stamp $(srcdir)/sgml.stamp $(srcdir)/html.stamp + + +SCANOBJ_FILES = $(DOC_MODULE).args $(DOC_MODULE).hierarchy $(DOC_MODULE).signals + +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs +CONFIG_CLEAN_FILES = +DIST_COMMON = Makefile.am Makefile.in + + +DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) + +TAR = tar +GZIP_ENV = --best +all: all-redirect +.SUFFIXES: +$(srcdir)/Makefile.in: # Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) + cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps doc/reference/Makefile + +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + cd $(top_builddir) \ + && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status + +tags: TAGS +TAGS: + + +distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) + +subdir = doc/reference + +distdir: $(DISTFILES) + @for file in $(DISTFILES); do \ + d=$(srcdir); \ + if test -d $$d/$$file; then \ + cp -pr $$d/$$file $(distdir)/$$file; \ + else \ + test -f $(distdir)/$$file \ + || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ + || cp -p $$d/$$file $(distdir)/$$file || :; \ + fi; \ + done + $(MAKE) $(AM_MAKEFLAGS) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-hook +info-am: +info: info-am +dvi-am: +dvi: dvi-am +check-am: all-am +check: check-am +installcheck-am: +installcheck: installcheck-am +install-exec-am: +install-exec: install-exec-am + +install-data-am: install-data-local +install-data: install-data-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am +install: install-am +uninstall-am: +uninstall: uninstall-am +all-am: Makefile all-local +all-redirect: all-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install +installdirs: + + +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -rm -f Makefile $(CONFIG_CLEAN_FILES) + -rm -f config.cache config.log stamp-h stamp-h[0-9]* + +maintainer-clean-generic: +mostlyclean-am: mostlyclean-generic + +mostlyclean: mostlyclean-am + +clean-am: clean-generic mostlyclean-am clean-local + +clean: clean-am + +distclean-am: distclean-generic clean-am + -rm -f libtool + +distclean: distclean-am + +maintainer-clean-am: maintainer-clean-generic distclean-am \ + maintainer-clean-local + @echo "This command is intended for maintainers to use;" + @echo "it deletes files that may require special tools to rebuild." + +maintainer-clean: maintainer-clean-am + +.PHONY: tags distdir info-am info dvi-am dvi check check-am \ +installcheck-am installcheck install-exec-am install-exec \ +install-data-local install-data-am install-data install-am install \ +uninstall-am uninstall all-local all-redirect all-am all installdirs \ +mostlyclean-generic distclean-generic clean-generic \ +maintainer-clean-generic clean mostlyclean distclean maintainer-clean + + +#all-local: html-build.stamp + +#### scan #### + +#scan-build.stamp: $(HFILE_GLOB) +# @echo '*** Scanning header files ***' +# if grep -l '^..*$$' $(srcdir)/$(DOC_MODULE).types > /dev/null ; then \ +# CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" CFLAGS="$(GTKDOC_CFLAGS) -I../../src -I../../src/gui" LDFLAGS="$(GTKDOC_LIBS) ../../src/libkipina.a ../../src/gui/libgui.a " gtkdoc-scangobj $(SCANOBJ_OPTIONS) --module=$(DOC_MODULE) --output-dir=$(srcdir) ; \ +# else \ +# cd $(srcdir) ; \ +# for i in $(SCANOBJ_FILES) ; do \ +# test -f $$i || touch $$i ; \ +# done \ +# fi +# cd $(srcdir) && \ +# gtkdoc-scan --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) --ignore-headers="$(IGNORE_HFILES)" $(SCAN_OPTIONS) $(EXTRA_HFILES) +# touch scan-build.stamp + +#$(DOC_MODULE)-decl.txt $(SCANOBJ_FILES): scan-build.stamp +# @true + +#### templates #### + +#tmpl-build.stamp: $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_OVERRIDES) +# @echo '*** Rebuilding template files ***' +# cd $(srcdir) && gtkdoc-mktmpl --module=$(DOC_MODULE) +# touch tmpl-build.stamp + +#tmpl.stamp: tmpl-build.stamp +# @true + +#### sgml #### + +#sgml-build.stamp: tmpl.stamp $(CFILE_GLOB) $(srcdir)/tmpl/*.sgml +# @echo '*** Building SGML ***' +# cd $(srcdir) && \ +# gtkdoc-mkdb --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) --main-sgml-file=$(DOC_MAIN_SGML_FILE) $(MKDB_OPTIONS) +# touch sgml-build.stamp + +#sgml.stamp: sgml-build.stamp +# @true + +#### html #### + +#html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files) +# @echo '*** Building HTML ***' +# test -d $(srcdir)/html || mkdir $(srcdir)/html +# cd $(srcdir)/html && gtkdoc-mkhtml $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE) +# test "x$(HTML_IMAGES)" = "x" || ( cd $(srcdir) && cp $(HTML_IMAGES) html ) +# @echo '-- Fixing Crossreferences' +# cd $(srcdir) && gtkdoc-fixxref --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS) +# touch html-build.stamp + +############## + +clean-local: + rm -f *~ *.bak $(SCANOBJ_FILES) *-unused.txt $(DOC_STAMPS) + +maintainer-clean-local: clean + cd $(srcdir) && rm -rf sgml html $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt + +install-data-local: + $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR) + (installfiles=`echo $(srcdir)/html/*.html`; \ + if test "$$installfiles" = '$(srcdir)/html/*.html'; \ + then echo '-- Nothing to install' ; \ + else \ + for i in $$installfiles; do \ + echo '-- Installing '$$i ; \ + $(INSTALL_DATA) $$i $(DESTDIR)$(TARGET_DIR); \ + done; \ + echo '-- Installing $(srcdir)/html/index.sgml' ; \ + $(INSTALL_DATA) $(srcdir)/html/index.sgml $(DESTDIR)$(TARGET_DIR); \ + fi) + +# +# Require gtk-doc when making dist +# +#dist-check-gtkdoc: +dist-check-gtkdoc: + @echo "*** gtk-doc must be installed and enabled in order to make dist" + @false + +dist-hook: dist-check-gtkdoc dist-hook-local + mkdir $(distdir)/tmpl + mkdir $(distdir)/sgml + mkdir $(distdir)/html + -cp $(srcdir)/tmpl/*.sgml $(distdir)/tmpl + -cp $(srcdir)/sgml/*.sgml $(distdir)/sgml + -cp $(srcdir)/html/index.sgml $(distdir)/html + -cp $(srcdir)/html/*.html $(srcdir)/html/*.css $(distdir)/html + + images=$(HTML_IMAGES) ; \ + for i in $$images ; do \ + cp $(srcdir)/$$i $(distdir)/html ; \ + done + +.PHONY : dist-hook-local + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: --- kipina-0.1.1.orig/doc/reference/sgml/kphrmreader.sgml +++ kipina-0.1.1/doc/reference/sgml/kphrmreader.sgml @@ -15,7 +15,6 @@ -enum KPHrmReaderModel; enum KPHrmExercise; @@ -39,27 +38,16 @@ Details -<anchor id="KPHrmReaderModel">enum KPHrmReaderModel -KPHrmReaderModeltypedef enum { - KP_HRM_READER_MODEL_S410 = 0, - KP_HRM_READER_MODEL_S510, - KP_HRM_READER_MODEL_LAST -} KPHrmReaderModel; - - - - - <anchor id="KPHrmExercise">enum KPHrmExercise KPHrmExercisetypedef enum { - KP_HRM_EXE_NONE, - KP_HRM_EXE_BASIC_USE, - KP_HRM_EXE_SET_1, - KP_HRM_EXE_SET_2, - KP_HRM_EXE_SET_3, - KP_HRM_EXE_SET_4, - KP_HRM_EXE_SET_5, - KP_HRM_EXE_SET_NOT_SUPPORTED, + HRM_EXE_NONE, + HRM_EXE_BASIC_USE, + HRM_EXE_SET_1, + HRM_EXE_SET_2, + HRM_EXE_SET_3, + HRM_EXE_SET_4, + HRM_EXE_SET_5, + HRM_EXE_SET_NOT_SUPPORTED, } KPHrmExercise; --- kipina-0.1.1.orig/doc/reference/sgml/hrmdata.sgml +++ kipina-0.1.1/doc/reference/sgml/hrmdata.sgml @@ -39,14 +39,14 @@ <anchor id="KPHrmExercise">enum KPHrmExercise KPHrmExercisetypedef enum { - KP_HRM_EXE_NONE, - KP_HRM_EXE_BASIC_USE, - KP_HRM_EXE_SET_1, - KP_HRM_EXE_SET_2, - KP_HRM_EXE_SET_3, - KP_HRM_EXE_SET_4, - KP_HRM_EXE_SET_5, - KP_HRM_EXE_SET_NOT_SUPPORTED, + HRM_EXE_NONE, + HRM_EXE_BASIC_USE, + HRM_EXE_SET_1, + HRM_EXE_SET_2, + HRM_EXE_SET_3, + HRM_EXE_SET_4, + HRM_EXE_SET_5, + HRM_EXE_SET_NOT_SUPPORTED, } KPHrmExercise; --- kipina-0.1.1.orig/doc/reference/sgml/kipina-doc.bottom +++ kipina-0.1.1/doc/reference/sgml/kipina-doc.bottom @@ -0,0 +1,29 @@ + &kipina-kpcalendartime; + &kipina-kptraininglog; + &kipina-kpcalendarentry; + &kipina-kpcomment; + &kipina-kpworkout; + &kipina-kpplugin; + &kipina-kpcalendarview; + &KPChart; + &kipina-kppreferencesdialog; + &kipina-kpview; + &kipina-kptreeview; + &kipina-kpnewworkoutdialog; + &kipina-kpmainwindow; + &kipina-kpnewcommentdialog; + &kipina-kplogstore; + &kipina-kpnewsplitworkoutdialog; + &kipina-kpcalendarentryinfodialog; + &kipina-kpstatsview; + &kipina-kpviewmodel; + &kipina-kptransferdialog; + &kipina-kphrmreader; + &kipina-kparray2d; + &kipina-kipina-i18n; + &kipina-kpsettings; + &kipina-kputil; + &kipina-kpmarshalers; + &kipina-kpguiutils; + &kipina-s410; + &kipina-hrmdata; --- kipina-0.1.1.orig/doc/reference/sgml/kipina-doc.top +++ kipina-0.1.1/doc/reference/sgml/kipina-doc.top @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + --- kipina-0.1.1.orig/doc/reference/tmpl/kphrmreader.sgml +++ kipina-0.1.1/doc/reference/tmpl/kphrmreader.sgml @@ -14,26 +14,17 @@ - - - - - -@KP_HRM_READER_MODEL_S410: -@KP_HRM_READER_MODEL_S510: -@KP_HRM_READER_MODEL_LAST: - -@KP_HRM_EXE_NONE: -@KP_HRM_EXE_BASIC_USE: -@KP_HRM_EXE_SET_1: -@KP_HRM_EXE_SET_2: -@KP_HRM_EXE_SET_3: -@KP_HRM_EXE_SET_4: -@KP_HRM_EXE_SET_5: -@KP_HRM_EXE_SET_NOT_SUPPORTED: +@HRM_EXE_NONE: +@HRM_EXE_BASIC_USE: +@HRM_EXE_SET_1: +@HRM_EXE_SET_2: +@HRM_EXE_SET_3: +@HRM_EXE_SET_4: +@HRM_EXE_SET_5: +@HRM_EXE_SET_NOT_SUPPORTED: --- kipina-0.1.1.orig/doc/reference/tmpl/kipina-unused.sgml +++ kipina-0.1.1/doc/reference/tmpl/kipina-unused.sgml @@ -109,6 +109,15 @@ @klass: + + + + + +@KP_HRM_READER_MODEL_S410: +@KP_HRM_READER_MODEL_S510: +@KP_HRM_READER_MODEL_LAST: + --- kipina-0.1.1.orig/doc/reference/tmpl/hrmdata.sgml +++ kipina-0.1.1/doc/reference/tmpl/hrmdata.sgml @@ -19,12 +19,12 @@ -@KP_HRM_EXE_NONE: -@KP_HRM_EXE_BASIC_USE: -@KP_HRM_EXE_SET_1: -@KP_HRM_EXE_SET_2: -@KP_HRM_EXE_SET_3: -@KP_HRM_EXE_SET_4: -@KP_HRM_EXE_SET_5: -@KP_HRM_EXE_SET_NOT_SUPPORTED: +@HRM_EXE_NONE: +@HRM_EXE_BASIC_USE: +@HRM_EXE_SET_1: +@HRM_EXE_SET_2: +@HRM_EXE_SET_3: +@HRM_EXE_SET_4: +@HRM_EXE_SET_5: +@HRM_EXE_SET_NOT_SUPPORTED: --- kipina-0.1.1.orig/doc/reference/kipina.interfaces +++ kipina-0.1.1/doc/reference/kipina.interfaces @@ -0,0 +1,19 @@ +GtkWidget AtkImplementorIface +GtkContainer AtkImplementorIface +GtkBin AtkImplementorIface +GtkWindow AtkImplementorIface +KPMainWindow AtkImplementorIface +GtkDialog AtkImplementorIface +KPNewWorkoutDialog AtkImplementorIface +KPNewSplitWorkoutDialog AtkImplementorIface +KPNewCommentDialog AtkImplementorIface +KPCalendarEntryInfoDialog AtkImplementorIface +GtkTreeView AtkImplementorIface +KPTreeView AtkImplementorIface +GtkBox AtkImplementorIface +GtkVBox AtkImplementorIface +KPStatsView AtkImplementorIface KPViewModel +KPCalendarView AtkImplementorIface KPViewModel +KPChart AtkImplementorIface KPViewModel +GtkTreeViewColumn GtkCellLayout +KPLogStore GtkTreeModel --- kipina-0.1.1.orig/doc/reference/kipina-decl.txt +++ kipina-0.1.1/doc/reference/kipina-decl.txt @@ -0,0 +1,2077 @@ + +kp_array_2d_alloc +void ** +guint rows, guint cols, guint size + + +kp_array_2d_alloc_init0 +void ** +guint rows, guint cols, guint size + + +kp_array_2d_free +void +void **arr, guint rows, guint cols + + +g_cclosure_user_marshal_VOID__UINT_UINT_UINT_STRING +void +GClosure *closure,GValue *return_value,guint n_param_values,const GValue *param_values,gpointer invocation_hint,gpointer marshal_data + + +g_cclosure_user_marshal_NONE__UINT_UINT_UINT_STRING +#define g_cclosure_user_marshal_NONE__UINT_UINT_UINT_STRING g_cclosure_user_marshal_VOID__UINT_UINT_UINT_STRING + + +g_cclosure_user_marshal_VOID__BOOLEAN_STRING +void +GClosure *closure,GValue *return_value,guint n_param_values,const GValue *param_values,gpointer invocation_hint,gpointer marshal_data + + +g_cclosure_user_marshal_NONE__BOOLEAN_STRING +#define g_cclosure_user_marshal_NONE__BOOLEAN_STRING g_cclosure_user_marshal_VOID__BOOLEAN_STRING + + +KP_TYPE_PLUGIN +#define KP_TYPE_PLUGIN (kp_plugin_get_type()) + + +KP_PLUGIN +#define KP_PLUGIN(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), KP_TYPE_PLUGIN, KPPlugin)) + + +KP_PLUGIN_CLASS +#define KP_PLUGIN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), KP_TYPE_PLUGIN, KPPluginClass)) + + +KP_IS_PLUGIN +#define KP_IS_PLUGIN(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), KP_TYPE_PLUGIN)) + + +KP_IS_PLUGIN_CLASS +#define KP_IS_PLUGIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), KP_TYPE_PLUGIN)) + + +KP_PLUGIN_GET_CLASS +#define KP_PLUGIN_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), KP_TYPE_PLUGIN, KPPluginClass)) + + +kp_plugin_get_type +GType +void + + +kp_plugin_new +KPPlugin * +const gchar *file + + +kp_plugin_load +gboolean +KPPlugin *plugin + + +kp_plugin_load_by_name +gboolean +const gchar *name + + +kp_plugin_unload +void +KPPlugin *plugin + + +kp_plugin_unload_by_name +void +const gchar *name + + +kp_plugin_scan +void +const gchar *dir + + +kp_plugin_get_plugins +GList * +void + + +kp_plugin_get_plugins_loaded +GList * +void + + +kp_plugin_load_plugins +void +void + + +kp_plugin_register +gboolean +KPPlugin *plugin + + +KP_PLUGIN_INIT +#define KP_PLUGIN_INIT(name, initfunc, info) \ + G_MODULE_EXPORT gboolean kp_plugin_init(KPPlugin *plugin) { \ + plugin->info = &(info); \ + initfunc((plugin)); \ + return kp_plugin_register(plugin); \ + } + + +_ +#define _(String) gettext(String) + + +N_ +#define N_(String) gettext_noop(String) + + +N_ +#define N_(String) (String) + + +_ +#define _(String) (String) + + +N_ +#define N_(String) (String) + + +textdomain +#define textdomain(String) (String) + + +gettext +#define gettext(String) (String) + + +dgettext +#define dgettext(Domain,String) (String) + + +dcgettext +#define dcgettext(Domain,String,Type) (String) + + +bindtextdomain +#define bindtextdomain(Domain,Directory) (Domain) + + +bind_textdomain_codeset +#define bind_textdomain_codeset(Domain,Codeset) (Codeset) + + +kp_date_valid +gboolean +KPDate *date + + +kp_date_set_time +void +KPDate *date, GTime time_ + + +kp_date_new_dmy +KPDate * +guint d, guint m, guint y + + +kp_date_free +void +KPDate *date + + +kp_date_seconds_to_string +gchar * +gdouble sec + + +kp_date_mseconds_to_std_string +gchar * +guint32 msec + + +kp_duration_str_to_ms +gint32 +const gchar *time_str + + +kp_is_valid_date_str +gboolean +const gchar *date_str + + +kp_is_valid_time_str +gboolean +const gchar *time_str + + +kp_is_valid_number +gboolean +const gchar *possible_number + + +kp_number +gdouble +const gchar * + + +kp_is_valid_duration_entry_str +gdouble +const gchar *time_str + + +kp_g_value_from_string +GValue * +const gchar *string + + +kp_g_value_to_string +gchar * +const GValue *value + + +kp_get_month_len +guint +guint m,gboolean is_leap + + +kp_leap +gboolean +guint year + + +kp_week_of_year +gboolean +guint *week, guint *year,guint mm, guint dd + + +kp_calc_days +glong +guint year, guint mm,guint dd + + +kp_day_of_week +guint +guint year,guint mm,guint dd + + +kp_dates_difference +glong +guint year1,guint mm1,guint dd1,guint year2,guint mm2,guint dd2 + + +kp_weeks_in_year +guint +guint year + + +kp_print_debug_string +void +const gchar *file,const gchar *function,guint line,const gchar *message,... + + +kp_get_month_num +gint +const gchar *m + + +kp_get_month_name +gchar * +guint m + + +kp_month_num_by_year_day_number +guint +guint day_num,gboolean is_leap + + +KP_TAG_MATCH +#define KP_TAG_MATCH(node,tagname) (xmlStrcasecmp(((xmlNodePtr)node)->name,tagname) == 0) + + +kp_debug +#define kp_debug(...) \ + (kp_print_debug_string (__FILE__, __PRETTY_FUNCTION__, __LINE__, __VA_ARGS__)) + + +kp_debug +#define kp_debug(message...) \ + (kp_print_debug_string (__FILE__, __PRETTY_FUNCTION__, __LINE__, message)) + + +kp_calendar_time_get_type +GType + + + +kp_calendar_time_new +KPCalendarTime * + + + +kp_calendar_time_new_dmyhms +KPCalendarTime * +guint d, guint m, guint y,gint h, gint min, gint s + + +kp_calendar_time_set_dmy +gboolean +KPCalendarTime *ct, guint d, guint m, guint y + + +kp_calendar_time_set_hmst +gboolean +KPCalendarTime *ct, guint h, guint m, guint s, guint t + + +kp_calendar_time_set_date +gboolean +KPCalendarTime *ct, GDate *date + + +kp_calendar_time_set_datetime +gboolean +KPCalendarTime *ct, const gchar *datetime + + +kp_calendar_time_set_hmst_str +gboolean +KPCalendarTime *ct, const gchar *time + + +kp_calendar_time_to_str_hmst +gchar * +KPCalendarTime *ct + + +kp_calendar_time_get_date +GDate * +KPCalendarTime *ct + + +KP_TYPE_CALENDAR_TIME +#define KP_TYPE_CALENDAR_TIME (kp_calendar_time_get_type()) + + +KP_CALENDAR_TIME +#define KP_CALENDAR_TIME(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), KP_TYPE_CALENDAR_TIME, KPCalendarTime)) + + +KP_CALENDAR_TIME_CLASS +#define KP_CALENDAR_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), KP_TYPE_CALENDAR_TIME, KPCalendarTimeClass)) + + +KP_IS_CALENDAR_TIME +#define KP_IS_CALENDAR_TIME(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), KP_TYPE_CALENDAR_TIME)) + + +KP_IS_CALENDAR_TIME_CLASS +#define KP_IS_CALENDAR_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), KP_TYPE_CALENDAR_TIME)) + + +KP_CALENDAR_TIME_GET_CLASS +#define KP_CALENDAR_TIME_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), KP_TYPE_CALENDAR_TIME, KPCalendarTimeClass)) + + +KP_TYPE_COMMENT +#define KP_TYPE_COMMENT (kp_comment_get_type()) + + +KP_COMMENT +#define KP_COMMENT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), KP_TYPE_COMMENT, KPComment)) + + +KP_COMMENT_CLASS +#define KP_COMMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), KP_TYPE_COMMENT, KPCommentClass)) + + +KP_IS_COMMENT +#define KP_IS_COMMENT(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), KP_TYPE_COMMENT)) + + +KP_IS_COMMENT_CLASS +#define KP_IS_COMMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), KP_TYPE_COMMENT)) + + +KP_COMMENT_GET_CLASS +#define KP_COMMENT_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), KP_TYPE_COMMENT, KPCommentClass)) + + +kp_comment_new +KPComment * +const gchar *title, const gchar *text + + +kp_comment_get_type +GType + + + +kp_comment_set_title +void +KPComment * comment, const gchar *title + + +kp_comment_set_text +void +KPComment * comment, const gchar *text + + +kp_comment_get_title +gchar * +KPComment * comment + + +kp_comment_get_text +gchar * +KPComment * comment + + +kp_comment_get_formatted_date +gchar * +KPComment * comment + + +KPTrainingLogError +typedef enum +{ + KP_TRAINING_LOG_SAVE_HTML_ERROR, + KP_TRAINING_LOG_SAVE_ERROR, + KP_TRAINING_LOG_OPEN_ERROR, + KP_TRAINING_LOG_INTERNAL_ERROR +} KPTrainingLogError; + + +KPTrainingLogDataMode +typedef enum { + KP_TRAINING_LOG_DATA_SUM, + KP_TRAINING_LOG_DATA_AVG, + KP_TRAINING_LOG_DATA_MIN, + KP_TRAINING_LOG_DATA_MAX +} KPTrainingLogDataMode; + + +KP_TYPE_TRAINING_LOG +#define KP_TYPE_TRAINING_LOG (kp_training_log_get_type()) + + +KP_TRAINING_LOG +#define KP_TRAINING_LOG(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), KP_TYPE_TRAINING_LOG, KPTrainingLog)) + + +KP_TRAINING_LOG_CLASS +#define KP_TRAINING_LOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), KP_TYPE_TRAINING_LOG, KPTrainingLogClass)) + + +KP_IS_TRAINING_LOG +#define KP_IS_TRAINING_LOG(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), KP_TYPE_TRAINING_LOG)) + + +KP_IS_TRAINING_LOG_CLASS +#define KP_IS_TRAINING_LOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), KP_TYPE_TRAINING_LOG)) + + +KP_TRAINING_LOG_GET_CLASS +#define KP_TRAINING_LOG_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), KP_TYPE_TRAINING_LOG, KPTrainingLogClass)) + + +kp_training_log_error_quark +GQuark +void + + +KP_TRAINING_LOG_ERROR +#define KP_TRAINING_LOG_ERROR kp_training_log_error_quark() + + +kp_training_log_get_type +GType +void + + +kp_training_log_new +KPTrainingLog * +void + + +kp_training_log_new_from_file +KPTrainingLog * +const gchar *file + + +kp_training_log_destroy +void +KPTrainingLog *log + + +kp_training_log_save +gboolean +KPTrainingLog *log,const gchar *file,GError **error + + +kp_training_log_create_html_stats +gboolean +KPTrainingLog *log,const gchar *output_dir,GError ** error + + +kp_training_log_add +gboolean +KPTrainingLog *log,KPCalendarEntry *entry + + +kp_training_log_add_from_file +gboolean +KPTrainingLog *log,const gchar *file,GError **error + + +kp_training_log_remove +gboolean +KPTrainingLog *log,KPCalendarEntry *entry + + +kp_training_log_remove_mark +void +KPTrainingLog *log,guint d, guint m,guint y,const gchar *mark + + +kp_training_log_remove_month +void +KPTrainingLog *log,guint y, guint m + + +kp_training_log_remove_day +void +KPTrainingLog *log,guint d, guint m,guint y + + +kp_training_log_remove_all +void +KPTrainingLog *log + + +kp_training_log_get_sports +GSList * +KPTrainingLog *log + + +kp_training_log_get_entry +KPCalendarEntry * +KPTrainingLog *log,guint d, guint m,guint y,const gchar *mark + + +kp_training_log_get_n_years +guint +KPTrainingLog *log + + +kp_training_log_get_year +TYear * +KPTrainingLog *log,guint year + + +kp_training_log_get_size +guint +KPTrainingLog *log + + +kp_training_log_get_all_entries +GList * +KPTrainingLog *log + + +kp_training_log_get_all_entries_between +GList * +KPTrainingLog *log,GDate *start,GDate *end,GList **sports + + +kp_training_log_get_workout_params_between +gdouble ** +KPTrainingLog *log,KPTrainingLogDataModemode,const gchar *sport,const gchar *param,GDate *start,GDate *end,guint *days_between + + +kp_training_log_get_workout_params_year +gdouble ** +KPTrainingLog *log,const gchar *param,guint year,guint *days_between + + +kp_training_log_get_earliest_date +KPDate * +KPTrainingLog *log + + +kp_training_log_get_latest_date +KPDate * +KPTrainingLog *log + + +kp_training_log_get_day +GList * +KPTrainingLog *log,guint d, guint m,guint y + + +kp_training_log_get_month +GList * +KPTrainingLog *log,gint year,gint month + + +kp_training_log_is_modified +gboolean +KPTrainingLog *log + + +kp_training_log_get_month_as_chart_data +gdouble ** +KPTrainingLog *log,guint year,guint month,guint month_len,const gchar *param + + +kp_training_log_get_week_total +gdouble +KPTrainingLog *log,GDate *date,const gchar *param + + +kp_training_log_get_param_day +gdouble +KPTrainingLog *log,GDate *date,const gchar *param + + +kp_training_log_foreach +void +KPTrainingLog *log,GFunc func,gpointer data + + +kp_training_log_get_data_as_tree_store +GtkTreeStore * +KPTrainingLog *log + + +kp_training_log_dump +void +KPTrainingLog *log + + +KP_TYPE_WORKOUT +#define KP_TYPE_WORKOUT (kp_workout_get_type()) + + +KP_WORKOUT +#define KP_WORKOUT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), KP_TYPE_WORKOUT, KPWorkout)) + + +KP_WORKOUT_CLASS +#define KP_WORKOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), KP_TYPE_WORKOUT, KPWorkoutClass)) + + +KP_IS_WORKOUT +#define KP_IS_WORKOUT(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), KP_TYPE_WORKOUT)) + + +KP_IS_WORKOUT_CLASS +#define KP_IS_WORKOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), KP_TYPE_WORKOUT)) + + +KP_WORKOUT_GET_CLASS +#define KP_WORKOUT_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), KP_TYPE_WORKOUT, KPWorkoutClass)) + + +KPWorkoutSplitType +typedef enum { + KP_WORKOUT_SPLIT_TYPE_NORMAL, + KP_WORKOUT_SPLIT_TYPE_WARM_UP, + KP_WORKOUT_SPLIT_TYPE_COOL_DOWN, + KP_WORKOUT_SPLIT_TYPE_RECOVERY, + KP_WORKOUT_SPLIT_TYPE_N +} KPWorkoutSplitType; + + +kp_workout_get_type +GType +void + + +kp_workout_new +KPWorkout * +void + + +kp_workout_destroy +void +KPWorkout *wo + + +kp_workout_cmp +gint +gconstpointer a,gconstpointer b + + +kp_workout_is_valid +gboolean +KPWorkout *wo + + +kp_workout_add_split +void +KPWorkout *wo,KPWorkoutSplitType,guint n,gfloat distance,KPCalendarTime *ct,const gchar *comment + + +kp_workout_set_sport +void +KPWorkout *wo,const gchar *sport + + +kp_workout_get_sport +gchar * +KPWorkout *wo + + +kp_workout_get_pace +guint +KPWorkout *wo + + +kp_workout_get_n_splits +guint +KPWorkout *wo + + +kp_workout_get_splits +GSList * +KPWorkout *wo + + +kp_workout_get_distance +gdouble +KPWorkout *wo + + +kp_workout_get_duration_in_seconds +gdouble +KPWorkout *wo + + +kp_workout_set_duration_in_seconds +void +KPWorkout *wo,gdouble seconds + + +kp_workout_get_duration_in_milliseconds +guint +KPWorkout *wo + + +kp_workout_set_duration_in_milliseconds +void +KPWorkout *wo,guint32 msecs + + +kp_workout_get_duration_str +gchar * +KPWorkout *wo + + +kp_workout_get_params_string +gchar * +KPWorkout *wo + + +kp_workout_get_param_int +gint +KPWorkout *wo,const gchar *param + + +kp_workout_get_param_double +gdouble +KPWorkout *wo,const gchar *param + + +kp_workout_get_param +gchar * +KPWorkout *wo,const gchar *param + + +kp_workout_get_formatted_date +gchar * +KPWorkout *wo + + +kp_workout_set_param +gboolean +KPWorkout *wo,gboolean replace,const gchar *param,const GValue *value + + +kp_workout_print +void +KPWorkout *wo + + +KP_TYPE_CALENDAR_ENTRY +#define KP_TYPE_CALENDAR_ENTRY (kp_calendar_entry_get_type()) + + +KP_CALENDAR_ENTRY +#define KP_CALENDAR_ENTRY(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), KP_TYPE_CALENDAR_ENTRY, KPCalendarEntry)) + + +KP_CALENDAR_ENTRY_CLASS +#define KP_CALENDAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), KP_TYPE_CALENDAR_ENTRY, KPCalendarEntryClass)) + + +KP_IS_CALENDAR_ENTRY +#define KP_IS_CALENDAR_ENTRY(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), KP_TYPE_CALENDAR_ENTRY)) + + +KP_IS_CALENDAR_ENTRY_CLASS +#define KP_IS_CALENDAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), KP_TYPE_CALENDAR_ENTRY)) + + +KP_CALENDAR_ENTRY_GET_CLASS +#define KP_CALENDAR_ENTRY_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), KP_TYPE_CALENDAR_ENTRY, KPCalendarEntryClass)) + + +kp_calendar_entry_get_type +GType +void + + +kp_calendar_entry_new +KPCalendarEntry * +void + + +kp_calendar_entry_to_string +gchar * +KPCalendarEntry *entry + + +kp_calendar_entry_to_xml +xmlNodePtr +KPCalendarEntry *entry + + +kp_calendar_entry_get_date +KPCalendarTime * +KPCalendarEntry *entry + + +kp_calendar_entry_parse +gboolean +KPCalendarEntry *entry,xmlNodePtr node + + +kp_calendar_entry_cmp +gint +const KPCalendarEntry *entry,const KPCalendarEntry *entry2 + + +kp_calendar_entry_get_human_name +gchar * +KPCalendarEntry *entry + + +kp_settings_init +gboolean +const gchar *filename + + +kp_settings_deinit +void +void + + +kp_settings_save +void +void + + +kp_settings_remove_setting +void +const gchar *setting + + +kp_settings_get_int +gint +const gchar *setting + + +kp_settings_get_str +gchar * +const gchar *setting + + +kp_settings_get_bool +gboolean +const gchar *setting + + +kp_settings_get_list +GSList * +const gchar *setting + + +kp_settings_set_str +void +const gchar *setting,const gchar *val,gboolean replace + + +kp_settings_set_int +void +const gchar *setting,gint value + + +kp_settings_set_bool +void +const gchar *setting,gboolean value + + +kp_settings_add_to_list +void +const gchar *setting,const gchar *value + + +kp_settings_remove_from_list +void +const gchar *setting,const gchar *value + + +kp_settings_list_free +void +GSList *list + + +KP_TYPE_NEW_COMMENT_DIALOG +#define KP_TYPE_NEW_COMMENT_DIALOG (kp_new_comment_dialog_get_type ()) + + +KP_NEW_COMMENT_DIALOG +#define KP_NEW_COMMENT_DIALOG(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), KP_TYPE_NEW_COMMENT_DIALOG, KPNewCommentDialog)) + + +KP_NEW_COMMENT_DIALOG_CLASS +#define KP_NEW_COMMENT_DIALOG_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), KP_TYPE_NEW_COMMENT_DIALOG, KPNewCommentDialogClass)) + + +KP_IS_NEW_COMMENT_DIALOG +#define KP_IS_NEW_COMMENT_DIALOG(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), KP_TYPE_NEW_COMMENT_DIALOG)) + + +KP_IS_NEW_COMMENT_DIALOG_CLASS +#define KP_IS_NEW_COMMENT_DIALOG_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), KP_TYPE_NEW_COMMENT_DIALOG)) + + +KP_NEW_COMMENT_DIALOG_GET_CLASS +#define KP_NEW_COMMENT_DIALOG_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), KP_TYPE_NEW_COMMENT_DIALOG, KPNewCommentDialogClass)) + + +kp_new_comment_dialog_get_type +GType +void + + +kp_new_comment_dialog_new +GtkWidget * +GDate *date, KPComment *comment + + +KP_TYPE_NEW_SPLIT_WORKOUT_DIALOG +#define KP_TYPE_NEW_SPLIT_WORKOUT_DIALOG (kp_new_split_workout_dialog_get_type ()) + + +KP_NEW_SPLIT_WORKOUT_DIALOG +#define KP_NEW_SPLIT_WORKOUT_DIALOG(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), KP_TYPE_NEW_SPLIT_WORKOUT_DIALOG, KPNewSplitWorkoutDialog)) + + +KP_NEW_SPLIT_WORKOUT_DIALOG_CLASS +#define KP_NEW_SPLIT_WORKOUT_DIALOG_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), KP_TYPE_NEW_SPLIT_WORKOUT_DIALOG, KPNewSplitWorkoutDialogClass)) + + +KP_IS_NEW_SPLIT_WORKOUT_DIALOG +#define KP_IS_NEW_SPLIT_WORKOUT_DIALOG(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), KP_TYPE_NEW_SPLIT_WORKOUT_DIALOG)) + + +KP_IS_NEW_SPLIT_WORKOUT_DIALOG_CLASS +#define KP_IS_NEW_SPLIT_WORKOUT_DIALOG_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), KP_TYPE_NEW_SPLIT_WORKOUT_DIALOG)) + + +KP_NEW_SPLIT_WORKOUT_DIALOG_GET_CLASS +#define KP_NEW_SPLIT_WORKOUT_DIALOG_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), KP_TYPE_NEW_SPLIT_WORKOUT_DIALOG, KPNewSplitWorkoutDialogClass)) + + +kp_new_split_workout_dialog_get_type +GType +void + + +kp_new_split_workout_dialog_new +GtkWidget * +KPDate *date,KPTrainingLog *log + + +KP_TYPE_NEW_WORKOUT_DIALOG +#define KP_TYPE_NEW_WORKOUT_DIALOG (kp_new_workout_dialog_get_type ()) + + +KP_NEW_WORKOUT_DIALOG +#define KP_NEW_WORKOUT_DIALOG(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), KP_TYPE_NEW_WORKOUT_DIALOG, KPNewWorkoutDialog)) + + +KP_NEW_WORKOUT_DIALOG_CLASS +#define KP_NEW_WORKOUT_DIALOG_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), KP_TYPE_NEW_WORKOUT_DIALOG, KPNewWorkoutDialogClass)) + + +KP_IS_NEW_WORKOUT_DIALOG +#define KP_IS_NEW_WORKOUT_DIALOG(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), KP_TYPE_NEW_WORKOUT_DIALOG)) + + +KP_IS_NEW_WORKOUT_DIALOG_CLASS +#define KP_IS_NEW_WORKOUT_DIALOG_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), KP_TYPE_NEW_WORKOUT_DIALOG)) + + +KP_NEW_WORKOUT_DIALOG_GET_CLASS +#define KP_NEW_WORKOUT_DIALOG_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), KP_TYPE_NEW_WORKOUT_DIALOG, KPNewWorkoutDialogClass)) + + +kp_new_workout_dialog_get_type +GType +void + + +kp_new_workout_dialog_new +GtkWidget * +KPDate *date,KPTrainingLog *log + + +KP_TYPE_STATS_VIEW +#define KP_TYPE_STATS_VIEW (kp_stats_view_get_type()) + + +KP_STATS_VIEW +#define KP_STATS_VIEW(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), KP_TYPE_STATS_VIEW, KPStatsView)) + + +KP_STATS_VIEW_CLASS +#define KP_STATS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), KP_TYPE_STATS_VIEW, KPStatsViewClass)) + + +KP_IS_STATS_VIEW +#define KP_IS_STATS_VIEW(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), KP_TYPE_STATS_VIEW)) + + +KP_IS_STATS_VIEW_CLASS +#define KP_IS_STATS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), KP_TYPE_STATS_VIEW)) + + +KP_STATS_VIEW_GET_CLASS +#define KP_STATS_VIEW_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), KP_TYPE_STATS_VIEW, KPStatsViewClass)) + + +kp_stats_view_get_type +GType +void + + +kp_stats_view_new +KPStatsView * +void + + +KP_TYPE_PREFERENCES_DIALOG +#define KP_TYPE_PREFERENCES_DIALOG (kp_preferences_dialog_get_type ()) + + +KP_PREFERENCES_DIALOG +#define KP_PREFERENCES_DIALOG(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), KP_TYPE_PREFERENCES_DIALOG, KPPreferencesDialog)) + + +KP_PREFERENCES_DIALOG_CLASS +#define KP_PREFERENCES_DIALOG_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), KP_TYPE_PREFERENCES_DIALOG, KPPreferencesDialogClass)) + + +KP_IS_PREFERENCES_DIALOG +#define KP_IS_PREFERENCES_DIALOG(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), KP_TYPE_PREFERENCES_DIALOG)) + + +KP_IS_PREFERENCES_DIALOG_CLASS +#define KP_IS_PREFERENCES_DIALOG_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), KP_TYPE_PREFERENCES_DIALOG)) + + +KP_PREFERENCES_DIALOG_GET_CLASS +#define KP_PREFERENCES_DIALOG_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), KP_TYPE_PREFERENCES_DIALOG, KPPreferencesDialogClass)) + + +kp_preferences_dialog_get_type +GType +void + + +kp_preferences_dialog_new +GtkWidget * +void + + +KP_TYPE_MAIN_WINDOW +#define KP_TYPE_MAIN_WINDOW (kp_main_window_get_type ()) + + +KP_MAIN_WINDOW +#define KP_MAIN_WINDOW(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), KP_TYPE_MAIN_WINDOW, KPMainWindow)) + + +KP_MAIN_WINDOW_CLASS +#define KP_MAIN_WINDOW_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), KP_TYPE_MAIN_WINDOW, KPMainWindowClass)) + + +KP_IS_MAIN_WINDOW +#define KP_IS_MAIN_WINDOW(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), KP_TYPE_MAIN_WINDOW)) + + +KP_IS_MAIN_WINDOW_CLASS +#define KP_IS_MAIN_WINDOW_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), KP_TYPE_MAIN_WINDOW)) + + +KP_MAIN_WINDOW_GET_CLASS +#define KP_MAIN_WINDOW_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), KP_TYPE_MAIN_WINDOW, KPMainWindowClass)) + + +kp_main_window_get_type +GType +void + + +kp_main_window_new +GtkWidget * +void + + +kp_main_window_set_log_file +void +KPMainWindow *window,const gchar *file + + +kp_main_window_get_log +KPTrainingLog * +void + + +kp_main_window_add_to_import_menu +GtkWidget * +GtkMenuItem *item + + +kp_main_window_add_to_export_menu +GtkWidget * +GtkMenuItem *item + + +kp_main_window_add_to_menubar +GtkWidget * +GtkMenu *menu + + +KP_TYPE_CHART_VIEW +#define KP_TYPE_CHART_VIEW (kp_chart_view_get_type()) + + +KP_CHART_VIEW +#define KP_CHART_VIEW(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), KP_TYPE_CHART_VIEW, KPChartView)) + + +KP_CHART_VIEW_CLASS +#define KP_CHART_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), KP_TYPE_CHART_VIEW, KPChartViewClass)) + + +KP_IS_CHART_VIEW +#define KP_IS_CHART_VIEW(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), KP_TYPE_CHART_VIEW)) + + +KP_IS_CHART_VIEW_CLASS +#define KP_IS_CHART_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), KP_TYPE_CHART_VIEW)) + + +KP_CHART_VIEW_GET_CLASS +#define KP_CHART_VIEW_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), KP_TYPE_CHART_VIEW, KPChartViewClass)) + + +kp_chart_view_get_type +GType +void + + +kp_chart_view_new +GtkWidget * +void + + +KP_TYPE_STATUSBAR +#define KP_TYPE_STATUSBAR (kp_statusbar_get_type()) + + +KP_STATUSBAR +#define KP_STATUSBAR(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), KP_TYPE_STATUSBAR, KPStatusbar)) + + +KP_STATUSBAR_CLASS +#define KP_STATUSBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), KP_TYPE_STATUSBAR, KPStatusbarClass)) + + +KP_IS_STATUSBAR +#define KP_IS_STATUSBAR(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), KP_TYPE_STATUSBAR)) + + +KP_IS_STATUSBAR_CLASS +#define KP_IS_STATUSBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), KP_TYPE_STATUSBAR)) + + +KP_STATUSBAR_GET_CLASS +#define KP_STATUSBAR_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), KP_TYPE_STATUSBAR, KPStatusbarClass)) + + +KPStatusbarFieldType +typedef enum { + KP_STATUSBAR_F_N_ENTRIES, + KP_STATUSBAR_F_N_COMMENTS, + KP_STATUSBAR_F_N_WORKOUTS, + KP_STATUSBAR_F_T_DISTANCE, + KP_STATUSBAR_F_T_DURATION, + KP_STATUSBAR_F_VIEW_TYPE, + KP_STATUSBAR_F_VIEW, + KP_STATUSBAR_F_N, +} KPStatusbarFieldType; + + +kp_statusbar_get_type +GType +void + + +kp_statusbar_new +GtkWidget * +KPTrainingLog *log + + +kp_statusbar_set_log +void +KPStatusbar *bar,KPTrainingLog *log + + +kp_statusbar_unset_log +void +KPStatusbar *bar + + +kp_statusbar_set_message +void +KPStatusbar *bar,const gchar *message + + +kp_statusbar_set_view_type +void +KPStatusbar *bar,KPViewModelType type + + +kp_statusbar_set_viewer_name +void +KPStatusbar *bar,const gchar *name + + +kp_statusbar_set_format_message +void +KPStatusbar *bar,const gchar *format,... + + +kp_statusbar_update +void +KPStatusbar *bar + + +kp_statusbar_get_field +KPStatusbarFieldData * +guint field + + +KP_TYPE_VIEW +#define KP_TYPE_VIEW (kp_view_get_type()) + + +KP_VIEW +#define KP_VIEW(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), KP_TYPE_VIEW, KPView)) + + +KP_VIEW_CLASS +#define KP_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), KP_TYPE_VIEW, KPViewClass)) + + +KP_IS_VIEW +#define KP_IS_VIEW(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), KP_TYPE_VIEW)) + + +KP_IS_VIEW_CLASS +#define KP_IS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), KP_TYPE_VIEW)) + + +KP_VIEW_GET_CLASS +#define KP_VIEW_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), KP_TYPE_VIEW, KPViewClass)) + + +kp_view_get_type +GType +void + + +kp_view_new +KPView * +guint d, guint m, guint y + + +kp_view_add_viewer +void +KPView *view,KPViewModel *model + + +kp_view_set_viewer_next +void +KPView *view + + +kp_view_set_viewer_prev +void +KPView *view + + +kp_view_set_viewer_by_object_name +void +KPView *view,const gchar *name + + +kp_view_get_viewers +GList * +KPView *view + + +kp_view_get_current_viewer +KPViewModel * +KPView *view + + +KP_TYPE_CALENDAR_VIEW +#define KP_TYPE_CALENDAR_VIEW (kp_calendar_view_get_type()) + + +KP_CALENDAR_VIEW +#define KP_CALENDAR_VIEW(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), KP_TYPE_CALENDAR_VIEW, KPCalendarView)) + + +KP_CALENDAR_VIEW_CLASS +#define KP_CALENDAR_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), KP_TYPE_CALENDAR_VIEW, KPCalendarViewClass)) + + +KP_IS_CALENDAR_VIEW +#define KP_IS_CALENDAR_VIEW(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), KP_TYPE_CALENDAR_VIEW)) + + +KP_IS_CALENDAR_VIEW_CLASS +#define KP_IS_CALENDAR_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), KP_TYPE_CALENDAR_VIEW)) + + +KP_CALENDAR_VIEW_GET_CLASS +#define KP_CALENDAR_VIEW_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), KP_TYPE_CALENDAR_VIEW, KPCalendarViewClass)) + + +kp_calendar_view_new +GtkWidget * +KPViewModelType type,guint d, guint m, guint y + + +kp_calendar_view_get_type +GType +void + + +kp_calendar_view_set +void +KPCalendarView *cv,KPViewModelType type + + +kp_calendar_view_set_date +void +KPCalendarView *cv,guint d, guint m, guint y + + +kp_calendar_view_get_date +void +KPCalendarView *cv,guint *d, guint *m, guint *y + + +kp_calendar_view_get_start_date +GDate * +KPCalendarView *cv + + +kp_calendar_view_get_end_date +GDate * +KPCalendarView *cv + + +kp_calendar_view_attach_popup_menu +void +KPCalendarView *cv,GtkMenu *menu + + +kp_calendar_view_open_to_window +void +KPViewModelType type,guint d, guint m, guint y + + +kp_calendar_view_clear_marks +void +KPCalendarView *cv + + +kp_calendar_view_add_mark +void +KPCalendarView *cv,guint d, guint m, guint y,guint h, guint min,const gchar *str + + +kp_calendar_view_get_current_mark +gchar * +KPCalendarView *cv + + +kp_calendar_view_remove_current_mark +void +KPCalendarView *cv + + +kp_calendar_view_remove_mark +void +KPCalendarView *cv,guint d, guint m, guint y,const gchar *mark + + +kp_calendar_view_set_active +void +KPCalendarView *cv,gboolean activate + + +kp_calendar_view_get_active +gboolean +KPCalendarView *cv + + +KP_TYPE_TREE_VIEW +#define KP_TYPE_TREE_VIEW (kp_tree_view_get_type()) + + +KP_TREE_VIEW +#define KP_TREE_VIEW(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), KP_TYPE_TREE_VIEW, KPTreeView)) + + +KP_TREE_VIEW_CLASS +#define KP_TREE_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), KP_TYPE_TREE_VIEW, KPTreeViewClass)) + + +KP_IS_TREE_VIEW +#define KP_IS_TREE_VIEW(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), KP_TYPE_TREE_VIEW)) + + +KP_IS_TREE_VIEW_CLASS +#define KP_IS_TREE_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), KP_TYPE_TREE_VIEW)) + + +KP_TREE_VIEW_GET_CLASS +#define KP_TREE_VIEW_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), KP_TYPE_TREE_VIEW, KPTreeViewClass)) + + +kp_tree_view_new +GtkWidget * +KPTrainingLog *log + + +kp_tree_view_get_type +GType +void + + +kp_tree_view_remove_mark +void +KPTreeView *tv,guint d,guint m,guint y,const gchar *mark + + +kp_tree_view_add_mark +void +KPTreeView *tv,guint d,guint m,guint y,const gchar *mark + + +kp_tree_view_set_log +void +KPTreeView *tv, KPTrainingLog *log + + +kp_tree_view_unset_log +void +KPTreeView *tv + + +KP_TYPE_VIEW_MODEL +#define KP_TYPE_VIEW_MODEL (kp_view_model_get_type()) + + +KP_VIEW_MODEL +#define KP_VIEW_MODEL(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), KP_TYPE_VIEW_MODEL, KPViewModel)) + + +KP_VIEW_MODEL_CLASS +#define KP_VIEW_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), KP_TYPE_VIEW_MODEL, KPViewModelClass)) + + +KP_IS_VIEW_MODEL +#define KP_IS_VIEW_MODEL(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), KP_TYPE_VIEW_MODEL)) + + +KP_IS_VIEW_MODEL_CLASS +#define KP_IS_VIEW_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), KP_TYPE_VIEW_MODEL)) + + +KP_VIEW_MODEL_GET_CLASS +#define KP_VIEW_MODEL_GET_CLASS(object) (G_TYPE_INSTANCE_GET_INTERFACE ((object), KP_TYPE_VIEW_MODEL, KPViewModelIface)) + + +KPViewModelType +typedef enum { + KP_VIEW_MODEL_TYPE_DAY = 0, + KP_VIEW_MODEL_TYPE_WEEK = 1, + KP_VIEW_MODEL_TYPE_MONTH = 2, + KP_VIEW_MODEL_TYPE_YEAR = 3, + KP_VIEW_MODEL_TYPE_ALL_TIME = 4, + KP_VIEW_MODEL_TYPE_N = 5, +} KPViewModelType; + + +kp_view_model_get_type +GType +void + + +kp_view_model_get_year +GDateYear +KPViewModel *model + + +kp_view_model_get_month +GDateMonth +KPViewModel *model + + +kp_view_model_get_day +GDateDay +KPViewModel *model + + +kp_view_model_get_dmy +void +KPViewModel *model,guint *d,guint *m,guint *y + + +kp_view_model_set_dmy +void +KPViewModel *model,guint d,guint m,guint y + + +kp_view_model_set_log +void +KPViewModel *model,KPTrainingLog *log + + +kp_view_model_unset_log +void +KPViewModel *model + + +kp_view_model_get_view_type +KPViewModelType +KPViewModel *model + + +kp_view_model_set_view_type +void +KPViewModel *model,KPViewModelType type + + +kp_view_model_get_date_format +gchar * +KPViewModel *model + + +CB +#define CB(func) (G_CALLBACK (func)) + + +KP_W +#define KP_W(xml,widget) kp_gui_get_widget(xml,widget) + + +kp_gui_load +GladeXML * +const gchar *module,const gchar *root + + +kp_gui_module_signals_connect +void +GladeXML *xml,GuiModuleSignalsData *gmd + + +kp_gui_module_signals_connect_data +void +GladeXML *xml,GuiModuleSignalsData *gmd,gpointer data + + +kp_gui_get_yes_no_cancel +gint +GtkWindow *window,const gchar *message + + +kp_gui_get_file_from_user +gchar * +GFileTest valid_mask + + +kp_gui_get_file_to_open +gchar * +GtkWindow *parent + + +kp_gui_get_file_to_save +gchar * +GtkWindow *parent + + +kp_gui_get_dir +gchar * +GtkWindow *parent + + +kp_gui_get_filename_from_user +gchar * +void + + +kp_gui_get_dirname_from_user +gchar * +void + + +kp_gui_open_file_dialog +void +GCallback handler + + +kp_gui_get_widget +GtkWidget * +GladeXML *xml,const gchar *widget_name + + +kp_gui_get_option_menu_active +gchar * +GtkOptionMenu *menu + + +kp_gui_report_error +void +GtkWindow *window,KPStatusbar *bar,const gchar *msg + + +kp_gui_destroy_widget_passed +void +GtkWidget *widget,gpointer data + + +kp_gui_get_dates_for_view_type +void +GDate *date,KPViewModelType type,GDate **start,GDate **end,KPTrainingLog *log + + +kp_get_combo_box_first_entry +gchar * +GtkComboBox *box + + +KP_TYPE_CALENDAR_ENTRY_INFO_DIALOG +#define KP_TYPE_CALENDAR_ENTRY_INFO_DIALOG (kp_calendar_entry_info_dialog_get_type ()) + + +KP_CALENDAR_ENTRY_INFO_DIALOG +#define KP_CALENDAR_ENTRY_INFO_DIALOG(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), KP_TYPE_CALENDAR_ENTRY_INFO_DIALOG, KPCalendarEntryInfoDialog)) + + +KP_CALENDAR_ENTRY_INFO_DIALOG_CLASS +#define KP_CALENDAR_ENTRY_INFO_DIALOG_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), KP_TYPE_CALENDAR_ENTRY_INFO_DIALOG, KPCalendarEntryInfoDialogClass)) + + +KP_IS_CALENDAR_ENTRY_INFO_DIALOG +#define KP_IS_CALENDAR_ENTRY_INFO_DIALOG(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), KP_TYPE_CALENDAR_ENTRY_INFO_DIALOG)) + + +KP_IS_CALENDAR_ENTRY_INFO_DIALOG_CLASS +#define KP_IS_CALENDAR_ENTRY_INFO_DIALOG_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), KP_TYPE_CALENDAR_ENTRY_INFO_DIALOG)) + + +KP_CALENDAR_ENTRY_INFO_DIALOG_GET_CLASS +#define KP_CALENDAR_ENTRY_INFO_DIALOG_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), KP_TYPE_CALENDAR_ENTRY_INFO_DIALOG, KPCalendarEntryInfoDialogClass)) + + +kp_calendar_entry_info_dialog_get_type +GType +void + + +kp_calendar_entry_info_dialog_new +GtkWidget * +KPCalendarEntry *entry + + +KP_CHART_ITEMS_MAX +#define KP_CHART_ITEMS_MAX 64 + + +KP_CHART_GROUPS_MAX +#define KP_CHART_GROUPS_MAX 8 + + +KP_TYPE_CHART +#define KP_TYPE_CHART (kp_chart_get_type()) + + +KP_CHART +#define KP_CHART(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), KP_TYPE_CHART, KPChart)) + + +KP_CHART_CLASS +#define KP_CHART_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), KP_TYPE_CHART, KPChartClass)) + + +KP_IS_CHART +#define KP_IS_CHART(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), KP_TYPE_CHART)) + + +KP_IS_CHART_CLASS +#define KP_IS_CHART_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), KP_TYPE_CHART)) + + +KP_CHART_GET_CLASS +#define KP_CHART_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), KP_TYPE_CHART, KPChartClass)) + + +KPChart + + +KPChartClass + + +KPChart +struct KPChart +{ + GtkWidget parent; + gpointer private_data; +}; + + +KPChartClass +struct KPChartClass +{ + GtkWidgetClass parent_class; + + void (*kp_chart) (KPChart * kp_chart); +}; + + +KPChartStockTitle +typedef enum { + KP_CHART_TITLE_MONTH, + KP_CHART_TITLE_WEEKDAY +} KPChartStockTitle; + + +KPChartDataUnit +typedef enum { + KP_CHART_UNIT_RAW, + KP_CHART_UNIT_MS, +} KPChartDataUnit; + + +kp_chart_get_type +GType +void + + +kp_chart_new +GtkWidget * +void + + +kp_chart_set_size +void +KPChart *chart,gint groups,gint items + + +kp_chart_set +void +KPChart *chart,gdouble **data + + +kp_chart_set_type +void +KPChart *,gint + + +kp_chart_set_title +void +KPChart *chart,const gchar *title + + +kp_chart_set_group +void +KPChart *,gint,gdouble * + + +kp_chart_set_group_title +void +KPChart *chart,guint group,const gchar *title + + +kp_chart_set_group_titles +void +KPChart *chart,gint groups,gchar **titles + + +kp_chart_set_n_items +void +KPChart *chart, guint n + + +kp_chart_set_n_groups +void +KPChart *chart, guint n + + +kp_chart_get_n_items +guint +KPChart *chart + + +kp_chart_get_n_groups +guint +KPChart *chart + + +kp_chart_set_param_to_chart +void +KPChart *chart,const gchar *param + + +kp_chart_set_chart_mode +void +KPChart *chart,KPTrainingLogDataMode mode + + +kp_chart_set_item_title_max_len +void +KPChart *chart,guint len + + +kp_chart_set_item_title +void +KPChart *chart,guint item,const gchar *title + + +kp_chart_set_item_stock_title +gboolean +KPChart *chart,guint item,KPChartStockTitle title,guint value + + +kp_chart_set_item_title_int +gboolean +KPChart *chart,guint item,gint value + + +kp_chart_set_data_unit +void +KPChart *chart,KPChartDataUnit unit + + +kp_chart_update +void +KPChart *chart + + +KP_TYPE_LOG_STORE +#define KP_TYPE_LOG_STORE (kp_log_store_get_type ()) + + +KP_LOG_STORE +#define KP_LOG_STORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), KP_TYPE_LOG_STORE, KPLogStore)) + + +KP_LOG_STORE_CLASS +#define KP_LOG_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), KP_TYPE_LOG_STORE, KPLogStoreClass)) + + +KP_IS_LOG_STORE +#define KP_IS_LOG_STORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), KP_TYPE_LOG_STORE)) + + +KP_IS_LOG_STORE_CLASS +#define KP_IS_LOG_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), KP_TYPE_LOG_STORE)) + + +KP_LOG_STORE_GET_CLASS +#define KP_LOG_STORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), KP_TYPE_LOG_STORE, KPLogStoreClass)) + + +KPLogStoreRecordType +typedef enum +{ + KP_LOG_STORE_REC_ROOT, + KP_LOG_STORE_REC_YEAR, + KP_LOG_STORE_REC_MONTH, + KP_LOG_STORE_REC_DAY, + KP_LOG_STORE_REC_ENTRY, + KP_LOG_STORE_REC_INVALID +} KPLogStoreRecordType; + + +kp_log_store_get_type +GType +void + + +kp_log_store_new +KPLogStore * +void + + +kp_log_store_attach_log +void +KPLogStore *store,KPTrainingLog *log + + +kp_log_store_get_date +void +KPLogStore *store,GtkTreeIter *iter,guint *d,guint *m,guint *y + + +kp_log_store_remove +void +KPLogStore *store,GtkTreeIter *iter + + +kp_log_store_remove_mark +void +KPLogStore *store,guint d,guint m,guint y,const gchar *mark + + +kp_log_store_add_mark +void +KPLogStore *store,guint d,guint m,guint y,const gchar *mark + + +kp_log_store_get_iter_type +KPLogStoreRecordType +KPLogStore *store,GtkTreeIter *iter + + +KP_TYPE_LIST_VIEW +#define KP_TYPE_LIST_VIEW (kp_list_view_get_type()) + + +KP_LIST_VIEW +#define KP_LIST_VIEW(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), KP_TYPE_LIST_VIEW, KPListView)) + + +KP_LIST_VIEW_CLASS +#define KP_LIST_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), KP_TYPE_LIST_VIEW, KPListViewClass)) + + +KP_IS_LIST_VIEW +#define KP_IS_LIST_VIEW(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), KP_TYPE_LIST_VIEW)) + + +KP_IS_LIST_VIEW_CLASS +#define KP_IS_LIST_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), KP_TYPE_LIST_VIEW)) + + +KP_LIST_VIEW_GET_CLASS +#define KP_LIST_VIEW_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), KP_TYPE_LIST_VIEW, KPListViewClass)) + + +kp_list_view_get_type +GType +void + + +kp_list_view_new +GtkWidget * +void + + +s410_set_file +void +const char *file + + +s410_extract_bytes +int +HrmData *rdata, int *data, int max_size + + +s410_clean +void +void + + +KPHrmExercise +typedef enum { + HRM_EXE_NONE, + HRM_EXE_BASIC_USE, + HRM_EXE_SET_1, + HRM_EXE_SET_2, + HRM_EXE_SET_3, + HRM_EXE_SET_4, + HRM_EXE_SET_5, + HRM_EXE_SET_NOT_SUPPORTED, +} KPHrmExercise; + + +KP_TYPE_TRANSFER_DIALOG +#define KP_TYPE_TRANSFER_DIALOG (kp_transfer_dialog_get_type ()) + + +KP_TRANSFER_DIALOG +#define KP_TRANSFER_DIALOG(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), KP_TYPE_TRANSFER_DIALOG, KPTransferDialog)) + + +KP_TRANSFER_DIALOG_CLASS +#define KP_TRANSFER_DIALOG_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), KP_TYPE_TRANSFER_DIALOG, KPTransferDialogClass)) + + +KP_IS_TRANSFER_DIALOG +#define KP_IS_TRANSFER_DIALOG(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), KP_TYPE_TRANSFER_DIALOG)) + + +KP_IS_TRANSFER_DIALOG_CLASS +#define KP_IS_TRANSFER_DIALOG_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), KP_TYPE_TRANSFER_DIALOG)) + + +KP_TRANSFER_DIALOG_GET_CLASS +#define KP_TRANSFER_DIALOG_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), KP_TYPE_TRANSFER_DIALOG, KPTransferDialogClass)) + + +kp_transfer_dialog_get_type +GType +void + + +kp_transfer_dialog_new +GtkWidget * +KPWorkout **workout + --- kipina-0.1.1.orig/doc/reference/kipina-decl-list.txt +++ kipina-0.1.1/doc/reference/kipina-decl-list.txt @@ -0,0 +1,580 @@ +
+kpplugin +kp_plugin_new +kp_plugin_load +kp_plugin_load_by_name +kp_plugin_unload +kp_plugin_unload_by_name +kp_plugin_scan +kp_plugin_get_plugins +kp_plugin_get_plugins_loaded +kp_plugin_load_plugins +kp_plugin_register +KP_PLUGIN_INIT + +KP_PLUGIN +KP_IS_PLUGIN +KP_TYPE_PLUGIN +kp_plugin_get_type +KP_PLUGIN_CLASS +KP_IS_PLUGIN_CLASS +KP_PLUGIN_GET_CLASS +
+ +
+kpcalendartime +kp_calendar_time_new +kp_calendar_time_new_dmyhms +kp_calendar_time_set_dmy +kp_calendar_time_set_hmst +kp_calendar_time_set_date +kp_calendar_time_set_datetime +kp_calendar_time_set_hmst_str +kp_calendar_time_to_str_hmst +kp_calendar_time_get_date + +KP_CALENDAR_TIME +KP_IS_CALENDAR_TIME +KP_TYPE_CALENDAR_TIME +kp_calendar_time_get_type +KP_CALENDAR_TIME_CLASS +KP_IS_CALENDAR_TIME_CLASS +KP_CALENDAR_TIME_GET_CLASS +
+ +
+kpcomment +kp_comment_new +kp_comment_set_title +kp_comment_set_text +kp_comment_get_title +kp_comment_get_text +kp_comment_get_formatted_date + +KP_COMMENT +KP_IS_COMMENT +KP_TYPE_COMMENT +kp_comment_get_type +KP_COMMENT_CLASS +KP_IS_COMMENT_CLASS +KP_COMMENT_GET_CLASS +
+ +
+kptraininglog +KPTrainingLogError +KPTrainingLogDataMode +kp_training_log_error_quark +KP_TRAINING_LOG_ERROR +kp_training_log_new +kp_training_log_new_from_file +kp_training_log_destroy +kp_training_log_save +kp_training_log_create_html_stats +kp_training_log_add +kp_training_log_add_from_file +kp_training_log_remove +kp_training_log_remove_mark +kp_training_log_remove_month +kp_training_log_remove_day +kp_training_log_remove_all +kp_training_log_get_sports +kp_training_log_get_entry +kp_training_log_get_n_years +kp_training_log_get_year +kp_training_log_get_size +kp_training_log_get_all_entries +kp_training_log_get_all_entries_between +kp_training_log_get_workout_params_between +kp_training_log_get_workout_params_year +kp_training_log_get_earliest_date +kp_training_log_get_latest_date +kp_training_log_get_day +kp_training_log_get_month +kp_training_log_is_modified +kp_training_log_get_month_as_chart_data +kp_training_log_get_week_total +kp_training_log_get_param_day +kp_training_log_foreach +kp_training_log_get_data_as_tree_store +kp_training_log_dump + +KP_TRAINING_LOG +KP_IS_TRAINING_LOG +KP_TYPE_TRAINING_LOG +kp_training_log_get_type +KP_TRAINING_LOG_CLASS +KP_IS_TRAINING_LOG_CLASS +KP_TRAINING_LOG_GET_CLASS +
+ +
+kpworkout +KPWorkoutSplitType +kp_workout_new +kp_workout_destroy +kp_workout_cmp +kp_workout_is_valid +kp_workout_add_split +kp_workout_set_sport +kp_workout_get_sport +kp_workout_get_pace +kp_workout_get_n_splits +kp_workout_get_splits +kp_workout_get_distance +kp_workout_get_duration_in_seconds +kp_workout_set_duration_in_seconds +kp_workout_get_duration_in_milliseconds +kp_workout_set_duration_in_milliseconds +kp_workout_get_duration_str +kp_workout_get_params_string +kp_workout_get_param_int +kp_workout_get_param_double +kp_workout_get_param +kp_workout_get_formatted_date +kp_workout_set_param +kp_workout_print + +KP_WORKOUT +KP_IS_WORKOUT +KP_TYPE_WORKOUT +kp_workout_get_type +KP_WORKOUT_CLASS +KP_IS_WORKOUT_CLASS +KP_WORKOUT_GET_CLASS +
+ +
+kpcalendarentry +kp_calendar_entry_new +kp_calendar_entry_to_string +kp_calendar_entry_to_xml +kp_calendar_entry_get_date +kp_calendar_entry_parse +kp_calendar_entry_cmp +kp_calendar_entry_get_human_name + +KP_CALENDAR_ENTRY +KP_IS_CALENDAR_ENTRY +KP_TYPE_CALENDAR_ENTRY +kp_calendar_entry_get_type +KP_CALENDAR_ENTRY_CLASS +KP_IS_CALENDAR_ENTRY_CLASS +KP_CALENDAR_ENTRY_GET_CLASS +
+ +
+kpnewcommentdialog +kp_new_comment_dialog_new + +KP_NEW_COMMENT_DIALOG +KP_IS_NEW_COMMENT_DIALOG +KP_TYPE_NEW_COMMENT_DIALOG +kp_new_comment_dialog_get_type +KP_NEW_COMMENT_DIALOG_CLASS +KP_IS_NEW_COMMENT_DIALOG_CLASS +KP_NEW_COMMENT_DIALOG_GET_CLASS +
+ +
+kpnewsplitworkoutdialog +kp_new_split_workout_dialog_new + +KP_NEW_SPLIT_WORKOUT_DIALOG +KP_IS_NEW_SPLIT_WORKOUT_DIALOG +KP_TYPE_NEW_SPLIT_WORKOUT_DIALOG +kp_new_split_workout_dialog_get_type +KP_NEW_SPLIT_WORKOUT_DIALOG_CLASS +KP_IS_NEW_SPLIT_WORKOUT_DIALOG_CLASS +KP_NEW_SPLIT_WORKOUT_DIALOG_GET_CLASS +
+ +
+kpnewworkoutdialog +kp_new_workout_dialog_new + +KP_NEW_WORKOUT_DIALOG +KP_IS_NEW_WORKOUT_DIALOG +KP_TYPE_NEW_WORKOUT_DIALOG +kp_new_workout_dialog_get_type +KP_NEW_WORKOUT_DIALOG_CLASS +KP_IS_NEW_WORKOUT_DIALOG_CLASS +KP_NEW_WORKOUT_DIALOG_GET_CLASS +
+ +
+kpstatsview +kp_stats_view_new + +KP_STATS_VIEW +KP_IS_STATS_VIEW +KP_TYPE_STATS_VIEW +kp_stats_view_get_type +KP_STATS_VIEW_CLASS +KP_IS_STATS_VIEW_CLASS +KP_STATS_VIEW_GET_CLASS +
+ +
+kppreferencesdialog +kp_preferences_dialog_new + +KP_PREFERENCES_DIALOG +KP_IS_PREFERENCES_DIALOG +KP_TYPE_PREFERENCES_DIALOG +kp_preferences_dialog_get_type +KP_PREFERENCES_DIALOG_CLASS +KP_IS_PREFERENCES_DIALOG_CLASS +KP_PREFERENCES_DIALOG_GET_CLASS +
+ +
+kpmainwindow +kp_main_window_new +kp_main_window_set_log_file +kp_main_window_get_log +kp_main_window_add_to_import_menu +kp_main_window_add_to_export_menu +kp_main_window_add_to_menubar + +KP_MAIN_WINDOW +KP_IS_MAIN_WINDOW +KP_TYPE_MAIN_WINDOW +kp_main_window_get_type +KP_MAIN_WINDOW_CLASS +KP_IS_MAIN_WINDOW_CLASS +KP_MAIN_WINDOW_GET_CLASS +
+ +
+kpchartview +kp_chart_view_new + +KP_CHART_VIEW +KP_IS_CHART_VIEW +KP_TYPE_CHART_VIEW +kp_chart_view_get_type +KP_CHART_VIEW_CLASS +KP_IS_CHART_VIEW_CLASS +KP_CHART_VIEW_GET_CLASS +
+ +
+kpstatusbar +KPStatusbarFieldType +kp_statusbar_new +kp_statusbar_set_log +kp_statusbar_unset_log +kp_statusbar_set_message +kp_statusbar_set_view_type +kp_statusbar_set_viewer_name +kp_statusbar_set_format_message +kp_statusbar_update +kp_statusbar_get_field + +KP_STATUSBAR +KP_IS_STATUSBAR +KP_TYPE_STATUSBAR +kp_statusbar_get_type +KP_STATUSBAR_CLASS +KP_IS_STATUSBAR_CLASS +KP_STATUSBAR_GET_CLASS +
+ +
+kpview +kp_view_new +kp_view_add_viewer +kp_view_set_viewer_next +kp_view_set_viewer_prev +kp_view_set_viewer_by_object_name +kp_view_get_viewers +kp_view_get_current_viewer + +KP_VIEW +KP_IS_VIEW +KP_TYPE_VIEW +kp_view_get_type +KP_VIEW_CLASS +KP_IS_VIEW_CLASS +KP_VIEW_GET_CLASS +
+ +
+kpcalendarview +kp_calendar_view_new +kp_calendar_view_set +kp_calendar_view_set_date +kp_calendar_view_get_date +kp_calendar_view_get_start_date +kp_calendar_view_get_end_date +kp_calendar_view_attach_popup_menu +kp_calendar_view_open_to_window +kp_calendar_view_clear_marks +kp_calendar_view_add_mark +kp_calendar_view_get_current_mark +kp_calendar_view_remove_current_mark +kp_calendar_view_remove_mark +kp_calendar_view_set_active +kp_calendar_view_get_active + +KP_CALENDAR_VIEW +KP_IS_CALENDAR_VIEW +KP_TYPE_CALENDAR_VIEW +kp_calendar_view_get_type +KP_CALENDAR_VIEW_CLASS +KP_IS_CALENDAR_VIEW_CLASS +KP_CALENDAR_VIEW_GET_CLASS +
+ +
+kptreeview +kp_tree_view_new +kp_tree_view_remove_mark +kp_tree_view_add_mark +kp_tree_view_set_log +kp_tree_view_unset_log + +KP_TREE_VIEW +KP_IS_TREE_VIEW +KP_TYPE_TREE_VIEW +kp_tree_view_get_type +KP_TREE_VIEW_CLASS +KP_IS_TREE_VIEW_CLASS +KP_TREE_VIEW_GET_CLASS +
+ +
+kpviewmodel +KPViewModelType +kp_view_model_get_year +kp_view_model_get_month +kp_view_model_get_day +kp_view_model_get_dmy +kp_view_model_set_dmy +kp_view_model_set_log +kp_view_model_unset_log +kp_view_model_get_view_type +kp_view_model_set_view_type +kp_view_model_get_date_format + +KP_VIEW_MODEL +KP_IS_VIEW_MODEL +KP_TYPE_VIEW_MODEL +kp_view_model_get_type +KP_VIEW_MODEL_CLASS +KP_IS_VIEW_MODEL_CLASS +KP_VIEW_MODEL_GET_CLASS +
+ +
+kpcalendarentryinfodialog +kp_calendar_entry_info_dialog_new + +KP_CALENDAR_ENTRY_INFO_DIALOG +KP_IS_CALENDAR_ENTRY_INFO_DIALOG +KP_TYPE_CALENDAR_ENTRY_INFO_DIALOG +kp_calendar_entry_info_dialog_get_type +KP_CALENDAR_ENTRY_INFO_DIALOG_CLASS +KP_IS_CALENDAR_ENTRY_INFO_DIALOG_CLASS +KP_CALENDAR_ENTRY_INFO_DIALOG_GET_CLASS +
+ +
+kpchart +KP_CHART_ITEMS_MAX +KP_CHART_GROUPS_MAX +KPChart +KPChartStockTitle +KPChartDataUnit +kp_chart_new +kp_chart_set_size +kp_chart_set +kp_chart_set_type +kp_chart_set_title +kp_chart_set_group +kp_chart_set_group_title +kp_chart_set_group_titles +kp_chart_set_n_items +kp_chart_set_n_groups +kp_chart_get_n_items +kp_chart_get_n_groups +kp_chart_set_param_to_chart +kp_chart_set_chart_mode +kp_chart_set_item_title_max_len +kp_chart_set_item_title +kp_chart_set_item_stock_title +kp_chart_set_item_title_int +kp_chart_set_data_unit +kp_chart_update + +KP_CHART +KP_IS_CHART +KP_TYPE_CHART +kp_chart_get_type +KP_CHART_CLASS +KP_IS_CHART_CLASS +KP_CHART_GET_CLASS +
+ +
+kplogstore +KPLogStoreRecordType +kp_log_store_new +kp_log_store_attach_log +kp_log_store_get_date +kp_log_store_remove +kp_log_store_remove_mark +kp_log_store_add_mark +kp_log_store_get_iter_type + +KP_LOG_STORE +KP_IS_LOG_STORE +KP_TYPE_LOG_STORE +kp_log_store_get_type +KP_LOG_STORE_CLASS +KP_IS_LOG_STORE_CLASS +KP_LOG_STORE_GET_CLASS +
+ +
+kplistview +kp_list_view_new + +KP_LIST_VIEW +KP_IS_LIST_VIEW +KP_TYPE_LIST_VIEW +kp_list_view_get_type +KP_LIST_VIEW_CLASS +KP_IS_LIST_VIEW_CLASS +KP_LIST_VIEW_GET_CLASS +
+ +
+kptransferdialog +kp_transfer_dialog_new + +KP_TRANSFER_DIALOG +KP_IS_TRANSFER_DIALOG +KP_TYPE_TRANSFER_DIALOG +kp_transfer_dialog_get_type +KP_TRANSFER_DIALOG_CLASS +KP_IS_TRANSFER_DIALOG_CLASS +KP_TRANSFER_DIALOG_GET_CLASS +
+ +
+kparray2d +kp_array_2d_alloc +kp_array_2d_alloc_init0 +kp_array_2d_free +
+ +
+kpmarshalers +g_cclosure_user_marshal_VOID__UINT_UINT_UINT_STRING +g_cclosure_user_marshal_NONE__UINT_UINT_UINT_STRING +g_cclosure_user_marshal_VOID__BOOLEAN_STRING +g_cclosure_user_marshal_NONE__BOOLEAN_STRING +
+ +
+kipina +
+ +
+kipina-i18n +_ +N_ +textdomain +gettext +dgettext +dcgettext +bindtextdomain +bind_textdomain_codeset +
+ +
+kputil +kp_date_valid +kp_date_set_time +kp_date_new_dmy +kp_date_free +kp_date_seconds_to_string +kp_date_mseconds_to_std_string +kp_duration_str_to_ms +kp_is_valid_date_str +kp_is_valid_time_str +kp_is_valid_number +kp_number +kp_is_valid_duration_entry_str +kp_g_value_from_string +kp_g_value_to_string +kp_get_month_len +kp_leap +kp_week_of_year +kp_calc_days +kp_day_of_week +kp_dates_difference +kp_weeks_in_year +kp_print_debug_string +kp_get_month_num +kp_get_month_name +kp_month_num_by_year_day_number +KP_TAG_MATCH +kp_debug +
+ +
+kpsettings +kp_settings_init +kp_settings_deinit +kp_settings_save +kp_settings_remove_setting +kp_settings_get_int +kp_settings_get_str +kp_settings_get_bool +kp_settings_get_list +kp_settings_set_str +kp_settings_set_int +kp_settings_set_bool +kp_settings_add_to_list +kp_settings_remove_from_list +kp_settings_list_free +
+ +
+kpguiutils +CB +KP_W +kp_gui_load +kp_gui_module_signals_connect +kp_gui_module_signals_connect_data +kp_gui_get_yes_no_cancel +kp_gui_get_file_from_user +kp_gui_get_file_to_open +kp_gui_get_file_to_save +kp_gui_get_dir +kp_gui_get_filename_from_user +kp_gui_get_dirname_from_user +kp_gui_open_file_dialog +kp_gui_get_widget +kp_gui_get_option_menu_active +kp_gui_report_error +kp_gui_destroy_widget_passed +kp_gui_get_dates_for_view_type +kp_get_combo_box_first_entry +
+ +
+s410 +s410_set_file +s410_extract_bytes +s410_clean +
+ +
+hrmdata +KPHrmExercise +
+ --- kipina-0.1.1.orig/doc/reference/kipina.prerequisites +++ kipina-0.1.1/doc/reference/kipina.prerequisites @@ -0,0 +1,3 @@ +KPViewModel GtkWidget +GtkTreeModel GObject +GtkCellLayout GObject --- kipina-0.1.1.orig/doc/reference/kipina-undocumented.txt +++ kipina-0.1.1/doc/reference/kipina-undocumented.txt @@ -0,0 +1,142 @@ +32% symbol docs coverage. +63 symbols documented. +136 not documented. + + +CB +KPHrmExercise +KPLogStoreRecordType +KPTrainingLogError +KPViewModelType +KPWorkoutSplitType +KP_PLUGIN_INIT +KP_TAG_MATCH +KP_TRAINING_LOG_ERROR +KP_W +N_ +_ +bind_textdomain_codeset +bindtextdomain +dcgettext +dgettext +g_cclosure_user_marshal_NONE__UINT_UINT_UINT_STRING +g_cclosure_user_marshal_VOID__UINT_UINT_UINT_STRING +gettext +kp_array_2d_alloc +kp_array_2d_alloc_init0 +kp_array_2d_free +kp_calc_days +kp_calendar_entry_cmp +kp_calendar_entry_info_dialog_new +kp_calendar_entry_new +kp_calendar_entry_parse +kp_calendar_entry_to_string +kp_calendar_entry_to_xml +kp_calendar_time_get_date +kp_calendar_time_new +kp_calendar_time_new_dmyhms +kp_calendar_time_set_date +kp_calendar_time_set_datetime +kp_calendar_time_set_dmy +kp_calendar_time_set_hmst +kp_calendar_time_set_hmst_str +kp_calendar_time_to_str_hmst +kp_calendar_view_add_mark +kp_calendar_view_attach_popup_menu +kp_calendar_view_get_active +kp_calendar_view_get_current_mark +kp_calendar_view_new +kp_calendar_view_open_to_window +kp_calendar_view_remove_current_mark +kp_calendar_view_remove_mark +kp_calendar_view_set_active +kp_chart_new +kp_chart_set +kp_chart_set_group +kp_chart_set_group_title +kp_chart_set_group_titles +kp_chart_set_size +kp_chart_set_title +kp_chart_set_type +kp_comment_get_formatted_date +kp_dates_difference +kp_day_of_week +kp_debug +kp_g_value_from_string +kp_g_value_to_string +kp_gui_destroy_widget_passed +kp_gui_get_dirname_from_user +kp_gui_get_file_from_user +kp_gui_get_widget +kp_gui_get_yes_no_cancel +kp_gui_load +kp_gui_module_signals_connect +kp_gui_module_signals_connect_data +kp_gui_open_file_dialog +kp_is_valid_date_str +kp_is_valid_duration_entry_str +kp_is_valid_time_str +kp_leap +kp_log_store_add_mark +kp_log_store_attach_log +kp_log_store_get_date +kp_log_store_new +kp_log_store_remove +kp_log_store_remove_mark +kp_main_window_add_to_export_menu +kp_main_window_add_to_import_menu +kp_main_window_add_to_menubar +kp_main_window_get_log +kp_new_comment_dialog_new +kp_new_split_workout_dialog_new +kp_new_workout_dialog_new +kp_plugin_get_plugins +kp_plugin_get_plugins_loaded +kp_plugin_register +kp_preferences_dialog_new +kp_print_debug_string +kp_settings_deinit +kp_settings_get_int +kp_settings_get_list +kp_settings_init +kp_settings_list_free +kp_settings_remove_setting +kp_training_log_destroy +kp_training_log_error_quark +kp_training_log_get_all_entries +kp_training_log_get_all_entries_between +kp_training_log_get_data_as_tree_store +kp_training_log_get_month +kp_training_log_get_month_as_chart_data +kp_training_log_get_week_total +kp_training_log_get_workout_params_year +kp_training_log_is_modified +kp_training_log_new_from_file +kp_transfer_dialog_new +kp_tree_view_add_mark +kp_tree_view_new +kp_tree_view_remove_mark +kp_tree_view_set_log +kp_view_model_get_day +kp_view_model_get_dmy +kp_view_model_get_month +kp_view_model_get_view_type +kp_view_model_get_year +kp_view_model_set_dmy +kp_view_model_set_log +kp_view_model_set_view_type +kp_week_of_year +kp_weeks_in_year +kp_workout_cmp +kp_workout_destroy +kp_workout_get_distance +kp_workout_get_duration_str +kp_workout_get_formatted_date +kp_workout_get_param_double +kp_workout_get_param_int +kp_workout_print +s410_clean +s410_extract_bytes +s410_set_file +textdomain + --- kipina-0.1.1.orig/kipina.1 +++ kipina-0.1.1/kipina.1 @@ -1,7 +1,7 @@ .TH "kipina" "1" "1 May 2004" .SH "NAME" .LP -kipinä \- a training log written in C using GTK+ +kipin\[:a] \- a training log written in C using GTK+ .SH "SYNOPSIS" .B kipina @@ -9,7 +9,7 @@ .SH "DESCRIPTION" .LP -Kipinä is a training log for athletes and other people to keep track +Kipin\[:a] is a training log for athletes and other people to keep track their physical activities. .SH "EXAMPLES" --- kipina-0.1.1.orig/intltool-extract +++ kipina-0.1.1/intltool-extract @@ -0,0 +1,472 @@ +#!/usr/bin/perl -w +# -*- Mode: perl; indent-tabs-mode: nil; c-basic-offset: 4 -*- + +# +# The Intltool Message Extractor +# +# Copyright (C) 2000-2001, 2003 Free Software Foundation. +# +# Intltool is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of the +# License, or (at your option) any later version. +# +# 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: Kenneth Christiansen +# Darin Adler +# + +## Release information +my $PROGRAM = "intltool-extract"; +my $PACKAGE = "intltool"; +my $VERSION = "0.31.1"; + +## Loaded modules +use strict; +use File::Basename; +use Getopt::Long; + +## Scalars used by the option stuff +my $TYPE_ARG = "0"; +my $LOCAL_ARG = "0"; +my $HELP_ARG = "0"; +my $VERSION_ARG = "0"; +my $UPDATE_ARG = "0"; +my $QUIET_ARG = "0"; +my $SRCDIR_ARG = "."; + +my $FILE; +my $OUTFILE; + +my $gettext_type = ""; +my $input; +my %messages = (); +my %loc = (); +my %count = (); +my %comments = (); +my $strcount = 0; + +## Use this instead of \w for XML files to handle more possible characters. +my $w = "[-A-Za-z0-9._:]"; + +## Always print first +$| = 1; + +## Handle options +GetOptions ( + "type=s" => \$TYPE_ARG, + "local|l" => \$LOCAL_ARG, + "help|h" => \$HELP_ARG, + "version|v" => \$VERSION_ARG, + "update" => \$UPDATE_ARG, + "quiet|q" => \$QUIET_ARG, + "srcdir=s" => \$SRCDIR_ARG, + ) or &error; + +&split_on_argument; + + +## Check for options. +## This section will check for the different options. + +sub split_on_argument { + + if ($VERSION_ARG) { + &version; + + } elsif ($HELP_ARG) { + &help; + + } elsif ($LOCAL_ARG) { + &place_local; + &extract; + + } elsif ($UPDATE_ARG) { + &place_normal; + &extract; + + } elsif (@ARGV > 0) { + &place_normal; + &message; + &extract; + + } else { + &help; + + } +} + +sub place_normal { + $FILE = $ARGV[0]; + $OUTFILE = "$FILE.h"; +} + +sub place_local { + $OUTFILE = fileparse($FILE, ()); + if (!-e "tmp/") { + system("mkdir tmp/"); + } + $OUTFILE = "./tmp/$OUTFILE.h" +} + +sub determine_type { + if ($TYPE_ARG =~ /^gettext\/(.*)/) { + $gettext_type=$1 + } +} + +## Sub for printing release information +sub version{ + print <<_EOF_; +${PROGRAM} (${PACKAGE}) $VERSION +Copyright (C) 2000, 2003 Free Software Foundation, Inc. +Written by Kenneth Christiansen, 2000. + +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 help { + print <<_EOF_; +Usage: ${PROGRAM} [OPTION]... [FILENAME] +Generates a header file from an XML source file. + +It grabs all strings between <_translatable_node> and its end tag in +XML files. Read manpage (man ${PROGRAM}) for more info. + + --type=TYPE Specify the file type of FILENAME. Currently supports: + "gettext/glade", "gettext/ini", "gettext/keys" + "gettext/rfc822deb", "gettext/schemas", + "gettext/scheme", "gettext/xml" + -l, --local Writes output into current working directory + (conflicts with --update) + --update Writes output into the same directory the source file + reside (conflicts with --local) + --srcdir Root of the source tree + -v, --version Output version information and exit + -h, --help Display this help and exit + -q, --quiet Quiet mode + +Report bugs to http://bugzilla.gnome.org/ (product name "$PACKAGE") +or send email to . +_EOF_ + exit; +} + +## Sub for printing error messages +sub error{ + print STDERR "Try `${PROGRAM} --help' for more information.\n"; + exit; +} + +sub message { + print "Generating C format header file for translation.\n" unless $QUIET_ARG; +} + +sub extract { + &determine_type; + + &convert; + + open OUT, ">$OUTFILE"; + &msg_write; + close OUT; + + print "Wrote $OUTFILE\n" unless $QUIET_ARG; +} + +sub convert { + + ## Reading the file + { + local (*IN); + local $/; #slurp mode + open (IN, "<$SRCDIR_ARG/$FILE") || die "can't open $SRCDIR_ARG/$FILE: $!"; + $input = ; + } + + &type_ini if $gettext_type eq "ini"; + &type_keys if $gettext_type eq "keys"; + &type_xml if $gettext_type eq "xml"; + &type_glade if $gettext_type eq "glade"; + &type_scheme if $gettext_type eq "scheme"; + &type_schemas if $gettext_type eq "schemas"; + &type_rfc822deb if $gettext_type eq "rfc822deb"; +} + +sub entity_decode_minimal +{ + local ($_) = @_; + + s/'/'/g; # ' + s/"/"/g; # " + s/&/&/g; + + return $_; +} + +sub entity_decode +{ + local ($_) = @_; + + s/'/'/g; # ' + s/"/"/g; # " + s/&/&/g; + s/<//g; + + return $_; +} + +sub escape_char +{ + return '\"' if $_ eq '"'; + return '\n' if $_ eq "\n"; + return '\\' if $_ eq '\\'; + + return $_; +} + +sub escape +{ + my ($string) = @_; + return join "", map &escape_char, split //, $string; +} + +sub type_ini { + ### For generic translatable desktop files ### + while ($input =~ /^_.*=(.*)$/mg) { + $messages{$1} = []; + } +} + +sub type_keys { + ### For generic translatable mime/keys files ### + while ($input =~ /^\s*_\w+=(.*)$/mg) { + $messages{$1} = []; + } +} + +sub type_xml { + ### For generic translatable XML files ### + + while ($input =~ /\s_$w+\s*=\s*\"([^"]+)\"/sg) { # " + $messages{entity_decode_minimal($1)} = []; + } + + while ($input =~ /(?:\s*)?<_($w+)(?: xml:space="($w+)")?>(.+?)<\/_\2>/sg) { + $_ = $4; + if (!defined($3) || $3 ne "preserve") { + s/\s+/ /g; + s/^ //; + s/ $//; + } + $messages{$_} = []; + $comments{$_} = $1 if (defined($1)); + } +} + +sub type_schemas { + ### For schemas XML files ### + + # FIXME: We should handle escaped < (less than) + while ($input =~ / + \s* + (\s*(?:\s*)?(.*?)\s*<\/default>\s*)? + (\s*(?:\s*)?(.*?)\s*<\/short>\s*)? + (\s*(?:\s*)?(.*?)\s*<\/long>\s*)? + <\/locale> + /sgx) { + my @totranslate = ($3,$6,$9); + my @eachcomment = ($2,$5,$8); + foreach (@totranslate) { + my $currentcomment = shift @eachcomment; + next if !$_; + s/\s+/ /g; + $messages{entity_decode_minimal($_)} = []; + $comments{entity_decode_minimal($_)} = $currentcomment if (defined($currentcomment)); + } + } +} + +sub type_rfc822deb { + ### For rfc822-style Debian configuration files ### + + my $lineno = 1; + my $type = ''; + while ($input =~ /\G(.*?)(^|\n)(_+)([^:]+):[ \t]*(.*?)(?=\n\S|$)/sg) + { + my ($pre, $newline, $underscore, $tag, $text) = ($1, $2, $3, $4, $5); + while ($pre =~ m/\n/g) + { + $lineno ++; + } + $lineno += length($newline); + my @str_list = rfc822deb_split(length($underscore), $text); + for my $str (@str_list) + { + $strcount++; + $messages{$str} = []; + $loc{$str} = $lineno; + $count{$str} = $strcount; + my $usercomment = ''; + while($pre =~ s/(^|\n)#([^\n]*)$//s) + { + $usercomment = "\n" . $2 . $usercomment; + } + $comments{$str} = $tag . $usercomment; + } + $lineno += ($text =~ s/\n//g); + } +} + +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. + # When first argument is 2, the string is a comma separated list of + # values. + my $type = shift; + my $text = shift; + $text =~ s/^[ \t]//mg; + return (split(/, */, $text, 0)) if $type ne 1; + return ($text) if $text !~ /\n/; + + $text =~ s/([^\n]*)\n//; + my @list = ($1); + my $str = ''; + for my $line (split (/\n/, $text)) + { + chomp $line; + if ($line =~ /^\.\s*$/) + { + # 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$/; + $line =~ s/\s+$//; + $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; +} + +sub type_glade { + ### For translatable Glade XML files ### + + my $tags = "label|title|text|format|copyright|comments|preview_text|tooltip|message"; + + while ($input =~ /<($tags)>([^<]+)<\/($tags)>/sg) { + # Glade sometimes uses tags that normally mark translatable things for + # little bits of non-translatable content. We work around this by not + # translating strings that only includes something like label4 or window1. + $messages{entity_decode($2)} = [] unless $2 =~ /^(window|label)[0-9]+$/; + } + + while ($input =~ /(..[^<]*)<\/items>/sg) { + for my $item (split (/\n/, $1)) { + $messages{entity_decode($item)} = []; + } + } + + ## handle new glade files + while ($input =~ /<(property|atkproperty)\s+[^>]*translatable\s*=\s*"yes"[^>]*>([^<]+)<\/\1>/sg) { + $messages{entity_decode($2)} = [] unless $2 =~ /^(window|label)[0-9]+$/; + } + while ($input =~ /]*)"\s+description="([^>]+)"\/>/sg) { + $messages{entity_decode_minimal($2)} = []; + } +} + +sub type_scheme { + while ($input =~ /_\w*\(?"((?:[^"\\]+|\\.)*)"\)?/sg) { + $messages{$1} = []; + } +} + +sub msg_write { + my @msgids; + if (%count) + { + @msgids = sort { $count{$a} <=> $count{$b} } keys %count; + } + else + { + @msgids = sort keys %messages; + } + for my $message (@msgids) + { + my $offsetlines = 1; + $offsetlines++ if $message =~ /%/; + if (defined ($comments{$message})) + { + while ($comments{$message} =~ m/\n/g) + { + $offsetlines++; + } + } + print OUT "# ".($loc{$message} - $offsetlines). " \"$FILE\"\n" + if defined $loc{$message}; + print OUT "/* ".$comments{$message}." */\n" + if defined $comments{$message}; + print OUT "/* xgettext:no-c-format */\n" if $message =~ /%/; + + my @lines = split (/\n/, $message, -1); + for (my $n = 0; $n < @lines; $n++) + { + if ($n == 0) + { + print OUT "char *s = N_(\""; + } + else + { + print OUT " \""; + } + + print OUT escape($lines[$n]); + + if ($n < @lines - 1) + { + print OUT "\\n\"\n"; + } + else + { + print OUT "\");\n"; + } + } + } +} + --- kipina-0.1.1.orig/src/plugins/Makefile +++ kipina-0.1.1/src/plugins/Makefile @@ -0,0 +1,463 @@ +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am + +# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + +SHELL = /bin/sh + +srcdir = . +top_srcdir = ../.. + +prefix = /usr +exec_prefix = ${prefix} + +bindir = ${exec_prefix}/bin +sbindir = ${exec_prefix}/sbin +libexecdir = ${exec_prefix}/libexec +datadir = ${prefix}/share +sysconfdir = ${prefix}/etc +sharedstatedir = ${prefix}/com +localstatedir = ${prefix}/var +libdir = ${exec_prefix}/lib +infodir = ${prefix}/share/info +mandir = ${prefix}/share/man +includedir = ${prefix}/include +oldincludedir = /usr/include + +DESTDIR = + +pkgdatadir = $(datadir)/kipina +pkglibdir = $(libdir)/kipina +pkgincludedir = $(includedir)/kipina + +top_builddir = ../.. + +ACLOCAL = /home/abi/qa/kipina-0.1.1/missing aclocal-1.4 +AUTOCONF = autoconf +AUTOMAKE = /home/abi/qa/kipina-0.1.1/missing automake-1.4 +AUTOHEADER = autoheader + +INSTALL = /usr/bin/install -c +INSTALL_PROGRAM = ${INSTALL} $(AM_INSTALL_PROGRAM_FLAGS) +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_SCRIPT = ${INSTALL} +transform = s,x,x, + +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +host_alias = x86_64-linux-gnu +host_triplet = x86_64-pc-linux-gnu +AR = ar +AS = @AS@ +CATALOGS = fi.gmo +CATOBJEXT = .gmo +CC = x86_64-linux-gnu-gcc +CXX = x86_64-linux-gnu-g++ +CXXCPP = x86_64-linux-gnu-g++ -E +DATADIRNAME = share +DLLTOOL = @DLLTOOL@ +ECHO = echo +EGREP = grep -E +EXEEXT = +F77 = x86_64-linux-gnu-g77 +GCJ = @GCJ@ +GCJFLAGS = @GCJFLAGS@ +GETTEXT_PACKAGE = kipina +GLADE_CFLAGS = -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 +GLADE_LIBS = -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lX11 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 +GMOFILES = fi.gmo +GMSGFMT = /usr/bin/msgfmt +GOBJECT_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include +GOBJECT_LIBS = -lgobject-2.0 -lglib-2.0 +GTK_CFLAGS = -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 +GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lX11 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 +HAVE_LIB = @HAVE_LIB@ +HTML_DIR = ${datadir}/gtk-doc/html +INSTOBJEXT = .mo +INTLLIBS = +INTLTOOL_CAVES_RULE = %.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +INTLTOOL_DESKTOP_RULE = %.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +INTLTOOL_DIRECTORY_RULE = %.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +INTLTOOL_EXTRACT = $(top_builddir)/intltool-extract +INTLTOOL_KBD_RULE = %.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +INTLTOOL_KEYS_RULE = %.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +INTLTOOL_MERGE = $(top_builddir)/intltool-merge +INTLTOOL_OAF_RULE = %.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@ +INTLTOOL_PERL = /usr/bin/perl +INTLTOOL_PONG_RULE = %.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +INTLTOOL_PROP_RULE = %.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +INTLTOOL_SCHEMAS_RULE = %.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +INTLTOOL_SERVER_RULE = %.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +INTLTOOL_SHEET_RULE = %.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +INTLTOOL_SOUNDLIST_RULE = %.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +INTLTOOL_THEME_RULE = %.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +INTLTOOL_UI_RULE = %.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +INTLTOOL_UPDATE = $(top_builddir)/intltool-update +INTLTOOL_XAM_RULE = %.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +INTLTOOL_XML_RULE = %.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +LIB = @LIB@ +LIBTOOL = $(SHELL) $(top_builddir)/libtool +LIBXML2_CFLAGS = -I/usr/include/libxml2 +LIBXML2_LIBS = -lxml2 +LIBXSLT_CFLAGS = -I/usr/include/libxml2 +LIBXSLT_LIBS = -lxslt -lxml2 +LN_S = ln -s +LTLIB = @LTLIB@ +MAINT = # +MAKEINFO = makeinfo +MKINSTALLDIRS = ./mkinstalldirs +OBJDUMP = @OBJDUMP@ +OBJEXT = o +PACKAGE = kipina +PKG_CONFIG = /usr/bin/pkg-config +POFILES = fi.po +POSUB = po +PO_IN_DATADIR_FALSE = +PO_IN_DATADIR_TRUE = +RANLIB = ranlib +RC = @RC@ +STRIP = strip +USE_NLS = yes +VERSION = 0.1.1 +kipinalocaledir = ${prefix}/${DATADIRNAME}/locale + +SUBDIRS = s410 + +plugindir = $(libdir)/kipina + +simple_la_LDFLAGS = -module -avoid-version + +plugin_LTLIBRARIES = simple.la + +simple_la_SOURCES = simple.c + +INCLUDES = -DDATADIR=\"$(datadir)\" -I$(top_srcdir)/src $(GTK_CFLAGS) $(GLADE_CFLAGS) + +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs +CONFIG_CLEAN_FILES = +LTLIBRARIES = $(plugin_LTLIBRARIES) + + +DEFS = -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"kipina\" -DVERSION=\"0.1.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DGETTEXT_PACKAGE=\"kipina\" -DHAVE_LOCALE_H=1 -DHAVE_LC_MESSAGES=1 -DHAVE_BIND_TEXTDOMAIN_CODESET=1 -DHAVE_GETTEXT=1 -DHAVE_DCGETTEXT=1 -DENABLE_NLS=1 -I. -I$(srcdir) +CPPFLAGS = +LDFLAGS = +LIBS = +simple_la_LIBADD = +simple_la_OBJECTS = simple.lo +CFLAGS = -g -Wall -W -Wno-unused-parameter -O -O2 -DGUI_ENABLED +COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ +DIST_COMMON = Makefile.am Makefile.in + + +DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) + +TAR = tar +GZIP_ENV = --best +SOURCES = $(simple_la_SOURCES) +OBJECTS = $(simple_la_OBJECTS) + +all: all-redirect +.SUFFIXES: +.SUFFIXES: .S .c .lo .o .obj .s +$(srcdir)/Makefile.in: # Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) + cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/plugins/Makefile + +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + cd $(top_builddir) \ + && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status + + +mostlyclean-pluginLTLIBRARIES: + +clean-pluginLTLIBRARIES: + -test -z "$(plugin_LTLIBRARIES)" || rm -f $(plugin_LTLIBRARIES) + +distclean-pluginLTLIBRARIES: + +maintainer-clean-pluginLTLIBRARIES: + +install-pluginLTLIBRARIES: $(plugin_LTLIBRARIES) + @$(NORMAL_INSTALL) + $(mkinstalldirs) $(DESTDIR)$(plugindir) + @list='$(plugin_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + echo "$(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(plugindir)/$$p"; \ + $(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(plugindir)/$$p; \ + else :; fi; \ + done + +uninstall-pluginLTLIBRARIES: + @$(NORMAL_UNINSTALL) + list='$(plugin_LTLIBRARIES)'; for p in $$list; do \ + $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(plugindir)/$$p; \ + done + +.c.o: + $(COMPILE) -c $< + +# FIXME: We should only use cygpath when building on Windows, +# and only if it is available. +.c.obj: + $(COMPILE) -c `cygpath -w $<` + +.s.o: + $(COMPILE) -c $< + +.S.o: + $(COMPILE) -c $< + +mostlyclean-compile: + -rm -f *.o core *.core + -rm -f *.$(OBJEXT) + +clean-compile: + +distclean-compile: + -rm -f *.tab.c + +maintainer-clean-compile: + +.c.lo: + $(LIBTOOL) --mode=compile $(COMPILE) -c $< + +.s.lo: + $(LIBTOOL) --mode=compile $(COMPILE) -c $< + +.S.lo: + $(LIBTOOL) --mode=compile $(COMPILE) -c $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +distclean-libtool: + +maintainer-clean-libtool: + +simple.la: $(simple_la_OBJECTS) $(simple_la_DEPENDENCIES) + $(LINK) -rpath $(plugindir) $(simple_la_LDFLAGS) $(simple_la_OBJECTS) $(simple_la_LIBADD) $(LIBS) + +# This directory's subdirectories are mostly independent; you can cd +# into them and run `make' without going through this Makefile. +# To change the values of `make' variables: instead of editing Makefiles, +# (1) if the variable is set in `config.status', edit `config.status' +# (which will cause the Makefiles to be regenerated when you run `make'); +# (2) otherwise, pass the desired values on the `make' command line. + + + +all-recursive install-data-recursive install-exec-recursive \ +installdirs-recursive install-recursive uninstall-recursive \ +check-recursive installcheck-recursive info-recursive dvi-recursive: + @set fnord $(MAKEFLAGS); amf=$$2; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +mostlyclean-recursive clean-recursive distclean-recursive \ +maintainer-clean-recursive: + @set fnord $(MAKEFLAGS); amf=$$2; \ + dot_seen=no; \ + rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \ + rev="$$subdir $$rev"; \ + test "$$subdir" != "." || dot_seen=yes; \ + done; \ + test "$$dot_seen" = "no" && rev=". $$rev"; \ + target=`echo $@ | sed s/-recursive//`; \ + for subdir in $$rev; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ + done && test -z "$$fail" +tags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ + done + +tags: TAGS + +ID: $(HEADERS) $(SOURCES) $(LISP) + list='$(SOURCES) $(HEADERS)'; \ + unique=`for i in $$list; do echo $$i; done | \ + awk ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + here=`pwd` && cd $(srcdir) \ + && mkid -f$$here/ID $$unique $(LISP) + +TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \ + fi; \ + done; \ + list='$(SOURCES) $(HEADERS)'; \ + unique=`for i in $$list; do echo $$i; done | \ + awk ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP)) + +mostlyclean-tags: + +clean-tags: + +distclean-tags: + -rm -f TAGS ID + +maintainer-clean-tags: + +distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) + +subdir = src/plugins + +distdir: $(DISTFILES) + @for file in $(DISTFILES); do \ + d=$(srcdir); \ + if test -d $$d/$$file; then \ + cp -pr $$d/$$file $(distdir)/$$file; \ + else \ + test -f $(distdir)/$$file \ + || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ + || cp -p $$d/$$file $(distdir)/$$file || :; \ + fi; \ + done + for subdir in $(SUBDIRS); do \ + if test "$$subdir" = .; then :; else \ + test -d $(distdir)/$$subdir \ + || mkdir $(distdir)/$$subdir \ + || exit 1; \ + chmod 777 $(distdir)/$$subdir; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(top_distdir) distdir=../$(distdir)/$$subdir distdir) \ + || exit 1; \ + fi; \ + done +s410.lo s410.o : s410.c s410/kptransferdialog.h ../kpworkout.h \ + ../kpcalendarentry.h ../kpcalendartime.h s410/kphrmreader.h \ + s410/s410.h ../kipina-i18n.h ../kpplugin.h ../kputil.h +simple.lo simple.o : simple.c ../kpplugin.h ../kputil.h ../kipina-i18n.h \ + ../kptraininglog.h ../kpworkout.h ../kpcalendarentry.h \ + ../kpcalendartime.h ../gui/kpmainwindow.h + +info-am: +info: info-recursive +dvi-am: +dvi: dvi-recursive +check-am: all-am +check: check-recursive +installcheck-am: +installcheck: installcheck-recursive +install-exec-am: +install-exec: install-exec-recursive + +install-data-am: install-pluginLTLIBRARIES +install-data: install-data-recursive + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am +install: install-recursive +uninstall-am: uninstall-pluginLTLIBRARIES +uninstall: uninstall-recursive +all-am: Makefile $(LTLIBRARIES) +all-redirect: all-recursive +install-strip: + $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install +installdirs: installdirs-recursive +installdirs-am: + $(mkinstalldirs) $(DESTDIR)$(plugindir) + + +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -rm -f Makefile $(CONFIG_CLEAN_FILES) + -rm -f config.cache config.log stamp-h stamp-h[0-9]* + +maintainer-clean-generic: +mostlyclean-am: mostlyclean-pluginLTLIBRARIES mostlyclean-compile \ + mostlyclean-libtool mostlyclean-tags \ + mostlyclean-generic + +mostlyclean: mostlyclean-recursive + +clean-am: clean-pluginLTLIBRARIES clean-compile clean-libtool \ + clean-tags clean-generic mostlyclean-am + +clean: clean-recursive + +distclean-am: distclean-pluginLTLIBRARIES distclean-compile \ + distclean-libtool distclean-tags distclean-generic \ + clean-am + -rm -f libtool + +distclean: distclean-recursive + +maintainer-clean-am: maintainer-clean-pluginLTLIBRARIES \ + maintainer-clean-compile maintainer-clean-libtool \ + maintainer-clean-tags maintainer-clean-generic \ + distclean-am + @echo "This command is intended for maintainers to use;" + @echo "it deletes files that may require special tools to rebuild." + +maintainer-clean: maintainer-clean-recursive + +.PHONY: mostlyclean-pluginLTLIBRARIES distclean-pluginLTLIBRARIES \ +clean-pluginLTLIBRARIES maintainer-clean-pluginLTLIBRARIES \ +uninstall-pluginLTLIBRARIES install-pluginLTLIBRARIES \ +mostlyclean-compile distclean-compile clean-compile \ +maintainer-clean-compile mostlyclean-libtool distclean-libtool \ +clean-libtool maintainer-clean-libtool install-data-recursive \ +uninstall-data-recursive install-exec-recursive \ +uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \ +all-recursive check-recursive installcheck-recursive info-recursive \ +dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \ +maintainer-clean-recursive tags tags-recursive mostlyclean-tags \ +distclean-tags clean-tags maintainer-clean-tags distdir info-am info \ +dvi-am dvi check check-am installcheck-am installcheck install-exec-am \ +install-exec install-data-am install-data install-am install \ +uninstall-am uninstall all-redirect all-am all installdirs-am \ +installdirs mostlyclean-generic distclean-generic clean-generic \ +maintainer-clean-generic clean mostlyclean distclean maintainer-clean + + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: --- kipina-0.1.1.orig/src/plugins/s410/Makefile +++ kipina-0.1.1/src/plugins/s410/Makefile @@ -0,0 +1,392 @@ +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am + +# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + +SHELL = /bin/sh + +srcdir = . +top_srcdir = ../../.. + +prefix = /usr +exec_prefix = ${prefix} + +bindir = ${exec_prefix}/bin +sbindir = ${exec_prefix}/sbin +libexecdir = ${exec_prefix}/libexec +datadir = ${prefix}/share +sysconfdir = ${prefix}/etc +sharedstatedir = ${prefix}/com +localstatedir = ${prefix}/var +libdir = ${exec_prefix}/lib +infodir = ${prefix}/share/info +mandir = ${prefix}/share/man +includedir = ${prefix}/include +oldincludedir = /usr/include + +DESTDIR = + +pkgdatadir = $(datadir)/kipina +pkglibdir = $(libdir)/kipina +pkgincludedir = $(includedir)/kipina + +top_builddir = ../../.. + +ACLOCAL = /home/abi/qa/kipina-0.1.1/missing aclocal-1.4 +AUTOCONF = autoconf +AUTOMAKE = /home/abi/qa/kipina-0.1.1/missing automake-1.4 +AUTOHEADER = autoheader + +INSTALL = /usr/bin/install -c +INSTALL_PROGRAM = ${INSTALL} $(AM_INSTALL_PROGRAM_FLAGS) +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_SCRIPT = ${INSTALL} +transform = s,x,x, + +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +host_alias = x86_64-linux-gnu +host_triplet = x86_64-pc-linux-gnu +AR = ar +AS = @AS@ +CATALOGS = fi.gmo +CATOBJEXT = .gmo +CC = x86_64-linux-gnu-gcc +CXX = x86_64-linux-gnu-g++ +CXXCPP = x86_64-linux-gnu-g++ -E +DATADIRNAME = share +DLLTOOL = @DLLTOOL@ +ECHO = echo +EGREP = grep -E +EXEEXT = +F77 = x86_64-linux-gnu-g77 +GCJ = @GCJ@ +GCJFLAGS = @GCJFLAGS@ +GETTEXT_PACKAGE = kipina +GLADE_CFLAGS = -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 +GLADE_LIBS = -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lX11 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 +GMOFILES = fi.gmo +GMSGFMT = /usr/bin/msgfmt +GOBJECT_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include +GOBJECT_LIBS = -lgobject-2.0 -lglib-2.0 +GTK_CFLAGS = -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 +GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lX11 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 +HAVE_LIB = @HAVE_LIB@ +HTML_DIR = ${datadir}/gtk-doc/html +INSTOBJEXT = .mo +INTLLIBS = +INTLTOOL_CAVES_RULE = %.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +INTLTOOL_DESKTOP_RULE = %.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +INTLTOOL_DIRECTORY_RULE = %.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +INTLTOOL_EXTRACT = $(top_builddir)/intltool-extract +INTLTOOL_KBD_RULE = %.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +INTLTOOL_KEYS_RULE = %.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +INTLTOOL_MERGE = $(top_builddir)/intltool-merge +INTLTOOL_OAF_RULE = %.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@ +INTLTOOL_PERL = /usr/bin/perl +INTLTOOL_PONG_RULE = %.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +INTLTOOL_PROP_RULE = %.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +INTLTOOL_SCHEMAS_RULE = %.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +INTLTOOL_SERVER_RULE = %.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +INTLTOOL_SHEET_RULE = %.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +INTLTOOL_SOUNDLIST_RULE = %.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +INTLTOOL_THEME_RULE = %.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +INTLTOOL_UI_RULE = %.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +INTLTOOL_UPDATE = $(top_builddir)/intltool-update +INTLTOOL_XAM_RULE = %.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +INTLTOOL_XML_RULE = %.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ +LIB = @LIB@ +LIBTOOL = $(SHELL) $(top_builddir)/libtool +LIBXML2_CFLAGS = -I/usr/include/libxml2 +LIBXML2_LIBS = -lxml2 +LIBXSLT_CFLAGS = -I/usr/include/libxml2 +LIBXSLT_LIBS = -lxslt -lxml2 +LN_S = ln -s +LTLIB = @LTLIB@ +MAINT = # +MAKEINFO = makeinfo +MKINSTALLDIRS = ./mkinstalldirs +OBJDUMP = @OBJDUMP@ +OBJEXT = o +PACKAGE = kipina +PKG_CONFIG = /usr/bin/pkg-config +POFILES = fi.po +POSUB = po +PO_IN_DATADIR_FALSE = +PO_IN_DATADIR_TRUE = +RANLIB = ranlib +RC = @RC@ +STRIP = strip +USE_NLS = yes +VERSION = 0.1.1 +kipinalocaledir = ${prefix}/${DATADIRNAME}/locale + +plugindir = $(libdir)/kipina + +s410_la_LDFLAGS = -module -avoid-version + +plugin_LTLIBRARIES = s410.la + +s410_la_SOURCES = s410.c s410.h kptransferdialog.c kptransferdialog.h plugin.c hrmdata.h + + +INCLUDES = -DDATADIR=\"$(datadir)\" -I$(top_srcdir)/src $(GTK_CFLAGS) $(GLADE_CFLAGS) + +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs +CONFIG_CLEAN_FILES = +LTLIBRARIES = $(plugin_LTLIBRARIES) + + +DEFS = -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"kipina\" -DVERSION=\"0.1.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DGETTEXT_PACKAGE=\"kipina\" -DHAVE_LOCALE_H=1 -DHAVE_LC_MESSAGES=1 -DHAVE_BIND_TEXTDOMAIN_CODESET=1 -DHAVE_GETTEXT=1 -DHAVE_DCGETTEXT=1 -DENABLE_NLS=1 -I. -I$(srcdir) +CPPFLAGS = +LDFLAGS = +LIBS = +s410_la_LIBADD = +s410_la_OBJECTS = s410.lo kptransferdialog.lo plugin.lo +CFLAGS = -g -Wall -W -Wno-unused-parameter -O -O2 -DGUI_ENABLED +COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ +DIST_COMMON = Makefile.am Makefile.in + + +DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) + +TAR = tar +GZIP_ENV = --best +SOURCES = $(s410_la_SOURCES) +OBJECTS = $(s410_la_OBJECTS) + +all: all-redirect +.SUFFIXES: +.SUFFIXES: .S .c .lo .o .obj .s +$(srcdir)/Makefile.in: # Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) + cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/plugins/s410/Makefile + +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + cd $(top_builddir) \ + && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status + + +mostlyclean-pluginLTLIBRARIES: + +clean-pluginLTLIBRARIES: + -test -z "$(plugin_LTLIBRARIES)" || rm -f $(plugin_LTLIBRARIES) + +distclean-pluginLTLIBRARIES: + +maintainer-clean-pluginLTLIBRARIES: + +install-pluginLTLIBRARIES: $(plugin_LTLIBRARIES) + @$(NORMAL_INSTALL) + $(mkinstalldirs) $(DESTDIR)$(plugindir) + @list='$(plugin_LTLIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + echo "$(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(plugindir)/$$p"; \ + $(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(plugindir)/$$p; \ + else :; fi; \ + done + +uninstall-pluginLTLIBRARIES: + @$(NORMAL_UNINSTALL) + list='$(plugin_LTLIBRARIES)'; for p in $$list; do \ + $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(plugindir)/$$p; \ + done + +.c.o: + $(COMPILE) -c $< + +# FIXME: We should only use cygpath when building on Windows, +# and only if it is available. +.c.obj: + $(COMPILE) -c `cygpath -w $<` + +.s.o: + $(COMPILE) -c $< + +.S.o: + $(COMPILE) -c $< + +mostlyclean-compile: + -rm -f *.o core *.core + -rm -f *.$(OBJEXT) + +clean-compile: + +distclean-compile: + -rm -f *.tab.c + +maintainer-clean-compile: + +.c.lo: + $(LIBTOOL) --mode=compile $(COMPILE) -c $< + +.s.lo: + $(LIBTOOL) --mode=compile $(COMPILE) -c $< + +.S.lo: + $(LIBTOOL) --mode=compile $(COMPILE) -c $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +distclean-libtool: + +maintainer-clean-libtool: + +s410.la: $(s410_la_OBJECTS) $(s410_la_DEPENDENCIES) + $(LINK) -rpath $(plugindir) $(s410_la_LDFLAGS) $(s410_la_OBJECTS) $(s410_la_LIBADD) $(LIBS) + +tags: TAGS + +ID: $(HEADERS) $(SOURCES) $(LISP) + list='$(SOURCES) $(HEADERS)'; \ + unique=`for i in $$list; do echo $$i; done | \ + awk ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + here=`pwd` && cd $(srcdir) \ + && mkid -f$$here/ID $$unique $(LISP) + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS)'; \ + unique=`for i in $$list; do echo $$i; done | \ + awk ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP)) + +mostlyclean-tags: + +clean-tags: + +distclean-tags: + -rm -f TAGS ID + +maintainer-clean-tags: + +distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) + +subdir = src/plugins/s410 + +distdir: $(DISTFILES) + @for file in $(DISTFILES); do \ + d=$(srcdir); \ + if test -d $$d/$$file; then \ + cp -pr $$d/$$file $(distdir)/$$file; \ + else \ + test -f $(distdir)/$$file \ + || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ + || cp -p $$d/$$file $(distdir)/$$file || :; \ + fi; \ + done +kptransferdialog.lo kptransferdialog.o : kptransferdialog.c \ + kptransferdialog.h ../../kpworkout.h ../../kpcalendarentry.h \ + ../../kpcalendartime.h ../../gui/kpguiutils.h \ + ../../gui/kpviewmodel.h ../../kptraininglog.h ../../kputil.h \ + ../../gui/kpstatusbar.h ../../gui/kpmainwindow.h s410.h \ + hrmdata.h ../../kipina-i18n.h ../../kpsettings.h +plugin.lo plugin.o : plugin.c kptransferdialog.h ../../kpworkout.h \ + ../../kpcalendarentry.h ../../kpcalendartime.h hrmdata.h s410.h \ + ../../gui/kpmainwindow.h ../../kptraininglog.h ../../kputil.h \ + ../../kipina-i18n.h ../../kpplugin.h +s410.lo s410.o : s410.c hrmdata.h ../../kpworkout.h \ + ../../kpcalendarentry.h ../../kpcalendartime.h s410.h + +info-am: +info: info-am +dvi-am: +dvi: dvi-am +check-am: all-am +check: check-am +installcheck-am: +installcheck: installcheck-am +install-exec-am: +install-exec: install-exec-am + +install-data-am: install-pluginLTLIBRARIES +install-data: install-data-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am +install: install-am +uninstall-am: uninstall-pluginLTLIBRARIES +uninstall: uninstall-am +all-am: Makefile $(LTLIBRARIES) +all-redirect: all-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install +installdirs: + $(mkinstalldirs) $(DESTDIR)$(plugindir) + + +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -rm -f Makefile $(CONFIG_CLEAN_FILES) + -rm -f config.cache config.log stamp-h stamp-h[0-9]* + +maintainer-clean-generic: +mostlyclean-am: mostlyclean-pluginLTLIBRARIES mostlyclean-compile \ + mostlyclean-libtool mostlyclean-tags \ + mostlyclean-generic + +mostlyclean: mostlyclean-am + +clean-am: clean-pluginLTLIBRARIES clean-compile clean-libtool \ + clean-tags clean-generic mostlyclean-am + +clean: clean-am + +distclean-am: distclean-pluginLTLIBRARIES distclean-compile \ + distclean-libtool distclean-tags distclean-generic \ + clean-am + -rm -f libtool + +distclean: distclean-am + +maintainer-clean-am: maintainer-clean-pluginLTLIBRARIES \ + maintainer-clean-compile maintainer-clean-libtool \ + maintainer-clean-tags maintainer-clean-generic \ + distclean-am + @echo "This command is intended for maintainers to use;" + @echo "it deletes files that may require special tools to rebuild." + +maintainer-clean: maintainer-clean-am + +.PHONY: mostlyclean-pluginLTLIBRARIES distclean-pluginLTLIBRARIES \ +clean-pluginLTLIBRARIES maintainer-clean-pluginLTLIBRARIES \ +uninstall-pluginLTLIBRARIES install-pluginLTLIBRARIES \ +mostlyclean-compile distclean-compile clean-compile \ +maintainer-clean-compile mostlyclean-libtool distclean-libtool \ +clean-libtool maintainer-clean-libtool tags mostlyclean-tags \ +distclean-tags clean-tags maintainer-clean-tags distdir info-am info \ +dvi-am dvi check check-am installcheck-am installcheck install-exec-am \ +install-exec install-data-am install-data install-am install \ +uninstall-am uninstall all-redirect all-am all installdirs \ +mostlyclean-generic distclean-generic clean-generic \ +maintainer-clean-generic clean mostlyclean distclean maintainer-clean + + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: --- kipina-0.1.1.orig/xml/glade/about.glade +++ kipina-0.1.1/xml/glade/about.glade @@ -0,0 +1,224 @@ + + + + + + + True + About kipinä + GTK_WINDOW_TOPLEVEL + GTK_WIN_POS_MOUSE + False + True + True + True + False + False + GDK_WINDOW_TYPE_HINT_DIALOG + GDK_GRAVITY_NORTH_WEST + True + + + + True + False + 0 + + + + True + GTK_BUTTONBOX_END + + + + True + True + True + gtk-ok + True + GTK_RELIEF_NORMAL + True + -5 + + + + + 0 + False + True + GTK_PACK_END + + + + + + 12 + True + False + 13 + + + + True + ../pixmaps/runner.xpm + 0.5 + 0.5 + 0 + 0 + + + 0 + False + True + + + + + + True + 1 + 1 + 1 + 0.5 + 0 + 0 + 0 + 0 + + + + True + False + 12 + + + + True + <span size="xx-large" weight="bold">Kipinä v0.1.1</span> + False + True + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + + + 0 + False + False + + + + + + True + 0.5 + 0.5 + 0 + 1 + 0 + 0 + 0 + 0 + + + + True + False + 0 + + + + True + <big><b>Kipinä </b></big> + False + True + GTK_JUSTIFY_RIGHT + False + False + 0.5 + 0.5 + 0 + 0 + + + 0 + False + False + + + + + + True + <big>is a training log for athletes. </big> + False + True + GTK_JUSTIFY_CENTER + False + False + 0.5 + 0.5 + 0 + 0 + + + 0 + False + False + + + + + + + 0 + True + True + + + + + + True + <i>(c) 2003-2004 Ville Kangas &lt;ville@mirjami.net&gt;</i> + False + True + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + + + 0 + False + False + + + + + + + 0 + True + True + + + + + 0 + True + True + + + + + + + --- kipina-0.1.1.orig/xml/glade/main_window.glade +++ kipina-0.1.1/xml/glade/main_window.glade @@ -0,0 +1,967 @@ + + + + + + + True + Kipinä 0.1.1 + GTK_WINDOW_TOPLEVEL + GTK_WIN_POS_CENTER + False + True + False + ../pixmaps/runner.xpm + True + False + False + GDK_WINDOW_TYPE_HINT_NORMAL + GDK_GRAVITY_NORTH_WEST + + + + True + False + 0 + + + + True + + + + True + _File + True + + + + + + + True + Create a training log from scratch + _New Log + True + + + + True + gtk-new + 1 + 0.5 + 0.5 + 0 + 0 + + + + + + + + True + Open a training log. + _Open Log + True + + + + True + gtk-open + 1 + 0.5 + 0.5 + 0 + 0 + + + + + + + + True + + + + + + True + Save the log. + _Save Log + True + + + + True + gtk-save + 1 + 0.5 + 0.5 + 0 + 0 + + + + + + + + True + Save Log _As... + True + + + + True + gtk-save-as + 1 + 0.5 + 0.5 + 0 + 0 + + + + + + + + + + + + + _Import + True + + + + + + _Export + True + + + + + + True + + + + + + True + Exit program. + _Quit + True + + + + True + gtk-quit + 1 + 0.5 + 0.5 + 0 + 0 + + + + + + + + + + + + True + _Edit + True + + + + + + + True + _Preferences + True + + + + True + gtk-preferences + 1 + 0.5 + 0.5 + 0 + 0 + + + + + + + + + + + + True + _View + True + + + + + + + True + Status_bar + True + True + + + + + + True + _Toolbar + True + False + + + + + + True + Tree _View + True + True + + + + + + True + + + + + + True + _Day + True + False + + + + + + True + _Week + True + False + menu_view_day + + + + + + True + _Month + True + False + menu_view_day + + + + + + True + _Year + True + False + menu_view_day + + + + + + True + _All time + True + True + menu_view_day + + + + + + True + + + + + + True + _Calendar + True + False + + + + + + True + _List + True + False + menu_view_calendar + + + + + + True + _Statistics + True + False + menu_view_calendar + + + + + + True + C_hart + True + True + menu_view_calendar + + + + + + + + + + True + _Log + True + + + + + + + True + _Add Workout + True + + + + True + gtk-add + 1 + 0.5 + 0.5 + 0 + 0 + + + + + + + + True + Add _Split Workout + True + + + + True + gtk-add + 1 + 0.5 + 0.5 + 0 + 0 + + + + + + + + True + Add _Comment + True + + + + True + gtk-add + 1 + 0.5 + 0.5 + 0 + 0 + + + + + + + + True + _Remove Entry + True + + + + True + gtk-remove + 1 + 0.5 + 0.5 + 0 + 0 + + + + + + + + + + + + True + _Calendar + True + + + + + + + True + + 1 month + True + + + + True + gtk-go-forward + 1 + 0.5 + 0.5 + 0 + 0 + + + + + + + + True + + 1 week + True + + + + True + gtk-go-forward + 1 + 0.5 + 0.5 + 0 + 0 + + + + + + + + True + + 1 day + True + + + + True + gtk-go-forward + 1 + 0.5 + 0.5 + 0 + 0 + + + + + + + + True + - 1 month + True + + + + True + gtk-go-back + 1 + 0.5 + 0.5 + 0 + 0 + + + + + + + + True + - 1 week + True + + + + True + gtk-go-back + 1 + 0.5 + 0.5 + 0 + 0 + + + + + + + + True + - 1 day + True + + + + True + gtk-go-back + 1 + 0.5 + 0.5 + 0 + 0 + + + + + + + + True + _Today + True + + + + True + gtk-jump-to + 1 + 0.5 + 0.5 + 0 + 0 + + + + + + + + + + + + True + _Help + True + + + + + + + True + _About + True + + + + + + + + + 0 + False + False + + + + + + True + False + 0 + + + + GTK_ORIENTATION_HORIZONTAL + GTK_TOOLBAR_ICONS + True + True + + + + True + New log + True + gtk-new + True + True + False + + + False + True + + + + + + True + Open + True + gtk-open + True + True + False + + + False + True + + + + + + True + Save + True + gtk-save + True + True + False + + + False + True + + + + + + True + True + True + False + + + + True + + + + + False + False + + + + + + True + year + True + ../pixmaps/yearview.xpm + True + True + False + + + False + True + + + + + + True + week + True + ../pixmaps/weekview.xpm + True + True + False + + + False + True + + + + + + True + month + True + ../pixmaps/monthview.xpm + True + True + False + + + False + True + + + + + + True + day + True + ../pixmaps/dayview.xpm + True + True + False + + + False + True + + + + + + True + True + True + False + + + + True + + + + + False + False + + + + + + True + Create HTML-statistics + HTML + True + gtk-convert + True + True + False + + + False + True + + + + + 0 + True + True + + + + + 0 + False + True + + + + + + 6 + True + False + 6 + + + + True + False + 6 + + + + True + + False + True + GTK_JUSTIFY_LEFT + False + False + 0 + 0.44 + 0 + 0 + + + 0 + False + False + + + + + + True + True + GTK_RELIEF_NORMAL + True + + + + True + gtk-go-forward + 4 + 0.5 + 0.5 + 0 + 0 + + + + + 0 + False + False + GTK_PACK_END + + + + + + True + True + GTK_RELIEF_NORMAL + True + + + + True + gtk-go-back + 4 + 0.5 + 0.5 + 0 + 0 + + + + + 0 + False + False + GTK_PACK_END + + + + + 0 + False + False + + + + + + True + False + 0 + + + + True + True + False + + + + True + True + 1 + + + + + + + + + + + + + 0 + True + True + + + + + 0 + True + True + + + + + 0 + True + True + + + + + + + --- kipina-0.1.1.orig/xml/glade/preferences.glade +++ kipina-0.1.1/xml/glade/preferences.glade @@ -0,0 +1,1113 @@ + + + + + + + True + window1 + GTK_WINDOW_TOPLEVEL + GTK_WIN_POS_NONE + False + True + False + True + False + False + GDK_WINDOW_TYPE_HINT_NORMAL + GDK_GRAVITY_NORTH_WEST + + + + True + False + 0 + + + + True + True + True + True + GTK_POS_TOP + False + False + + + + 12 + True + False + 0 + + + + True + <b>General settings</b> + False + True + GTK_JUSTIFY_LEFT + False + False + 0 + 0.5 + 0 + 0 + + + 0 + False + False + + + + + + 12 + True + 2 + 3 + False + 6 + 12 + + + + True + True + True + True + 0 + + True + * + False + + + 1 + 2 + 0 + 1 + + + + + + + True + True + GTK_RELIEF_NORMAL + True + + + + True + 0.5 + 0.5 + 0 + 0 + 0 + 0 + 0 + 0 + + + + True + False + 2 + + + + True + gtk-open + 4 + 0.5 + 0.5 + 0 + 0 + + + 0 + False + False + + + + + + True + Browse... + True + False + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + + + 0 + False + False + + + + + + + + + 2 + 3 + 0 + 1 + fill + + + + + + + True + True + True + True + 0 + + True + * + False + + + 1 + 2 + 1 + 2 + + + + + + + True + True + GTK_RELIEF_NORMAL + True + + + + True + 0.5 + 0.5 + 0 + 0 + 0 + 0 + 0 + 0 + + + + True + False + 2 + + + + True + gtk-open + 4 + 0.5 + 0.5 + 0 + 0 + + + 0 + False + False + + + + + + True + Browse... + True + False + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + + + 0 + False + False + + + + + + + + + 2 + 3 + 1 + 2 + fill + + + + + + + True + Default directory to find stuff: + False + False + GTK_JUSTIFY_LEFT + False + False + 0 + 0.5 + 0 + 0 + + + 0 + 1 + 0 + 1 + fill + + + + + + + True + Directory to output HTML stuff + False + False + GTK_JUSTIFY_LEFT + False + False + 0 + 0.5 + 0 + 0 + + + 0 + 1 + 1 + 2 + fill + + + + + + 0 + False + True + + + + + + True + False + 0 + + + + True + <b>User interface</b> + False + True + GTK_JUSTIFY_LEFT + False + False + 0 + 0.5 + 0 + 0 + + + 0 + False + False + + + + + + 12 + True + False + 0 + + + + True + True + Save window geometry at exit. + True + GTK_RELIEF_NORMAL + True + False + False + True + + + 0 + False + False + + + + + 0 + True + True + + + + + 0 + False + False + + + + + False + True + + + + + + True + False + 2 + + + + True + gtk-preferences + 4 + 0.5 + 0.5 + 0 + 0 + + + 0 + True + True + + + + + + True + General settings + False + False + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + + + 0 + False + False + + + + + tab + + + + + + 12 + True + False + 0 + + + + True + False + 0 + + + + True + <b>Show in Statusbar: </b> + False + True + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + + + 0 + False + False + + + + + 0 + False + False + + + + + + 12 + True + False + 6 + + + + True + True + Number of Entries + True + GTK_RELIEF_NORMAL + True + False + False + True + + + 0 + False + False + + + + + + True + True + Number of Workouts + True + GTK_RELIEF_NORMAL + True + False + False + True + + + 0 + False + False + + + + + + True + True + Number of Comments + True + GTK_RELIEF_NORMAL + True + False + False + True + + + 0 + False + False + + + + + + True + True + Total Distance + True + GTK_RELIEF_NORMAL + True + False + False + True + + + 0 + False + False + + + + + + True + True + Total Duration + True + GTK_RELIEF_NORMAL + True + False + False + True + + + 0 + False + False + + + + + + True + True + View Type + True + GTK_RELIEF_NORMAL + True + False + False + True + + + 0 + False + False + + + + + + True + True + View Name + True + GTK_RELIEF_NORMAL + True + False + False + True + + + 0 + False + False + + + + + 0 + False + True + + + + + False + True + + + + + + True + Statusbar + False + False + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + + + tab + + + + + + 12 + True + False + 0 + + + + True + <b>User specific details</b> + False + True + GTK_JUSTIFY_LEFT + False + False + 0 + 0.5 + 0 + 0 + + + 0 + False + True + + + + + + 12 + True + False + 12 + + + + True + Detail: + False + False + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + + + 0 + False + False + + + + + + True + True + True + True + 0 + + True + * + False + + + 0 + True + True + + + + + + True + False + 6 + + + + True + True + gtk-add + True + GTK_RELIEF_NORMAL + True + + + 0 + False + True + GTK_PACK_END + + + + + + True + True + gtk-remove + True + GTK_RELIEF_NORMAL + True + + + 0 + False + True + GTK_PACK_END + + + + + 0 + False + True + + + + + 0 + False + True + + + + + + 12 + True + True + GTK_POLICY_AUTOMATIC + GTK_POLICY_AUTOMATIC + GTK_SHADOW_IN + GTK_CORNER_TOP_LEFT + + + + True + True + True + False + True + True + + + + + 0 + True + True + + + + + False + True + + + + + + True + Details + False + False + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + + + tab + + + + + + 12 + True + False + 0 + + + + True + <b>User specific sports</b> + False + True + GTK_JUSTIFY_LEFT + False + False + 0 + 0.5 + 0 + 0 + + + 0 + False + True + + + + + + 12 + True + False + 12 + + + + True + Sport: + False + False + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + + + 0 + False + False + + + + + + True + True + True + True + 0 + + True + * + False + + + 0 + True + True + + + + + + True + False + 6 + + + + True + True + gtk-remove + True + GTK_RELIEF_NORMAL + True + + + 0 + False + False + + + + + + True + True + gtk-add + True + GTK_RELIEF_NORMAL + True + + + 0 + False + False + + + + + 0 + False + True + + + + + 0 + False + True + + + + + + 12 + True + True + GTK_POLICY_AUTOMATIC + GTK_POLICY_AUTOMATIC + GTK_SHADOW_IN + GTK_CORNER_TOP_LEFT + + + + True + True + True + False + True + True + + + + + 0 + True + True + + + + + False + True + + + + + + True + Sports + False + False + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + + + tab + + + + + + 12 + True + False + 0 + + + + True + <b>Plugins</b> + False + True + GTK_JUSTIFY_LEFT + False + False + 0 + 0.5 + 0 + 0 + + + 0 + False + False + + + + + + 12 + True + True + GTK_POLICY_AUTOMATIC + GTK_POLICY_AUTOMATIC + GTK_SHADOW_IN + GTK_CORNER_TOP_LEFT + + + + True + True + True + False + False + True + + + + + 0 + True + True + + + + + False + True + + + + + + True + Plugins + False + False + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + + + tab + + + + + 0 + True + True + + + + + + + --- kipina-0.1.1.orig/config.sub +++ kipina-0.1.1/config.sub @@ -1,9 +1,10 @@ #! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -# 2000, 2001, 2002, 2003 Free Software Foundation, Inc. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, +# Inc. -timestamp='2004-03-12' +timestamp='2007-01-18' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software @@ -21,14 +22,15 @@ # # 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. - +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA +# 02110-1301, 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. + # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. # @@ -70,7 +72,7 @@ version="\ GNU config.sub ($timestamp) -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO @@ -83,11 +85,11 @@ while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) - echo "$timestamp" ; exit 0 ;; + echo "$timestamp" ; exit ;; --version | -v ) - echo "$version" ; exit 0 ;; + echo "$version" ; exit ;; --help | --h* | -h ) - echo "$usage"; exit 0 ;; + echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. @@ -99,7 +101,7 @@ *local*) # First pass through any local machine types. echo $1 - exit 0;; + exit ;; * ) break ;; @@ -118,8 +120,9 @@ # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in - nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \ - kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) + nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ + uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ + storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; @@ -145,7 +148,7 @@ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ - -apple | -axis) + -apple | -axis | -knuth | -cray) os= basic_machine=$1 ;; @@ -170,6 +173,10 @@ -hiux*) os=-hiuxwe2 ;; + -sco6) + os=-sco5v6 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` @@ -186,6 +193,10 @@ # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; + -sco5v6*) + # Don't forget version if it is 3.2v4 or newer. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` @@ -230,14 +241,16 @@ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ - | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ + | bfin \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx \ - | fr30 | frv \ + | fido | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ - | m32r | m32rle | m68000 | m68k | m88k | mcore \ + | m32c | m32r | m32rle | m68000 | m68k | m88k \ + | maxq | mb | microblaze | mcore | mep \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ @@ -246,6 +259,7 @@ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ + | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ @@ -254,20 +268,24 @@ | mipsisa64sr71k | mipsisa64sr71kel \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ + | mt \ | msp430 \ + | nios | nios2 \ | ns16k | ns32k \ - | openrisc | or32 \ + | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | pyramid \ - | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ + | score \ + | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ - | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \ - | strongarm \ + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ + | spu | strongarm \ | tahoe | thumb | tic4x | tic80 | tron \ | v850 | v850e \ | we32k \ - | x86 | xscale | xstormy16 | xtensa \ + | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ | z8k) basic_machine=$basic_machine-unknown ;; @@ -278,6 +296,9 @@ ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; + ms1) + basic_machine=mt-unknown + ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and @@ -297,20 +318,20 @@ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ - | avr-* \ - | bs2000-* \ + | avr-* | avr32-* \ + | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ - | clipper-* | cydra-* \ + | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ - | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ - | m32r-* | m32rle-* \ + | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ - | m88110-* | m88k-* | mcore-* \ + | m88110-* | m88k-* | maxq-* | mcore-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ @@ -319,6 +340,7 @@ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ + | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ @@ -326,24 +348,28 @@ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipstx39-* | mipstx39el-* \ + | mmix-* \ + | mt-* \ | msp430-* \ - | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \ + | nios-* | nios2-* \ + | none-* | np1-* | ns16k-* | ns32k-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | pyramid-* \ | romp-* | rs6000-* \ - | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ + | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ - | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ - | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ + | sparclite-* \ + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ | tahoe-* | thumb-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tron-* \ | v850-* | v850e-* | vax-* \ | we32k-* \ - | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \ - | xtensa-* \ + | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ + | xstormy16-* | xtensa-* \ | ymp-* \ | z8k-*) ;; @@ -445,6 +471,10 @@ basic_machine=j90-cray os=-unicos ;; + craynv) + basic_machine=craynv-cray + os=-unicosmp + ;; cr16c) basic_machine=cr16c-unknown os=-elf @@ -452,6 +482,9 @@ crds | unos) basic_machine=m68k-crds ;; + crisv32 | crisv32-* | etraxfs*) + basic_machine=crisv32-axis + ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; @@ -481,6 +514,10 @@ basic_machine=m88k-motorola os=-sysv3 ;; + djgpp) + basic_machine=i586-pc + os=-msdosdjgpp + ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx @@ -659,10 +696,6 @@ mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; - mmix*) - basic_machine=mmix-knuth - os=-mmixware - ;; monitor) basic_machine=m68k-rom68k os=-coff @@ -675,6 +708,9 @@ basic_machine=i386-pc os=-msdos ;; + ms1-*) + basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` + ;; mvs) basic_machine=i370-ibm os=-mvs @@ -743,10 +779,6 @@ np1) basic_machine=np1-gould ;; - nv1) - basic_machine=nv1-cray - os=-unicosmp - ;; nsr-tandem) basic_machine=nsr-tandem ;; @@ -754,9 +786,8 @@ basic_machine=hppa1.1-oki os=-proelf ;; - or32 | or32-*) + openrisc | openrisc-*) basic_machine=or32-unknown - os=-coff ;; os400) basic_machine=powerpc-ibm @@ -787,6 +818,12 @@ pc532 | pc532-*) basic_machine=ns32k-pc532 ;; + pc98) + basic_machine=i386-pc + ;; + pc98-*) + basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; @@ -843,6 +880,10 @@ basic_machine=i586-unknown os=-pw32 ;; + rdos) + basic_machine=i386-pc + os=-rdos + ;; rom68k) basic_machine=m68k-rom68k os=-coff @@ -869,6 +910,10 @@ sb1el) basic_machine=mipsisa64sb1el-unknown ;; + sde) + basic_machine=mipsisa32-sde + os=-elf + ;; sei) basic_machine=mips-sei os=-seiux @@ -880,6 +925,9 @@ basic_machine=sh-hitachi os=-hms ;; + sh5el) + basic_machine=sh5le-unknown + ;; sh64) basic_machine=sh64-unknown ;; @@ -1029,6 +1077,10 @@ basic_machine=hppa1.1-winbond os=-proelf ;; + xbox) + basic_machine=i686-pc + os=-mingw32 + ;; xps | xps100) basic_machine=xps100-honeywell ;; @@ -1059,6 +1111,9 @@ romp) basic_machine=romp-ibm ;; + mmix) + basic_machine=mmix-knuth + ;; rs6000) basic_machine=rs6000-ibm ;; @@ -1075,13 +1130,10 @@ we32k) basic_machine=we32k-att ;; - sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele) + sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; - sh64) - basic_machine=sh64-unknown - ;; - sparc | sparcv8 | sparcv9 | sparcv9b) + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) basic_machine=sparc-sun ;; cydra) @@ -1154,20 +1206,23 @@ | -aos* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ - | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \ + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ + | -openbsd* | -solidbsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* \ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ - | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \ + | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ + | -uxpv* | -beos* | -mpeix* | -udk* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ - | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*) + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ + | -skyos* | -haiku* | -rdos* | -toppers* | -drops*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) @@ -1185,7 +1240,7 @@ os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ - | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) @@ -1294,6 +1349,9 @@ -kaos*) os=-kaos ;; + -zvmoe) + os=-zvmoe + ;; -none) ;; *) @@ -1316,6 +1374,12 @@ # system, and we'll never get to this point. case $basic_machine in + score-*) + os=-elf + ;; + spu-*) + os=-elf + ;; *-acorn) os=-riscix1.2 ;; @@ -1325,9 +1389,9 @@ arm*-semi) os=-aout ;; - c4x-* | tic4x-*) - os=-coff - ;; + c4x-* | tic4x-*) + os=-coff + ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 @@ -1353,6 +1417,9 @@ m68*-cisco) os=-aout ;; + mep-*) + os=-elf + ;; mips*-cisco) os=-elf ;; @@ -1371,9 +1438,15 @@ *-be) os=-beos ;; + *-haiku) + os=-haiku + ;; *-ibm) os=-aix ;; + *-knuth) + os=-mmixware + ;; *-wec) os=-proelf ;; @@ -1539,7 +1612,7 @@ esac echo $basic_machine$os -exit 0 +exit # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) --- kipina-0.1.1.orig/debian/kipina.install +++ kipina-0.1.1/debian/kipina.install @@ -0,0 +1,35 @@ +usr/bin/kipina +usr/share/man/man1/ +usr/share/kipina/xsl/i18n.xml +usr/share/kipina/xsl/log.css +usr/share/kipina/xsl/horiz.png +usr/share/kipina/xsl/date-routines.xsl +usr/share/kipina/xsl/kipina-report.xsl +usr/share/kipina/glade/ +usr/share/kipina/glade/calendar_entry_info_dialog.glade +usr/share/kipina/glade/transferdialog.glade +usr/share/kipina/glade/main_window.glade +usr/share/kipina/glade/new_split_workout_dialog.glade +usr/share/kipina/glade/new_workout.glade +usr/share/kipina/glade/new_comment.glade +usr/share/kipina/glade/statistics.glade +usr/share/kipina/glade/about.glade +usr/share/kipina/glade/preferences.glade +usr/share/kipina/glade/popups.glade +usr/share/kipina/glade/workout_info_dialog.glade +usr/share/kipina/default_config.xml +usr/share/kipina/pixmaps/ +usr/share/kipina/pixmaps/monthview.xpm +usr/share/kipina/pixmaps/weekview.xpm +usr/share/kipina/pixmaps/yearview.xpm +usr/share/kipina/pixmaps/graphics.xpm +usr/share/kipina/pixmaps/runner.xpm +usr/share/kipina/pixmaps/dayview.xpm +usr/share/locale/ +usr/share/locale/fi/ +usr/share/locale/fi/LC_MESSAGES/ +usr/share/locale/fi/LC_MESSAGES/kipina.mo +usr/share/applications/ +usr/share/applications/kipina.desktop +usr/share/pixmaps/ +usr/share/pixmaps/kipina.png --- kipina-0.1.1.orig/debian/rules +++ kipina-0.1.1/debian/rules @@ -0,0 +1,76 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +config.status: configure + dh_testdir + CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=$(DESTDIR)/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info + +build: build-stamp + +build-stamp: config.status + dh_testdir + + $(MAKE) + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -rf build-stamp doc/reference/html/*.png + + -$(MAKE) distclean +ifneq "$(wildcard /usr/share/misc/config.sub)" "" + cp -f /usr/share/misc/config.sub config.sub +endif +ifneq "$(wildcard /usr/share/misc/config.guess)" "" + cp -f /usr/share/misc/config.guess config.guess +endif + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + mkdir -p $(CURDIR)/debian/tmp/usr/share/pixmaps + install -c -m 0644 debian/kipina.xpm $(CURDIR)/debian/tmp/usr/share/pixmaps + $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp + +binary-indep: build install + +binary-arch: build install + dh_testdir + dh_testroot + dh_install --sourcedir=$(CURDIR)/debian/tmp + dh_installchangelogs ChangeLog + dh_installdocs TODO + dh_installmenu + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- kipina-0.1.1.orig/debian/compat +++ kipina-0.1.1/debian/compat @@ -0,0 +1 @@ +4 --- kipina-0.1.1.orig/debian/copyright +++ kipina-0.1.1/debian/copyright @@ -0,0 +1,13 @@ +This package was debianized by David Moreno Garza on +Sun, 11 Jul 2004 19:36:11 -0500. + +It was downloaded from http://mirjami.net/~ville/kipina + +Upstream Author: Ville Kangas + +Copyright: + +You are free to distribute this software under the terms of the GNU +General Public License. On Debian systems, the complete text of the GNU +General Public License can be found in the file +`/usr/share/common-licenses/GPL'. \ No newline at end of file --- kipina-0.1.1.orig/debian/changelog +++ kipina-0.1.1/debian/changelog @@ -0,0 +1,41 @@ +kipina (0.1.1-4) unstable; urgency=low + + * QA upload. + * kipina.1: Replace Latin-1 with named characters. + * debian/menu: Convert to ASCII. Thanks to Bill Allombert. + Closes: #428522. + + -- Matej Vela Tue, 12 Jun 2007 12:56:28 +0200 + +kipina (0.1.1-3) unstable; urgency=low + + * QA upload. + * Set maintainer to QA Group; Orphaned: #391418 + * Fix spelling mistake in Package Description + Closes: #364161 + * Conforms with latest Standards Version 3.7.2 + + -- Michael Ablassmeier Thu, 19 Oct 2006 13:12:05 +0200 + +kipina (0.1.1-2) unstable; urgency=low + + * New maintainer address. + * Removed kipina-dev-doc since it's useless and buggy + according to upstream (Closes: #291786). + * Fixed version on about dialog (Closes: #268887). + + -- David Moreno Garza Tue, 23 Aug 2005 23:27:09 -0500 + +kipina (0.1.1-1) unstable; urgency=low + + * New upstream release + + -- David Moreno Garza Sat, 31 Jul 2004 20:12:31 -0500 + +kipina (0.1.0-1) unstable; urgency=low + + * Initial Release (Closes: #256117). + * NMU: Sponsored by Christian Kurz . + + -- David Moreno Garza Sun, 11 Jul 2004 19:36:11 -0500 + --- kipina-0.1.1.orig/debian/control +++ kipina-0.1.1/debian/control @@ -0,0 +1,15 @@ +Source: kipina +Section: utils +Priority: optional +Maintainer: Debian QA Group +Build-Depends: debhelper (>= 4.0.0), pkg-config, libgtk2.0-dev, libglade2-dev, libxslt1-dev, libxml-parser-perl +Standards-Version: 3.7.2 + +Package: kipina +Architecture: any +Depends: ${shlibs:Depends} +Replaces: kipina-dev-doc +Description: training program to log physical activities of athletes + Kipina is a free training log software for athletes to log their physical + activities. It is intended to be easy to use but still powerful tool to + analyze your training data. --- kipina-0.1.1.orig/debian/menu +++ kipina-0.1.1/debian/menu @@ -0,0 +1,6 @@ +?package(kipina):\ + needs="X11"\ + section="Apps/Tools"\ + title="Kipina training log"\ + command="/usr/bin/kipina"\ + icon="/usr/share/pixmaps/kipina.xpm" --- kipina-0.1.1.orig/debian/kipina.xpm +++ kipina-0.1.1/debian/kipina.xpm @@ -0,0 +1,62 @@ +/* XPM */ +static char *kipina[] = { +/* columns rows colors chars-per-pixel */ +"32 32 24 1", +" c black", +". c #191919191919", +"X c gray20", +"o c #000000007F7F", +"O c #00007F7F0000", +"+ c #00007F7F7F7F", +"@ c #7F7F00000000", +"# c #7F7F00007F7F", +"$ c #7F7F7F7F0000", +"% c #4C4C4C4C4C4C", +"& c #666666666767", +"* c gray50", +"= c blue", +"- c green", +"; c cyan", +": c red", +"> c magenta", +", c yellow", +"< c gray60", +"1 c #B2B2B2B2B2B2", +"2 c gray80", +"3 c gray90", +"4 c gray100", +"5 c None", +/* pixels */ +"555555555555<<255555555555555555", +"555555555555. 25555555555555555", +"555555555553 15555555555555555", +"555555555552 .55555555555555555", +"555555555555% X55555555555555555", +"5555555555555 X1555555555555555", +"5555555555555 .155555555555555", +"55555555555** .25555555555555", +"55555555555 X..3555555555555", +"55555555555. # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. @@ -53,7 +56,7 @@ GNU config.guess ($timestamp) Originally written by Per Bothner. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO @@ -66,11 +69,11 @@ while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) - echo "$timestamp" ; exit 0 ;; + echo "$timestamp" ; exit ;; --version | -v ) - echo "$version" ; exit 0 ;; + echo "$version" ; exit ;; --help | --h* | -h ) - echo "$usage"; exit 0 ;; + echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. @@ -104,7 +107,7 @@ trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; - { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; @@ -123,7 +126,7 @@ ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; -esac ;' +esac ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) @@ -158,6 +161,7 @@ arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; + sh5el) machine=sh5le-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched @@ -196,64 +200,23 @@ # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" - exit 0 ;; - amd64:OpenBSD:*:*) - echo x86_64-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - amiga:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - arc:OpenBSD:*:*) - echo mipsel-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - cats:OpenBSD:*:*) - echo arm-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - hp300:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mac68k:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - macppc:OpenBSD:*:*) - echo powerpc-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mvme68k:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mvme88k:OpenBSD:*:*) - echo m88k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mvmeppc:OpenBSD:*:*) - echo powerpc-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - pegasos:OpenBSD:*:*) - echo powerpc-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - pmax:OpenBSD:*:*) - echo mipsel-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - sgi:OpenBSD:*:*) - echo mipseb-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - sun3:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - wgrisc:OpenBSD:*:*) - echo mipsel-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; + exit ;; *:OpenBSD:*:*) - echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} + exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} - exit 0 ;; + exit ;; + *:SolidBSD:*:*) + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} + exit ;; macppc:MirBSD:*:*) - echo powerppc-unknown-mirbsd${UNAME_RELEASE} - exit 0 ;; + echo powerpc-unknown-mirbsd${UNAME_RELEASE} + exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} - exit 0 ;; + exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) @@ -306,40 +269,43 @@ # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` - exit 0 ;; - Alpha*:OpenVMS:*:*) - echo alpha-hp-vms - exit 0 ;; + exit ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix - exit 0 ;; + exit ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 - exit 0 ;; + exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 - exit 0;; + exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos - exit 0 ;; + exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos - exit 0 ;; + exit ;; *:OS/390:*:*) echo i370-ibm-openedition - exit 0 ;; + exit ;; + *:z/VM:*:*) + echo s390-ibm-zvmoe + exit ;; *:OS400:*:*) echo powerpc-ibm-os400 - exit 0 ;; + exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} - exit 0;; + exit ;; + arm:riscos:*:*|arm:RISCOS:*:*) + echo arm-unknown-riscos + exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp - exit 0;; + exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then @@ -347,32 +313,32 @@ else echo pyramid-pyramid-bsd fi - exit 0 ;; + exit ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 - exit 0 ;; + exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 - exit 0 ;; - DRS?6000:UNIX_SV:4.2*:7*) + exit ;; + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in - sparc) echo sparc-icl-nx7 && exit 0 ;; + sparc) echo sparc-icl-nx7; exit ;; esac ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; + exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; + exit ;; i86pc:SunOS:5.*:*) echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; + exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; + exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) @@ -381,10 +347,10 @@ esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` - exit 0 ;; + exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} - exit 0 ;; + exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 @@ -396,10 +362,10 @@ echo sparc-sun-sunos${UNAME_RELEASE} ;; esac - exit 0 ;; + exit ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} - exit 0 ;; + exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor @@ -410,40 +376,40 @@ # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} - exit 0 ;; + exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} - exit 0 ;; + exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} - exit 0 ;; + exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} - exit 0 ;; + exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} - exit 0 ;; + exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} - exit 0 ;; + exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} - exit 0 ;; + exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} - exit 0 ;; + exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 - exit 0 ;; + exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} - exit 0 ;; + exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} - exit 0 ;; + exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} - exit 0 ;; + exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c @@ -467,32 +433,33 @@ exit (-1); } EOF - $CC_FOR_BUILD -o $dummy $dummy.c \ - && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ - && exit 0 + $CC_FOR_BUILD -o $dummy $dummy.c && + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && + SYSTEM_NAME=`$dummy $dummyarg` && + { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} - exit 0 ;; + exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax - exit 0 ;; + exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax - exit 0 ;; + exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax - exit 0 ;; + exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix - exit 0 ;; + exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 - exit 0 ;; + exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 - exit 0 ;; + exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 - exit 0 ;; + exit ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` @@ -508,29 +475,29 @@ else echo i586-dg-dgux${UNAME_RELEASE} fi - exit 0 ;; + exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 - exit 0 ;; + exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 - exit 0 ;; + exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 - exit 0 ;; + exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd - exit 0 ;; + exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` - exit 0 ;; + exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. - echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id - exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix - exit 0 ;; + exit ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` @@ -538,7 +505,7 @@ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} - exit 0 ;; + exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval $set_cc_for_build @@ -553,14 +520,18 @@ exit(0); } EOF - $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 - echo rs6000-ibm-aix3.2.5 + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` + then + echo "$SYSTEM_NAME" + else + echo rs6000-ibm-aix3.2.5 + fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi - exit 0 ;; + exit ;; *:AIX:*:[45]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then @@ -574,28 +545,28 @@ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} - exit 0 ;; + exit ;; *:AIX:*:*) echo rs6000-ibm-aix - exit 0 ;; + exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 - exit 0 ;; + exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to - exit 0 ;; # report: romp-ibm BSD 4.3 + exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx - exit 0 ;; + exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 - exit 0 ;; + exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd - exit 0 ;; + exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 - exit 0 ;; + exit ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in @@ -657,9 +628,19 @@ esac if [ ${HP_ARCH} = "hppa2.0w" ] then - # avoid double evaluation of $set_cc_for_build - test -n "$CC_FOR_BUILD" || eval $set_cc_for_build - if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null + eval $set_cc_for_build + + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler + # generating 64-bit code. GNU and HP use different nomenclature: + # + # $ CC_FOR_BUILD=cc ./config.guess + # => hppa2.0w-hp-hpux11.23 + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess + # => hppa64-hp-hpux11.23 + + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | + grep __LP64__ >/dev/null then HP_ARCH="hppa2.0w" else @@ -667,11 +648,11 @@ fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} - exit 0 ;; + exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} - exit 0 ;; + exit ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c @@ -699,166 +680,182 @@ exit (0); } EOF - $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && + { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 - exit 0 ;; + exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd - exit 0 ;; + exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd - exit 0 ;; + exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix - exit 0 ;; + exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf - exit 0 ;; + exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf - exit 0 ;; + exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi - exit 0 ;; + exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites - exit 0 ;; + exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd - exit 0 ;; + exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi - exit 0 ;; + exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd - exit 0 ;; + exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd - exit 0 ;; + exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd - exit 0 ;; + exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit 0 ;; + exit ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' - exit 0 ;; + exit ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit 0 ;; + exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit 0 ;; + exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit 0 ;; + exit ;; *:UNICOS/mp:*:*) - echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit 0 ;; + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" - exit 0 ;; + exit ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" - exit 0 ;; + exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} - exit 0 ;; + exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} - exit 0 ;; + exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} - exit 0 ;; + exit ;; *:FreeBSD:*:*) - # Determine whether the default compiler uses glibc. - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #include - #if __GLIBC__ >= 2 - LIBC=gnu - #else - LIBC= - #endif -EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` - # GNU/KFreeBSD systems have a "k" prefix to indicate we are using - # FreeBSD's kernel, but not the complete OS. - case ${LIBC} in gnu) kernel_only='k' ;; esac - echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC} - exit 0 ;; + case ${UNAME_MACHINE} in + pc98) + echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + amd64) + echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + *) + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + esac + exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin - exit 0 ;; - i*:MINGW*:*) + exit ;; + *:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 - exit 0 ;; + exit ;; + i*:windows32*:*) + # uname -m includes "-pc" on this system. + echo ${UNAME_MACHINE}-mingw32 + exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 - exit 0 ;; - x86:Interix*:[34]*) - echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' - exit 0 ;; + exit ;; + *:Interix*:[3456]*) + case ${UNAME_MACHINE} in + x86) + echo i586-pc-interix${UNAME_RELEASE} + exit ;; + EM64T | authenticamd) + echo x86_64-unknown-interix${UNAME_RELEASE} + exit ;; + esac ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks - exit 0 ;; + exit ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? echo i586-pc-interix - exit 0 ;; + exit ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin - exit 0 ;; + exit ;; + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) + echo x86_64-unknown-cygwin + exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin - exit 0 ;; + exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; + exit ;; *:GNU:*:*) # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` - exit 0 ;; + exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu - exit 0 ;; + exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix - exit 0 ;; + exit ;; arm*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu - exit 0 ;; + exit ;; + avr32*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; cris:Linux:*:*) echo cris-axis-linux-gnu - exit 0 ;; + exit ;; + crisv32:Linux:*:*) + echo crisv32-axis-linux-gnu + exit ;; + frv:Linux:*:*) + echo frv-unknown-linux-gnu + exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu - exit 0 ;; + exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu - exit 0 ;; + exit ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu - exit 0 ;; + exit ;; mips:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c @@ -875,8 +872,12 @@ #endif #endif EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` - test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' + /^CPU/{ + s: ::g + p + }'`" + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; mips64:Linux:*:*) eval $set_cc_for_build @@ -894,15 +895,22 @@ #endif #endif EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` - test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' + /^CPU/{ + s: ::g + p + }'`" + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; + or32:Linux:*:*) + echo or32-unknown-linux-gnu + exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-gnu - exit 0 ;; + exit ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-gnu - exit 0 ;; + exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; @@ -916,7 +924,7 @@ objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} - exit 0 ;; + exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in @@ -924,25 +932,31 @@ PA8*) echo hppa2.0-unknown-linux-gnu ;; *) echo hppa-unknown-linux-gnu ;; esac - exit 0 ;; + exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-gnu - exit 0 ;; + exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux - exit 0 ;; + exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu - exit 0 ;; + exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu - exit 0 ;; + exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu - exit 0 ;; + exit ;; + vax:Linux:*:*) + echo ${UNAME_MACHINE}-dec-linux-gnu + exit ;; x86_64:Linux:*:*) echo x86_64-unknown-linux-gnu - exit 0 ;; + exit ;; + xtensa:Linux:*:*) + echo xtensa-unknown-linux-gnu + exit ;; i*86:Linux:*:*) # The BFD linker knows what the default object file format is, so # first see if it will tell us. cd to the root directory to prevent @@ -960,15 +974,15 @@ ;; a.out-i386-linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" - exit 0 ;; + exit ;; coff-i386) echo "${UNAME_MACHINE}-pc-linux-gnucoff" - exit 0 ;; + exit ;; "") # Either a pre-BFD a.out linker (linux-gnuoldld) or # one that does not give us useful --help. echo "${UNAME_MACHINE}-pc-linux-gnuoldld" - exit 0 ;; + exit ;; esac # Determine whether the default compiler is a.out or elf eval $set_cc_for_build @@ -985,7 +999,7 @@ LIBC=gnulibc1 # endif #else - #ifdef __INTEL_COMPILER + #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) LIBC=gnu #else LIBC=gnuaout @@ -995,16 +1009,23 @@ LIBC=dietlibc #endif EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` - test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0 - test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' + /^LIBC/{ + s: ::g + p + }'`" + test x"${LIBC}" != x && { + echo "${UNAME_MACHINE}-pc-linux-${LIBC}" + exit + } + test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. echo i386-sequent-sysv4 - exit 0 ;; + exit ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... @@ -1012,27 +1033,27 @@ # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} - exit 0 ;; + exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx - exit 0 ;; + exit ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop - exit 0 ;; + exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos - exit 0 ;; - i*86:syllable:*:*) + exit ;; + i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable - exit 0 ;; + exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) echo i386-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; + exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp - exit 0 ;; + exit ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then @@ -1040,15 +1061,16 @@ else echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi - exit 0 ;; - i*86:*:5:[78]*) + exit ;; + i*86:*:5:[678]*) + # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} - exit 0 ;; + exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi - exit 0 ;; + exit ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv - exit 0 ;; + exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv - exit 0 ;; + exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix - exit 0 ;; - M68*:*:R3V[567]*:*) - test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; - 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0) + exit ;; + M68*:*:R3V[5678]*:*) + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; + 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && echo i486-ncr-sysv4.3${OS_REL} && exit 0 + && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ - && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;; + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && echo i486-ncr-sysv4 && exit 0 ;; + && { echo i486-ncr-sysv4; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; + exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 - exit 0 ;; + exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; + exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; + exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; + exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} - exit 0 ;; + exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 - exit 0 ;; + exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 - exit 0 ;; + exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` @@ -1140,68 +1162,81 @@ else echo ns32k-sni-sysv fi - exit 0 ;; + exit ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 - exit 0 ;; + exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 - exit 0 ;; + exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 - exit 0 ;; + exit ;; + i*86:VOS:*:*) + # From Paul.Green@stratus.com. + echo ${UNAME_MACHINE}-stratus-vos + exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos - exit 0 ;; + exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} - exit 0 ;; + exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 - exit 0 ;; + exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi - exit 0 ;; + exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos - exit 0 ;; + exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos - exit 0 ;; + exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos - exit 0 ;; + exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} - exit 0 ;; + exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} - exit 0 ;; + exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} - exit 0 ;; + exit ;; + SX-7:SUPER-UX:*:*) + echo sx7-nec-superux${UNAME_RELEASE} + exit ;; + SX-8:SUPER-UX:*:*) + echo sx8-nec-superux${UNAME_RELEASE} + exit ;; + SX-8R:SUPER-UX:*:*) + echo sx8r-nec-superux${UNAME_RELEASE} + exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} - exit 0 ;; + exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} - exit 0 ;; + exit ;; *:Darwin:*:*) - case `uname -p` in - *86) UNAME_PROCESSOR=i686 ;; - powerpc) UNAME_PROCESSOR=powerpc ;; + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown + case $UNAME_PROCESSOR in + unknown) UNAME_PROCESSOR=powerpc ;; esac echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} - exit 0 ;; + exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then @@ -1209,22 +1244,25 @@ UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} - exit 0 ;; + exit ;; *:QNX:*:4*) echo i386-pc-qnx - exit 0 ;; + exit ;; + NSE-?:NONSTOP_KERNEL:*:*) + echo nse-tandem-nsk${UNAME_RELEASE} + exit ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} - exit 0 ;; + exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux - exit 0 ;; + exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv - exit 0 ;; + exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} - exit 0 ;; + exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 @@ -1235,31 +1273,47 @@ UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 - exit 0 ;; + exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 - exit 0 ;; + exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex - exit 0 ;; + exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 - exit 0 ;; + exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 - exit 0 ;; + exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 - exit 0 ;; + exit ;; *:ITS:*:*) echo pdp10-unknown-its - exit 0 ;; + exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} - exit 0 ;; + exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` - exit 0 ;; + exit ;; + *:*VMS:*:*) + UNAME_MACHINE=`(uname -p) 2>/dev/null` + case "${UNAME_MACHINE}" in + A*) echo alpha-dec-vms ; exit ;; + I*) echo ia64-dec-vms ; exit ;; + V*) echo vax-dec-vms ; exit ;; + esac ;; + *:XENIX:*:SysV) + echo i386-pc-xenix + exit ;; + i*86:skyos:*:*) + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' + exit ;; + i*86:rdos:*:*) + echo ${UNAME_MACHINE}-pc-rdos + exit ;; esac #echo '(No uname command or uname output not recognized.)' 1>&2 @@ -1291,7 +1345,7 @@ #endif #if defined (__arm) && defined (__acorn) && defined (__unix) - printf ("arm-acorn-riscix"); exit (0); + printf ("arm-acorn-riscix\n"); exit (0); #endif #if defined (hp300) && !defined (hpux) @@ -1380,11 +1434,12 @@ } EOF -$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0 +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && + { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; } +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } # Convex versions that predate uname can use getsysinfo(1) @@ -1393,22 +1448,22 @@ case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd - exit 0 ;; + exit ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi - exit 0 ;; + exit ;; c34*) echo c34-convex-bsd - exit 0 ;; + exit ;; c38*) echo c38-convex-bsd - exit 0 ;; + exit ;; c4*) echo c4-convex-bsd - exit 0 ;; + exit ;; esac fi @@ -1419,7 +1474,9 @@ the operating system you are using. It is advised that you download the most up to date version of the config scripts from - ftp://ftp.gnu.org/pub/gnu/config/ + http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess +and + http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub If the version you run ($0) is already up to date, please send the following data and any information you think might be --- kipina-0.1.1.orig/intltool-merge +++ kipina-0.1.1/intltool-merge @@ -0,0 +1,1255 @@ +#!/usr/bin/perl -w +# -*- Mode: perl; indent-tabs-mode: nil; c-basic-offset: 4 -*- + +# +# 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 +# Kenneth Christiansen +# Darin Adler +# +# Proper XML UTF-8'ification written by Cyrille Chepelov +# + +## Release information +my $PROGRAM = "intltool-merge"; +my $PACKAGE = "intltool"; +my $VERSION = "0.31.1"; + +## Loaded modules +use strict; +use Getopt::Long; +use Text::Wrap; +use File::Basename; + +my $must_end_tag = -1; +my $last_depth = -1; +my $translation_depth = -1; +my @tag_stack = (); +my @entered_tag = (); +my @translation_strings = (); +my $leading_space = ""; + +## 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 $MULTIPLE_OUTPUT = 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, + "multiple-output|m" => \$MULTIPLE_OUTPUT, + "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_output; + + &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) + -m, --multiple-output output one localized file per locale, instead of + a single file containing all localized elements + -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 . +_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 () + { + 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 () + { + ## 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"); + 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 = ; + } + 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 () + { + $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 < - < but not > - > because it seems its ok to have +## > in the entity. For further info please look at #84738. +sub entity_decode +{ + local ($_) = @_; + + s/'/'/g; # ' + s/"/"/g; # " + s/&/&/g; + s/</ 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 = ; + 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 + + +# Process tag attributes +# Only parameter is a HASH containing attributes -> values mapping +sub getAttributeString +{ + my $sub = shift; + my $do_translate = shift || 0; + my $language = shift || ""; + my $result = ""; + foreach my $e (reverse(sort(keys %{ $sub }))) { + my $key = $e; + my $string = $sub->{$e}; + my $quote = '"'; + + $string =~ s/^[\s]+//; + $string =~ s/[\s]+$//; + + if ($string =~ /^'.*'$/) + { + $quote = "'"; + } + $string =~ s/^['"]//g; + $string =~ s/['"]$//g; + + if ($do_translate && $key =~ /^_/) { + $key =~ s|^_||g; + if ($language) { + + # Handle translation + # + my $decode_string = entity_decode($string); + my $translation = $translations{$language, $decode_string}; + if ($translation) { + $translation = entity_encode($translation); + $string = $translation; + } + } + } + + $result .= " $key=$quote$string$quote"; + } + return $result; +} + +# Returns a translatable string from XML node, it works on contents of every node in XML::Parser tree +# doesn't support nesting of translatable tags (i.e. <_blah>this <_doh>doesn't work -- besides +# can you define the correct semantics for this?) +# + +sub getXMLstring +{ + my $ref = shift; + my @list = @{ $ref }; + my $result = ""; + + my $count = scalar(@list); + my $attrs = $list[0]; + my $index = 1; + while ($index < $count) { + my $type = $list[$index]; + my $content = $list[$index+1]; + if (! $type ) { + # We've got CDATA + if ($content) { + # lets strip the whitespace here, and *ONLY* here + $content =~ s/\s+/ /gs; + $result .= ($content); + } else { + #print "no cdata content when expected it\n"; # is this possible, is this ok? + # what to do if this happens? + # Did I mention that I hate XML::Parser tree style? + } + } else { + # We've got another element + $result .= "<$type"; + $result .= getAttributeString($attrs, 0); # no nested translatable elements + if ($content) { + my $subresult = getXMLstring($content); + if ($subresult) { + $result .= ">".$subresult . ""; + } else { + $result .= "/>"; + } + } else { + $result .= "/>"; + } + } + $index += 2; + } + return $result; +} + +sub traverse +{ + my $fh = shift; + my $nodename = shift; + my $content = shift; + my $language = shift || ""; + + if (!$nodename) { + if ($content =~ /^[\s]*$/) { + $leading_space .= $content; + } + print $fh $content; + } else { + # element + my @all = @{ $content }; + my $attrs = shift @all; + my $outattr = getAttributeString($attrs, 1, $language); + my $translate = 0; + + if ($nodename =~ /^_/) { + $translate = 1; + $nodename =~ s/^_//; + } + my $lookup = ''; + print $fh "<$nodename$outattr"; + if ($translate) { + $lookup = getXMLstring($content); + $lookup =~ s/^\s+//s; + $lookup =~ s/\s+$//s; + + if ($lookup) { + my $translation = $translations{$language, $lookup}; + if ($MULTIPLE_OUTPUT && $translation) { + print $fh " xml:lang=\"", $language, "\""; + print $fh ">", $translation, ""; + return; # this means there will be no same translation with xml:lang="$language"... + # if we want them both, just remove this "return" + } else { + print $fh ">$lookup"; + } + } else { + print $fh "/>"; + } + + + for my $lang (sort keys %po_files_by_lang) { + if ($MULTIPLE_OUTPUT && $lang ne "$language") { + next; + } + if ($lang) { + + # Handle translation + # + my $localattrs = getAttributeString($attrs, 1, $lang); + my $decode_string = ($lookup); #entity_decode($lookup); + my $translation = $translations{$lang, $decode_string}; + if ($translation) { + $translation = ($translation); + print $fh "\n"; + $leading_space =~ s/.*\n//g; + print $fh $leading_space; + print $fh "<", $nodename, " xml:lang=\"", $lang, "\"", $localattrs; + print $fh ">", $translation , ""; + } + } + } + + } else { + my $count = scalar(@all); + if ($count > 0) { + print $fh ">"; + } else { + print $fh "/>"; + } + my $index = 0; + while ($index < $count) { + my $type = $all[$index]; + my $rest = $all[$index+1]; + traverse($fh, $type, $rest, $language); + $index += 2; + } + if ($count > 0) { + print $fh ""; + } + } + } +} + +sub intltool_tree_char +{ + my $expat = shift; + my $text = shift; + my $clist = $expat->{Curlist}; + my $pos = $#$clist; + + # Use original_string so that we retain escaped entities + # in CDATA sections. + # + if ($pos > 0 and $clist->[$pos - 1] eq '0') { + $clist->[$pos] .= $expat->original_string(); + } else { + push @$clist, 0 => $expat->original_string(); + } +} + +sub intltool_tree_start +{ + my $expat = shift; + my $tag = shift; + my @origlist = (); + + # Use original_string so that we retain escaped entities + # in attribute values. We must convert the string to an + # @origlist array to conform to the structure of the Tree + # Style. + # + my @original_array = split /\x/, $expat->original_string(); + my $source = $expat->original_string(); + + # Remove leading tag. + # + $source =~ s|^\s*<\s*(\S+)||s; + + # Grab attribute key/value pairs and push onto @origlist array. + # + while ($source) + { + if ($source =~ /^\s*([\w:-]+)\s*[=]\s*["]/) + { + $source =~ s|^\s*([\w:-]+)\s*[=]\s*["]([^"]*)["]||s; + push @origlist, $1; + push @origlist, '"' . $2 . '"'; + } + elsif ($source =~ /^\s*([\w:-]+)\s*[=]\s*[']/) + { + $source =~ s|^\s*([\w:-]+)\s*[=]\s*[']([^']*)[']||s; + push @origlist, $1; + push @origlist, "'" . $2 . "'"; + } + else + { + last; + } + } + + my $ol = [ { @origlist } ]; + + push @{ $expat->{Lists} }, $expat->{Curlist}; + push @{ $expat->{Curlist} }, $tag => $ol; + $expat->{Curlist} = $ol; +} + +sub readXml +{ + my $filename = shift || return; + if(!-f $filename) { + die "ERROR Cannot find filename: $filename\n"; + } + + my $ret = eval 'require XML::Parser'; + if(!$ret) { + die "You must have XML::Parser installed to run $0\n\n"; + } + my $xp = new XML::Parser(Style => 'Tree'); + $xp->setHandlers(Char => \&intltool_tree_char); + $xp->setHandlers(Start => \&intltool_tree_start); + my $tree = $xp->parsefile($filename); + +# Hello thereHowdydo +# would be: +# [foo, [{}, head, [{id => "a"}, 0, "Hello ", em, [{}, 0, "there"]], bar, [{}, +# 0, "Howdy", ref, [{}]], 0, "do" ] ] + + return $tree; +} + +sub print_header +{ + my $infile = shift; + my $fh = shift; + my $source; + + if(!-f $infile) { + die "ERROR Cannot find filename: $infile\n"; + } + + print $fh qq{\n}; + { + local $/; + open DOCINPUT, "<${FILE}" or die; + $source = ; + close DOCINPUT; + } + if ($source =~ /()/s) + { + print $fh "$1\n"; + } + elsif ($source =~ /(]*>)/s) + { + print $fh "$1\n"; + } +} + +sub parseTree +{ + my $fh = shift; + my $ref = shift; + my $language = shift || ""; + + my $name = shift @{ $ref }; + my $cont = shift @{ $ref }; + traverse($fh, $name, $cont, $language); +} + +sub xml_merge_output +{ + my $source; + + if ($MULTIPLE_OUTPUT) { + for my $lang (sort keys %po_files_by_lang) { + if ( ! -e $lang ) { + mkdir $lang or die "Cannot create subdirectory $lang: $!\n"; + } + open OUTPUT, ">$lang/$OUTFILE" or die "Cannot open $lang/$OUTFILE: $!\n"; + my $tree = readXml($FILE); + print_header($FILE, \*OUTPUT); + parseTree(\*OUTPUT, $tree, $lang); + close OUTPUT; + print "CREATED $lang/$OUTFILE\n" unless $QUIET_ARG; + } + } + open OUTPUT, ">$OUTFILE" or die "Cannot open $OUTFILE: $!\n"; + my $tree = readXml($FILE); + print_header($FILE, \*OUTPUT); + parseTree(\*OUTPUT, $tree); + close OUTPUT; + print "CREATED $OUTFILE\n" unless $QUIET_ARG; +} + +sub keys_merge_translations +{ + open INPUT, "<${FILE}" or die; + open OUTPUT, ">${OUTFILE}" or die; + + while () + { + 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 () + { + 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 = ; + 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 . + $source =~ s|<\s*_($w+)\s*/>|<$1/>|g; + + while ($source =~ s/ + (.*?) + (\s+)((\s*) + (\s*(?:\s*)?(.*?)\s*<\/default>)?(\s*) + (\s*(?:\s*)?(.*?)\s*<\/short>)?(\s*) + (\s*(?:\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 : ''; + + 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"; + + print OUTPUT "$default_spaces"; + + if ($default_translation) + { + $default_translation = entity_encode($default_translation); + print OUTPUT "$default_translation"; + } + + print OUTPUT "$short_spaces"; + + if ($short_translation) + { + $short_translation = entity_encode($short_translation); + print OUTPUT "$short_translation"; + } + + print OUTPUT "$long_spaces"; + + if ($long_translation) + { + $long_translation = entity_encode($long_translation); + print OUTPUT "$long_translation"; + } + + print OUTPUT "$locale_end_spaces"; + } + } + + print OUTPUT $source; + + close OUTPUT; +} + +sub rfc822deb_merge_translations +{ + my %encodings = (); + for my $lang (keys %po_files_by_lang) { + $encodings{$lang} = ($UTF8_ARG ? 'UTF-8' : get_po_encoding($po_files_by_lang{$lang})); + } + + my $source; + + $Text::Wrap::huge = 'overflow'; + $Text::Wrap::break = qr/\n|\s(?=\S)/; + + { + local $/; # slurp mode + open INPUT, "<$FILE" or die "can't open $FILE: $!"; + $source = ; + close INPUT; + } + + open OUTPUT, ">${OUTFILE}" or die; + + while ($source =~ /(^|\n+)(_*)([^:\s]+)(:[ \t]*)(.*?)(?=\n[\S\n]|$)/sg) + { + my $sep = $1; + my $non_translated_line = $3.$4; + my $string = $5; + my $underscore = length($2); + next if $underscore eq 0 && $non_translated_line =~ /^#/; + # Remove [] dummy strings + my $stripped = $string; + $stripped =~ s/\[\s[^\[\]]*\],/,/g if $underscore eq 2; + $stripped =~ s/\[\s[^\[\]]*\]$//; + $non_translated_line .= $stripped; + + print OUTPUT $sep.$non_translated_line; + + if ($underscore) + { + my @str_list = rfc822deb_split($underscore, $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) + { + if ($underscore eq 2) + { + $str_translated .= $translation; + } + else + { + $str_translated .= + Text::Tabs::expand($translation) . + "\n"; + } + } + else + { + if ($underscore eq 2) + { + $str_translated .= ', ' . $translation; + } + 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.$encodings{$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. + # When first argument is 2, the string is a comma separated list of + # values. + my $type = shift; + my $text = shift; + $text =~ s/^[ \t]//mg; + return (split(/, */, $text, 0)) if $type ne 1; + return ($text) if $text !~ /\n/; + + $text =~ s/([^\n]*)\n//; + my @list = ($1); + my $str = ''; + + for my $line (split (/\n/, $text)) + { + chomp $line; + if ($line =~ /^\.\s*$/) + { + # 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$/; + $line =~ s/\s+$//; + $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; +} + --- kipina-0.1.1.orig/intltool-update +++ kipina-0.1.1/intltool-update @@ -0,0 +1,1026 @@ +#!/usr/bin/perl -w +# -*- Mode: perl; indent-tabs-mode: nil; c-basic-offset: 4 -*- + +# +# The Intltool Message Updater +# +# Copyright (C) 2000-2003 Free Software Foundation. +# +# 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: Kenneth Christiansen +# Maciej Stachowiak +# Darin Adler + +## Release information +my $PROGRAM = "intltool-update"; +my $VERSION = "0.31.1"; +my $PACKAGE = "intltool"; + +## Loaded modules +use strict; +use Getopt::Long; +use Cwd; +use File::Copy; +use File::Find; + +## Scalars used by the option stuff +my $HELP_ARG = 0; +my $VERSION_ARG = 0; +my $DIST_ARG = 0; +my $POT_ARG = 0; +my $HEADERS_ARG = 0; +my $MAINTAIN_ARG = 0; +my $REPORT_ARG = 0; +my $VERBOSE = 0; +my $GETTEXT_PACKAGE = ""; +my $OUTPUT_FILE = ""; + +my @languages; +my %varhash = (); +my %po_files_by_lang = (); + +# Regular expressions to categorize file types. +# FIXME: Please check if the following is correct + +my $xml_support = +"xml(?:\\.in)*|". # http://www.w3.org/XML/ (Note: .in is not required) +"ui|". # Bonobo specific - User Interface desc. files +"lang|". # ? +"glade2?(?:\\.in)*|". # Glade specific - User Interface desc. files (Note: .in is not required) +"scm(?:\\.in)*|". # ? (Note: .in is not required) +"oaf(?:\\.in)+|". # DEPRECATED: Replaces by Bonobo .server files +"etspec|". # ? +"server(?:\\.in)+|". # Bonobo specific +"sheet(?:\\.in)+|". # ? +"schemas(?:\\.in)+|". # GConf specific +"pong(?:\\.in)+|". # DEPRECATED: PONG is not used [by GNOME] any longer. +"kbd(?:\\.in)+"; # GOK specific. + +my $ini_support = +"desktop(?:\\.in)+|". # http://www.freedesktop.org/Standards/menu-spec +"caves(?:\\.in)+|". # GNOME Games specific +"directory(?:\\.in)+|". # http://www.freedesktop.org/Standards/menu-spec +"soundlist(?:\\.in)+|". # GNOME specific +"keys(?:\\.in)+|". # GNOME Mime database specific +"theme(?:\\.in)+"; # http://www.freedesktop.org/Standards/icon-theme-spec + +my $buildin_gettext_support = +"c|y|cs|cc|cpp|c\\+\\+|h|hh|gob|py"; + +## Always flush buffer when printing +$| = 1; + +## Sometimes the source tree will be rooted somewhere else. +my $SRCDIR = "."; +my $POTFILES_in; + +$SRCDIR = $ENV{"srcdir"} if $ENV{"srcdir"}; +$POTFILES_in = "<$SRCDIR/POTFILES.in"; + +## Handle options +GetOptions +( + "help" => \$HELP_ARG, + "version" => \$VERSION_ARG, + "dist|d" => \$DIST_ARG, + "pot|p" => \$POT_ARG, + "headers|s" => \$HEADERS_ARG, + "maintain|m" => \$MAINTAIN_ARG, + "report|r" => \$REPORT_ARG, + "verbose|x" => \$VERBOSE, + "gettext-package|g=s" => \$GETTEXT_PACKAGE, + "output-file|o=s" => \$OUTPUT_FILE, + ) or &Console_WriteError_InvalidOption; + +&Console_Write_IntltoolHelp if $HELP_ARG; +&Console_Write_IntltoolVersion if $VERSION_ARG; + +my $arg_count = ($DIST_ARG > 0) + + ($POT_ARG > 0) + + ($HEADERS_ARG > 0) + + ($MAINTAIN_ARG > 0) + + ($REPORT_ARG > 0); + +&Console_Write_IntltoolHelp if $arg_count > 1; + +# --version and --help don't require a module name +my $MODULE = $GETTEXT_PACKAGE || &FindPackageName; + +if ($POT_ARG) +{ + &GenerateHeaders; + &GeneratePOTemplate; +} +elsif ($HEADERS_ARG) +{ + &GenerateHeaders; +} +elsif ($MAINTAIN_ARG) +{ + &FindLeftoutFiles; +} +elsif ($REPORT_ARG) +{ + &GenerateHeaders; + &GeneratePOTemplate; + &Console_Write_CoverageReport; +} +elsif ((defined $ARGV[0]) && $ARGV[0] =~ /^[a-z]/) +{ + my $lang = $ARGV[0]; + + ## Report error if the language file supplied + ## to the command line is non-existent + &Console_WriteError_NotExisting("$lang.po") if ! -s "$lang.po"; + + if (!$DIST_ARG) + { + print "Working, please wait..." if $VERBOSE; + &GenerateHeaders; + &GeneratePOTemplate; + } + &POFile_Update ($lang, $OUTPUT_FILE); + &Console_Write_TranslationStatus ($lang, $OUTPUT_FILE); +} +else +{ + &Console_Write_IntltoolHelp; +} + +exit; + +######### + +sub Console_Write_IntltoolVersion +{ + print <<_EOF_; +${PROGRAM} (${PACKAGE}) $VERSION +Written by Kenneth Christiansen, Maciej Stachowiak, and Darin Adler. + +Copyright (C) 2000-2003 Free Software Foundation, 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 Console_Write_IntltoolHelp +{ + print <<_EOF_; +Usage: ${PROGRAM} [OPTION]... LANGCODE +Updates PO template files and merge them with the translations. + +Mode of operation (only one is allowed): + -p, --pot generate the PO template only + -s, --headers generate the header files in POTFILES.in + -m, --maintain search for left out files from POTFILES.in + -r, --report display a status report for the module + -d, --dist merge LANGCODE.po with existing PO template + +Extra options: + -g, --gettext-package=NAME override PO template name, useful with --pot + -o, --output-file=FILE write merged translation to FILE + -x, --verbose display lots of feedback + --help display this help and exit + --version output version information and exit + +Examples of use: +${PROGRAM} --pot just create a new PO template +${PROGRAM} xy create new PO template and merge xy.po with it + +Report bugs to http://bugzilla.gnome.org/ (product name "$PACKAGE") +or send email to . +_EOF_ + exit; +} + +sub POFile_DetermineType ($) +{ + my $type = $_; + my $gettext_type; + + my $xml_regex = "(?:" . $xml_support . ")"; + my $ini_regex = "(?:" . $ini_support . ")"; + my $buildin_regex = "(?:" . $buildin_gettext_support . ")"; + + if ($type =~ /\[type: gettext\/([^\]].*)]/) + { + $gettext_type=$1; + } + elsif ($type =~ /schemas(\.in)+$/) + { + $gettext_type="schemas"; + } + elsif ($type =~ /glade2?(\.in)*$/) + { + $gettext_type="glade"; + } + elsif ($type =~ /scm(\.in)*$/) + { + $gettext_type="scheme"; + } + elsif ($type =~ /keys(\.in)+$/) + { + $gettext_type="keys"; + } + + # bucket types + + elsif ($type =~ /$xml_regex$/) + { + $gettext_type="xml"; + } + elsif ($type =~ /$ini_regex$/) + { + $gettext_type="ini"; + } + elsif ($type =~ /$buildin_regex$/) + { + $gettext_type="buildin"; + } + else + { + $gettext_type="unknown"; + } + + return "gettext\/$gettext_type"; +} + +sub TextFile_DetermineEncoding ($) +{ + my $gettext_code="ASCII"; # All files are ASCII by default + my $filetype=`file $_ | cut -d ' ' -f 2`; + + if ($? eq "0") + { + if ($filetype =~ /^(ISO|UTF)/) + { + chomp ($gettext_code = $filetype); + } + elsif ($filetype =~ /^XML/) + { + $gettext_code="UTF-8"; # We asume that .glade and other .xml files are UTF-8 + } + } + + return $gettext_code; +} + + +sub FindLeftoutFiles +{ + my (@buf_i18n_plain, + @buf_i18n_xml, + @buf_i18n_xml_unmarked, + @buf_i18n_ini, + @buf_potfiles, + @buf_potfiles_ignore, + @buf_allfiles, + @buf_allfiles_sorted, + @buf_potfiles_sorted + ); + + ## Search and find all translatable files + find sub { + push @buf_i18n_plain, "$File::Find::name" if /\.($buildin_gettext_support)$/; + push @buf_i18n_xml, "$File::Find::name" if /\.($xml_support)$/; + push @buf_i18n_ini, "$File::Find::name" if /\.($ini_support)$/; + push @buf_i18n_xml_unmarked, "$File::Find::name" if /\.(schemas(\.in)+)$/; + }, ".."; + + + open POTFILES, $POTFILES_in or die "$PROGRAM: there's no POTFILES.in!\n"; + @buf_potfiles = grep !/^(#|\s*$)/, ; + close POTFILES; + + foreach (@buf_potfiles) { + s/^\[.*]\s*//; + } + + print "Searching for missing translatable files...\n" if $VERBOSE; + + ## Check if we should ignore some found files, when + ## comparing with POTFILES.in + foreach my $ignore ("POTFILES.skip", "POTFILES.ignore") + { + (-s $ignore) or next; + + if ("$ignore" eq "POTFILES.ignore") + { + print "The usage of POTFILES.ignore is deprecated. Please consider moving the\n". + "content of this file to POTFILES.skip.\n"; + } + + print "Found $ignore: Ignoring files...\n" if $VERBOSE; + open FILE, "<$ignore" or die "ERROR: Failed to open $ignore!\n"; + + while () + { + push @buf_potfiles_ignore, $_ unless /^(#|\s*$)/; + } + close FILE; + + @buf_potfiles = (@buf_potfiles_ignore, @buf_potfiles); + } + + foreach my $file (@buf_i18n_plain) + { + my $in_comment = 0; + my $in_macro = 0; + + open FILE, "<$file"; + while () + { + # Handle continued multi-line comment. + if ($in_comment) + { + next unless s-.*\*/--; + $in_comment = 0; + } + + # Handle continued macro. + if ($in_macro) + { + $in_macro = 0 unless /\\$/; + next; + } + + # Handle start of macro (or any preprocessor directive). + if (/^\s*\#/) + { + $in_macro = 1 if /^([^\\]|\\.)*\\$/; + next; + } + + # Handle comments and quoted text. + while (m-(/\*|//|\'|\")-) # \' and \" keep emacs perl mode happy + { + my $match = $1; + if ($match eq "/*") + { + if (!s-/\*.*?\*/--) + { + s-/\*.*--; + $in_comment = 1; + } + } + elsif ($match eq "//") + { + s-//.*--; + } + else # ' or " + { + if (!s-$match([^\\]|\\.)*?$match-QUOTEDTEXT-) + { + warn "mismatched quotes at line $. in $file\n"; + s-$match.*--; + } + } + } + + if (/\.GetString ?\(QUOTEDTEXT/) + { + ## Remove the first 3 chars and add newline + push @buf_allfiles, unpack("x3 A*", $file) . "\n"; + last; + } + + if (/_\(QUOTEDTEXT/) + { + ## Remove the first 3 chars and add newline + push @buf_allfiles, unpack("x3 A*", $file) . "\n"; + last; + } + } + close FILE; + } + + foreach my $file (@buf_i18n_xml) + { + open FILE, "<$file"; + + while () + { + # FIXME: share the pattern matching code with intltool-extract + if (/\s_(.*)=\"/ || /<_[^>]+>/ || /translatable=\"yes\"/) + { + push @buf_allfiles, unpack("x3 A*", $file) . "\n"; + last; + } + } + close FILE; + } + + foreach my $file (@buf_i18n_ini) + { + open FILE, "<$file"; + while () + { + if (/_(.*)=/) + { + push @buf_allfiles, unpack("x3 A*", $file) . "\n"; + last; + } + } + close FILE; + } + + foreach my $file (@buf_i18n_xml_unmarked) + { + push @buf_allfiles, unpack("x3 A*", $file) . "\n"; + } + + + @buf_allfiles_sorted = sort (@buf_allfiles); + @buf_potfiles_sorted = sort (@buf_potfiles); + + my %in2; + foreach (@buf_potfiles_sorted) + { + $in2{$_} = 1; + } + + my @result; + + foreach (@buf_allfiles_sorted) + { + if (!exists($in2{$_})) + { + push @result, $_ + } + } + + my @buf_potfiles_notexist; + + foreach (@buf_potfiles_sorted) + { + chomp (my $dummy = $_); + if ("$dummy" ne "" and ! -f "../$dummy") + { + push @buf_potfiles_notexist, $_; + } + } + + ## Save file with information about the files missing + ## if any, and give information about this procedure. + if (@result + @buf_potfiles_notexist > 0) + { + if (@result) + { + print "\n" if $VERBOSE; + unlink "missing"; + open OUT, ">missing"; + print OUT @result; + close OUT; + warn "\e[1mThe following files contain translations and are currently not in use. Please\e[0m\n". + "\e[1mconsider adding these to the POTFILES.in file, located in the po/ directory.\e[0m\n\n"; + print STDERR @result, "\n"; + warn "If some of these files are left out on purpose then please add them to\n". + "POTFILES.skip instead of POTFILES.in. A file \e[1m'missing'\e[0m containing this list\n". + "of left out files has been written in the current directory.\n"; + } + if (@buf_potfiles_notexist) + { + unlink "notexist"; + open OUT, ">notexist"; + print OUT @buf_potfiles_notexist; + close OUT; + warn "\n" if ($VERBOSE or @result); + warn "\e[1mThe following files do not exist anymore:\e[0m\n\n"; + warn @buf_potfiles_notexist, "\n"; + warn "Please remove them from POTFILES.in or POTFILES.skip. A file \e[1m'notexist'\e[0m\n". + "containing this list of absent files has been written in the current directory.\n"; + } + } + + ## If there is nothing to complain about, notify the user + else { + print "\nAll files containing translations are present in POTFILES.in.\n" if $VERBOSE; + } +} + +sub Console_WriteError_InvalidOption +{ + ## Handle invalid arguments + print STDERR "Try `${PROGRAM} --help' for more information.\n"; + exit 1; +} + +sub GenerateHeaders +{ + my $EXTRACT = `which intltool-extract 2>/dev/null`; + chomp $EXTRACT; + + $EXTRACT = $ENV{"INTLTOOL_EXTRACT"} if $ENV{"INTLTOOL_EXTRACT"}; + + ## Generate the .h header files, so we can allow glade and + ## xml translation support + if (! -x "$EXTRACT") + { + print STDERR "\n *** The intltool-extract script wasn't found!" + ."\n *** Without it, intltool-update can not generate files.\n"; + exit; + } + else + { + open (FILE, $POTFILES_in) or die "$PROGRAM: POTFILES.in not found.\n"; + + while () + { + chomp; + next if /^\[\s*encoding/; + + ## Find xml files in POTFILES.in and generate the + ## files with help from the extract script + + my $gettext_type= &POFile_DetermineType ($1); + + if (/\.($xml_support|$ini_support)$/ || /^\[/) + { + s/^\[[^\[].*]\s*//; + + my $filename = "../$_"; + + if ($VERBOSE) + { + system ($EXTRACT, "--update", "--srcdir=$SRCDIR", + "--type=$gettext_type", $filename); + } + else + { + system ($EXTRACT, "--update", "--type=$gettext_type", + "--srcdir=$SRCDIR", "--quiet", $filename); + } + } + } + close FILE; + } +} + +# +# Generate .pot file from POTFILES.in +# +sub GeneratePOTemplate +{ + my $XGETTEXT = `which xgettext 2>/dev/null`; + my $XGETTEXT_ARGS = ''; + chomp $XGETTEXT; + + $XGETTEXT = $ENV{"XGETTEXT"} if $ENV{"XGETTEXT"}; + $XGETTEXT_ARGS = $ENV{"XGETTEXT_ARGS"} if $ENV{"XGETTEXT_ARGS"}; + + if (! -x $XGETTEXT) + { + print STDERR " *** xgettext is not found on this system!\n". + " *** Without it, intltool-update can not extract strings.\n"; + exit; + } + + print "Building $MODULE.pot...\n" if $VERBOSE; + + open INFILE, $POTFILES_in; + unlink "POTFILES.in.temp"; + open OUTFILE, ">POTFILES.in.temp"; + + my $gettext_support_nonascii = 0; + + # checks for GNU gettext >= 0.12 + my $dummy = `$XGETTEXT --version --from-code=UTF-8 >/dev/null 2>/dev/null`; + if ($? == 0) + { + $gettext_support_nonascii = 1; + } + else + { + # urge everybody to upgrade gettext + print STDERR "WARNING: This version of gettext does not support extracting non-ASCII\n". + " strings. That means you should install a version of gettext\n". + " that supports non-ASCII strings (such as GNU gettext >= 0.12),\n". + " or have to let non-ASCII strings untranslated. (If there is any)\n"; + } + + my $encoding = "ASCII"; + my $forced_gettext_code; + my @temp_headers; + my $encoding_problem_is_reported = 0; + + while () + { + next if (/^#/ or /^\s*$/); + + chomp; + + my $gettext_code; + + if (/^\[\s*encoding:\s*(.*)\s*\]/) + { + $forced_gettext_code=$1; + } + elsif (/\.($xml_support|$ini_support)$/ || /^\[/) + { + s/^\[.*]\s*//; + print OUTFILE "$_.h\n"; + push @temp_headers, "../$_.h"; + $gettext_code = &TextFile_DetermineEncoding ("../$_.h") if ($gettext_support_nonascii and not defined $forced_gettext_code); + } + else + { + if ($SRCDIR eq ".") { + print OUTFILE "$_\n"; + } else { + print OUTFILE "$SRCDIR/../$_\n"; + } + $gettext_code = &TextFile_DetermineEncoding ("../$_") if ($gettext_support_nonascii and not defined $forced_gettext_code); + } + + next if (! $gettext_support_nonascii); + + if (defined $forced_gettext_code) + { + $encoding=$forced_gettext_code; + } + elsif (defined $gettext_code and "$encoding" ne "$gettext_code") + { + if ($encoding eq "ASCII") + { + $encoding=$gettext_code; + } + elsif ($gettext_code ne "ASCII") + { + # Only report once because the message is quite long + if (! $encoding_problem_is_reported) + { + print STDERR "WARNING: You should use the same file encoding for all your project files,\n". + " but $PROGRAM thinks that most of the source files are in\n". + " $encoding encoding, while \"$_\" is (likely) in\n". + " $gettext_code encoding. If you are sure that all translatable strings\n". + " are in same encoding (say UTF-8), please \e[1m*prepend*\e[0m the following\n". + " line to POTFILES.in:\n\n". + " [encoding: UTF-8]\n\n". + " and make sure that configure.in/ac checks for $PACKAGE >= 0.27 .\n". + "(such warning message will only be reported once.)\n"; + $encoding_problem_is_reported = 1; + } + } + } + } + + close OUTFILE; + close INFILE; + + unlink "$MODULE.pot"; + my @xgettext_argument=("$XGETTEXT", + "--add-comments", + "--directory\=\.\.", + "--output\=$MODULE\.pot", + "--files-from\=\.\/POTFILES\.in\.temp"); + my $XGETTEXT_KEYWORDS = &FindPOTKeywords; + push @xgettext_argument, $XGETTEXT_KEYWORDS; + push @xgettext_argument, "--from-code\=$encoding" if ($gettext_support_nonascii); + push @xgettext_argument, $XGETTEXT_ARGS if $XGETTEXT_ARGS; + my $xgettext_command = join ' ', @xgettext_argument; + + # intercept xgettext error message + print "Running $xgettext_command\n" if $VERBOSE; + my $xgettext_error_msg = `$xgettext_command 2>\&1`; + my $command_failed = $?; + + unlink "POTFILES.in.temp"; + + print "Removing generated header (.h) files..." if $VERBOSE; + unlink foreach (@temp_headers); + print "done.\n" if $VERBOSE; + + if (! $command_failed) + { + if (! -e "$MODULE.pot") + { + print "None of the files in POTFILES.in contain strings marked for translation.\n" if $VERBOSE; + } + else + { + print "Wrote $MODULE.pot\n" if $VERBOSE; + } + } + else + { + if ($xgettext_error_msg =~ /--from-code/) + { + # replace non-ASCII error message with a more useful one. + print STDERR "ERROR: xgettext failed to generate PO template file because there is non-ASCII\n". + " string marked for translation. Please make sure that all strings marked\n". + " for translation are in uniform encoding (say UTF-8), then \e[1m*prepend*\e[0m the\n". + " following line to POTFILES.in and rerun $PROGRAM:\n\n". + " [encoding: UTF-8]\n\n"; + } + else + { + print STDERR "$xgettext_error_msg"; + if (-e "$MODULE.pot") + { + # is this possible? + print STDERR "ERROR: xgettext failed but still managed to generate PO template file.\n". + " Please consult error message above if there is any.\n"; + } + else + { + print STDERR "ERROR: xgettext failed to generate PO template file. Please consult\n". + " error message above if there is any.\n"; + } + } + exit (1); + } +} + +sub POFile_Update +{ + -f "$MODULE.pot" or die "$PROGRAM: $MODULE.pot does not exist.\n"; + + my ($lang, $outfile) = @_; + + print "Merging $lang.po with $MODULE.pot..." if $VERBOSE; + + my $infile = "$lang.po"; + $outfile = "$lang.po" if ($outfile eq ""); + + # I think msgmerge won't overwrite old file if merge is not successful + system ("msgmerge", "-o", $outfile, $infile, "$MODULE.pot"); +} + +sub Console_WriteError_NotExisting +{ + my ($file) = @_; + + ## Report error if supplied language file is non-existing + print STDERR "$PROGRAM: $file does not exist!\n"; + print STDERR "Try '$PROGRAM --help' for more information.\n"; + exit; +} + +sub GatherPOFiles +{ + my @po_files = glob ("./*.po"); + + @languages = map (&POFile_GetLanguage, @po_files); + + foreach my $lang (@languages) + { + $po_files_by_lang{$lang} = shift (@po_files); + } +} + +sub POFile_GetLanguage ($) +{ + s/^(.*\/)?(.+)\.po$/$2/; + return $_; +} + +sub Console_Write_TranslationStatus +{ + my ($lang, $output_file) = @_; + + $output_file = "$lang.po" if ($output_file eq ""); + + system ("msgfmt", "-o", "/dev/null", "--statistics", $output_file); +} + +sub Console_Write_CoverageReport +{ + &GatherPOFiles; + + foreach my $lang (@languages) + { + print "$lang: "; + &POFile_Update ($lang, ""); + } + + print "\n\n * Current translation support in $MODULE \n\n"; + + foreach my $lang (@languages) + { + print "$lang: "; + system ("msgfmt", "-o", "/dev/null", "--statistics", "$lang.po"); + } +} + +sub SubstituteVariable +{ + my ($str) = @_; + + # always need to rewind file whenever it has been accessed + seek (CONF, 0, 0); + + # cache each variable. varhash is global to we can add + # variables elsewhere. + while () + { + if (/^(\w+)=(.*)$/) + { + ($varhash{$1} = $2) =~ s/^["'](.*)["']$/$1)/; + } + } + + if ($str =~ /^(.*)\${?([A-Z_]+)}?(.*)$/) + { + my $rest = $3; + my $untouched = $1; + my $sub = $varhash{$2}; + + return SubstituteVariable ("$untouched$sub$rest"); + } + return $str; +} + +sub CONF_Handle_Open +{ + my $base_dirname = getcwd(); + $base_dirname =~ s@.*/@@; + + my ($conf_in, $src_dir); + + if ($base_dirname =~ /^po(-.+)?$/) + { + if (-f "Makevars") + { + my $makefile_source; + + local (*IN); + open (IN, ") + { + if (/^top_builddir[ \t]*=/) + { + $src_dir = $_; + $src_dir =~ s/^top_builddir[ \t]*=[ \t]*([^ \t\n\r]*)/$1/; + + chomp $src_dir; + if (-f "$src_dir" . "/configure.ac") { + $conf_in = "$src_dir" . "/configure.ac" . "\n"; + } else { + $conf_in = "$src_dir" . "/configure.in" . "\n"; + } + last; + } + } + close IN; + + $conf_in || die "Cannot find top_builddir in Makevars."; + } + elsif (-f "../configure.ac") + { + $conf_in = "../configure.ac"; + } + elsif (-f "../configure.in") + { + $conf_in = "../configure.in"; + } + else + { + my $makefile_source; + + local (*IN); + open (IN, ") + { + if (/^top_srcdir[ \t]*=/) + { + $src_dir = $_; + $src_dir =~ s/^top_srcdir[ \t]*=[ \t]*([^ \t\n\r]*)/$1/; + + chomp $src_dir; + $conf_in = "$src_dir" . "/configure.in" . "\n"; + + last; + } + } + close IN; + + $conf_in || die "Cannot find top_srcdir in Makefile."; + } + + open (CONF, "<$conf_in"); + } + else + { + print STDERR "$PROGRAM: Unable to proceed.\n" . + "Make sure to run this script inside the po directory.\n"; + exit; + } +} + +sub FindPackageName +{ + my $version; + my $domain = &FindMakevarsDomain; + my $name = $domain || "untitled"; + + &CONF_Handle_Open; + + my $conf_source; { + local (*IN); + open (IN, "<&CONF") || return $name; + seek (IN, 0, 0); + local $/; # slurp mode + $conf_source = ; + close IN; + } + + # priority for getting package name: + # 1. GETTEXT_PACKAGE + # 2. first argument of AC_INIT (with >= 2 arguments) + # 3. first argument of AM_INIT_AUTOMAKE (with >= 2 argument) + + # /^AM_INIT_AUTOMAKE\([\s\[]*([^,\)\s\]]+)/m + # the \s makes this not work, why? + if ($conf_source =~ /^AM_INIT_AUTOMAKE\(([^,\)]+),([^,\)]+)/m) + { + ($name, $version) = ($1, $2); + ($varhash{"AC_PACKAGE_NAME"} = $name) =~ s/[\[\]\s]//g; + ($varhash{"PACKAGE"} = $name) =~ s/[\[\]\s]//g; + ($varhash{"AC_PACKAGE_VERSION"} = $version) =~ s/[\[\]\s]//g; + ($varhash{"VERSION"} = $version) =~ s/[\[\]\s]//g; + } + + if ($conf_source =~ /^AC_INIT\(([^,\)]+),([^,\)]+)/m) + { + ($name, $version) = ($1, $2); + ($varhash{"AC_PACKAGE_NAME"} = $name) =~ s/[\[\]\s]//g; + ($varhash{"PACKAGE"} = $name) =~ s/[\[\]\s]//g; + ($varhash{"AC_PACKAGE_VERSION"} = $version) =~ s/[\[\]\s]//g; + ($varhash{"VERSION"} = $version) =~ s/[\[\]\s]//g; + } + + # \s makes this not work, why? + $name = $1 if $conf_source =~ /^GETTEXT_PACKAGE=\[?([^\n\]]+)/m; + + # prepend '$' to auto* internal variables, usually they are + # used in configure.in/ac without the '$' + $name =~ s/AC_/\$AC_/g; + $name =~ s/\$\$/\$/g; + + $name = $domain if $domain; + + $name = SubstituteVariable ($name); + $name =~ s/^["'](.*)["']$/$1/; + + return $name if $name; +} + + +sub FindPOTKeywords +{ + + my $keywords = "--keyword\=\_ --keyword\=N\_ --keyword\=U\_"; + my $varname = "XGETTEXT_OPTIONS"; + my $make_source; { + local (*IN); + open (IN, "; + close IN; + } + + $keywords = $1 if $make_source =~ /^$varname[ ]*=\[?([^\n\]]+)/m; + + return $keywords; +} + +sub FindMakevarsDomain +{ + + my $domain = ""; + my $makevars_source; { + local (*IN); + open (IN, "; + close IN; + } + + $domain = $1 if $makevars_source =~ /^DOMAIN[ ]*=\[?([^\n\]]+)/m; + $domain =~ s/^\s+//; + $domain =~ s/\s+$//; + + return $domain; +}