From 7b47dc61ad63e75bd2c60b82d6f47d0cb6b78a6a Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Fri, 16 Jan 2009 19:54:58 +0000 Subject: [PATCH] Move all tools into plugins/tool. svn: r11633 --- src/plugins/Makefile.am | 66 +----------------- src/plugins/rel/Makefile.am | 36 ++++++++++ .../{ => tool}/CalculateEstimatedDates.py | 0 src/plugins/{ => tool}/ChangeNames.py | 0 src/plugins/{ => tool}/ChangeTypes.py | 0 src/plugins/{ => tool}/Check.py | 0 src/plugins/{ => tool}/CmdRef.py | 0 .../{ => tool}/DateParserDisplayTest.py | 0 src/plugins/{ => tool}/Desbrowser.py | 0 src/plugins/{ => tool}/DumpGenderStats.py | 0 src/plugins/{ => tool}/Eval.py | 0 src/plugins/{ => tool}/EventCmp.py | 0 src/plugins/{ => tool}/EventNames.py | 0 src/plugins/{ => tool}/ExtractCity.py | 0 src/plugins/{ => tool}/FindDupes.py | 0 src/plugins/{ => tool}/Leak.py | 0 src/plugins/tool/Makefile.am | 68 +++++++++++++++++++ src/plugins/{ => tool}/MediaManager.py | 0 src/plugins/{ => tool}/NotRelated.glade | 0 src/plugins/{ => tool}/NotRelated.py | 0 src/plugins/{ => tool}/OwnerEditor.py | 0 src/plugins/{ => tool}/PHPGedViewConnector.py | 0 src/plugins/{ => tool}/PatchNames.py | 0 src/plugins/{ => tool}/Rebuild.py | 0 src/plugins/{ => tool}/RebuildRefMap.py | 0 src/plugins/{ => tool}/RelCalc.py | 0 src/plugins/{ => tool}/RemoveUnused.py | 0 src/plugins/{ => tool}/ReorderIds.py | 0 src/plugins/{ => tool}/SortEvents.py | 0 src/plugins/{ => tool}/SoundGen.py | 0 src/plugins/{ => tool}/TestcaseGenerator.py | 0 src/plugins/{ => tool}/Verify.py | 0 src/plugins/{ => tool}/changenames.glade | 0 src/plugins/{ => tool}/changetype.glade | 0 src/plugins/{ => tool}/desbrowse.glade | 0 src/plugins/{ => tool}/eval.glade | 0 src/plugins/{ => tool}/eventcmp.glade | 0 src/plugins/{ => tool}/leak.glade | 0 src/plugins/{ => tool}/merge.glade | 0 src/plugins/{ => tool}/ownereditor.glade | 0 src/plugins/{ => tool}/patchnames.glade | 0 src/plugins/{ => tool}/phpgedview.glade | 0 src/plugins/{ => tool}/relcalc.glade | 0 src/plugins/{ => tool}/soundex.glade | 0 src/plugins/{ => tool}/summary.glade | 0 src/plugins/{ => tool}/unused.glade | 0 src/plugins/{ => tool}/verify.glade | 0 47 files changed, 107 insertions(+), 63 deletions(-) create mode 100644 src/plugins/rel/Makefile.am rename src/plugins/{ => tool}/CalculateEstimatedDates.py (100%) rename src/plugins/{ => tool}/ChangeNames.py (100%) rename src/plugins/{ => tool}/ChangeTypes.py (100%) rename src/plugins/{ => tool}/Check.py (100%) rename src/plugins/{ => tool}/CmdRef.py (100%) rename src/plugins/{ => tool}/DateParserDisplayTest.py (100%) rename src/plugins/{ => tool}/Desbrowser.py (100%) rename src/plugins/{ => tool}/DumpGenderStats.py (100%) rename src/plugins/{ => tool}/Eval.py (100%) rename src/plugins/{ => tool}/EventCmp.py (100%) rename src/plugins/{ => tool}/EventNames.py (100%) rename src/plugins/{ => tool}/ExtractCity.py (100%) rename src/plugins/{ => tool}/FindDupes.py (100%) rename src/plugins/{ => tool}/Leak.py (100%) create mode 100644 src/plugins/tool/Makefile.am rename src/plugins/{ => tool}/MediaManager.py (100%) rename src/plugins/{ => tool}/NotRelated.glade (100%) rename src/plugins/{ => tool}/NotRelated.py (100%) rename src/plugins/{ => tool}/OwnerEditor.py (100%) rename src/plugins/{ => tool}/PHPGedViewConnector.py (100%) rename src/plugins/{ => tool}/PatchNames.py (100%) rename src/plugins/{ => tool}/Rebuild.py (100%) rename src/plugins/{ => tool}/RebuildRefMap.py (100%) rename src/plugins/{ => tool}/RelCalc.py (100%) rename src/plugins/{ => tool}/RemoveUnused.py (100%) rename src/plugins/{ => tool}/ReorderIds.py (100%) rename src/plugins/{ => tool}/SortEvents.py (100%) rename src/plugins/{ => tool}/SoundGen.py (100%) rename src/plugins/{ => tool}/TestcaseGenerator.py (100%) rename src/plugins/{ => tool}/Verify.py (100%) rename src/plugins/{ => tool}/changenames.glade (100%) rename src/plugins/{ => tool}/changetype.glade (100%) rename src/plugins/{ => tool}/desbrowse.glade (100%) rename src/plugins/{ => tool}/eval.glade (100%) rename src/plugins/{ => tool}/eventcmp.glade (100%) rename src/plugins/{ => tool}/leak.glade (100%) rename src/plugins/{ => tool}/merge.glade (100%) rename src/plugins/{ => tool}/ownereditor.glade (100%) rename src/plugins/{ => tool}/patchnames.glade (100%) rename src/plugins/{ => tool}/phpgedview.glade (100%) rename src/plugins/{ => tool}/relcalc.glade (100%) rename src/plugins/{ => tool}/soundex.glade (100%) rename src/plugins/{ => tool}/summary.glade (100%) rename src/plugins/{ => tool}/unused.glade (100%) rename src/plugins/{ => tool}/verify.glade (100%) diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am index 1a0359a65..a2952ceb0 100644 --- a/src/plugins/Makefile.am +++ b/src/plugins/Makefile.am @@ -4,7 +4,8 @@ # If not using GNU make, then list all .py files individually SUBDIRS = \ - rel + rel \ + tool pkgdatadir = $(datadir)/@PACKAGE@/plugins @@ -18,25 +19,15 @@ pkgdata_PYTHON = \ AttributeMatch.py\ AttributesGramplet.py\ BookReport.py\ - CalculateEstimatedDates.py\ Calendar.py \ - ChangeTypes.py\ - ChangeNames.py\ - Check.py\ - CmdRef.py\ CustomBookText.py\ - DateParserDisplayTest.py\ DefaultGramplets.py\ - Desbrowser.py\ DescendTree.py\ DescendReport.py\ DescendGramplet.py\ DetAncestralReport.py\ DetDescendantReport.py\ EndOfLineReport.py\ - Eval.py\ - EventCmp.py\ - EventNames.py\ ExportCd.py\ ExportCsv.py\ ExportFtree.py\ @@ -46,11 +37,9 @@ pkgdata_PYTHON = \ ExportVCalendar.py\ ExportVCard.py\ ExportXml.py\ - ExtractCity.py\ FamilyGroup.py\ FanChart.py\ FilterByName.py\ - FindDupes.py\ GivenNameGramplet.py\ GVFamilyLines.py \ GVHourGlass.py\ @@ -65,83 +54,34 @@ pkgdata_PYTHON = \ ImportXml.py\ IndivComplete.py\ KinshipReport.py\ - Leak.py\ lineage.py\ MarkerReport.py\ - MediaManager.py\ NarrativeWeb.py\ - NotRelated.py\ NumberOfAncestorsReport.py\ OnThisDay.py\ - OwnerEditor.py\ - PatchNames.py\ PlaceReport.py\ - Rebuild.py\ - RebuildRefMap.py\ Records.py\ References.py\ - RelCalc.py\ - rel_cs.py\ - rel_da.py\ - rel_de.py\ - rel_es.py\ - rel_fi.py\ - rel_fr.py\ - rel_hu.py\ - rel_it.py\ - rel_nl.py\ - rel_no.py\ - rel_pl.py\ - rel_pt.py\ - rel_ru.py\ - rel_sk.py\ - rel_sv.py\ - RemoveUnused.py\ - ReorderIds.py\ SameSurnames.py\ siblings.py\ SimpleBookTitle.py\ - SortEvents.py\ - SoundGen.py\ StatisticsChart.py\ Summary.py\ TimeLine.py\ - Verify.py\ WebCal.py\ WhatsNext.py -# DateParserDisplayTest.py\ -# DumpGenderStats.py\ -# PHPGedViewConnector.py\ -# TestcaseGenerator.py - - pkgpyexecdir = @pkgpyexecdir@/plugins pkgpythondir = @pkgpythondir@/plugins GLADEFILES = \ book.glade\ - changenames.glade\ - changetype.glade\ - desbrowse.glade\ - eval.glade\ - eventcmp.glade\ ExportCsv.glade\ ExportFtree.glade\ ExportGeneWeb.glade\ ExportVCalendar.glade\ ExportVCard.glade\ - ImportGedcom.glade\ - leak.glade\ - merge.glade\ - NotRelated.glade\ - ownereditor.glade\ - patchnames.glade\ - relcalc.glade\ - soundex.glade\ - summary.glade\ - unused.glade\ - verify.glade + ImportGedcom.glade GRAPHICS = diff --git a/src/plugins/rel/Makefile.am b/src/plugins/rel/Makefile.am new file mode 100644 index 000000000..210e6dca1 --- /dev/null +++ b/src/plugins/rel/Makefile.am @@ -0,0 +1,36 @@ +# This is the src/plugins/rel level Makefile for Gramps +# We could use GNU make's ':=' syntax for nice wildcard use, +# but that is not necessarily portable. +# If not using GNU make, then list all .py files individually + +pkgdatadir = $(datadir)/@PACKAGE@/plugins/rel + +pkgdata_PYTHON = \ + rel_cs.py\ + rel_da.py\ + rel_de.py\ + rel_es.py\ + rel_fi.py\ + rel_fr.py\ + rel_hu.py\ + rel_it.py\ + rel_nl.py\ + rel_no.py\ + rel_pl.py\ + rel_pt.py\ + rel_ru.py\ + rel_sk.py\ + rel_sv.py + +pkgpyexecdir = @pkgpyexecdir@/gen/proxy +pkgpythondir = @pkgpythondir@/gen/proxy + + +# Clean up all the byte-compiled files +MOSTLYCLEANFILES = *pyc *pyo + +GRAMPS_PY_MODPATH = "../../" + +pycheck: + (export PYTHONPATH=$(GRAMPS_PY_MODPATH); \ + pychecker $(pkgdata_PYTHON)); diff --git a/src/plugins/CalculateEstimatedDates.py b/src/plugins/tool/CalculateEstimatedDates.py similarity index 100% rename from src/plugins/CalculateEstimatedDates.py rename to src/plugins/tool/CalculateEstimatedDates.py diff --git a/src/plugins/ChangeNames.py b/src/plugins/tool/ChangeNames.py similarity index 100% rename from src/plugins/ChangeNames.py rename to src/plugins/tool/ChangeNames.py diff --git a/src/plugins/ChangeTypes.py b/src/plugins/tool/ChangeTypes.py similarity index 100% rename from src/plugins/ChangeTypes.py rename to src/plugins/tool/ChangeTypes.py diff --git a/src/plugins/Check.py b/src/plugins/tool/Check.py similarity index 100% rename from src/plugins/Check.py rename to src/plugins/tool/Check.py diff --git a/src/plugins/CmdRef.py b/src/plugins/tool/CmdRef.py similarity index 100% rename from src/plugins/CmdRef.py rename to src/plugins/tool/CmdRef.py diff --git a/src/plugins/DateParserDisplayTest.py b/src/plugins/tool/DateParserDisplayTest.py similarity index 100% rename from src/plugins/DateParserDisplayTest.py rename to src/plugins/tool/DateParserDisplayTest.py diff --git a/src/plugins/Desbrowser.py b/src/plugins/tool/Desbrowser.py similarity index 100% rename from src/plugins/Desbrowser.py rename to src/plugins/tool/Desbrowser.py diff --git a/src/plugins/DumpGenderStats.py b/src/plugins/tool/DumpGenderStats.py similarity index 100% rename from src/plugins/DumpGenderStats.py rename to src/plugins/tool/DumpGenderStats.py diff --git a/src/plugins/Eval.py b/src/plugins/tool/Eval.py similarity index 100% rename from src/plugins/Eval.py rename to src/plugins/tool/Eval.py diff --git a/src/plugins/EventCmp.py b/src/plugins/tool/EventCmp.py similarity index 100% rename from src/plugins/EventCmp.py rename to src/plugins/tool/EventCmp.py diff --git a/src/plugins/EventNames.py b/src/plugins/tool/EventNames.py similarity index 100% rename from src/plugins/EventNames.py rename to src/plugins/tool/EventNames.py diff --git a/src/plugins/ExtractCity.py b/src/plugins/tool/ExtractCity.py similarity index 100% rename from src/plugins/ExtractCity.py rename to src/plugins/tool/ExtractCity.py diff --git a/src/plugins/FindDupes.py b/src/plugins/tool/FindDupes.py similarity index 100% rename from src/plugins/FindDupes.py rename to src/plugins/tool/FindDupes.py diff --git a/src/plugins/Leak.py b/src/plugins/tool/Leak.py similarity index 100% rename from src/plugins/Leak.py rename to src/plugins/tool/Leak.py diff --git a/src/plugins/tool/Makefile.am b/src/plugins/tool/Makefile.am new file mode 100644 index 000000000..81630a0f3 --- /dev/null +++ b/src/plugins/tool/Makefile.am @@ -0,0 +1,68 @@ +# This is the src/plugins/rel level Makefile for Gramps +# We could use GNU make's ':=' syntax for nice wildcard use, +# but that is not necessarily portable. +# If not using GNU make, then list all .py files individually + +pkgdatadir = $(datadir)/@PACKAGE@/plugins/rel + +pkgdata_PYTHON = \ + CalculateEstimatedDates.py \ + ChangeNames.py \ + ChangeTypes.py \ + Check.py \ + CmdRef.py \ + DateParserDisplayTest.py \ + Desbrowser.py \ + Eval.py \ + EventCmp.py \ + EventNames.py \ + ExtractCity.py \ + FindDupes.py \ + Leak.py \ + MediaManager.py \ + NotRelated.py \ + OwnerEditor.py \ + PatchNames.py \ + Rebuild.py \ + RebuildRefMap.py \ + RelCalc.py \ + RemoveUnused.py \ + ReorderIds.py \ + SortEvents.py \ + SoundGen.py \ + Verify.py + +# DumpGenderStats.py \ +# PHPGedViewConnector.py \ +# TestcaseGenerator.py \ + +pkgpyexecdir = @pkgpyexecdir@/gen/proxy +pkgpythondir = @pkgpythondir@/gen/proxy + +GLADEFILES = \ + changenames.glade \ + changetype.glade \ + desbrowse.glade \ + eval.glade \ + eventcmp.glade \ + leak.glade \ + merge.glade \ + NotRelated.glade \ + ownereditor.glade \ + patchnames.glade \ + relcalc.glade \ + soundex.glade \ + summary.glade \ + unused.glade \ + verify.glade + +dist_pkgdata_DATA = $(GLADEFILES) + +# Clean up all the byte-compiled files +MOSTLYCLEANFILES = *pyc *pyo + +GRAMPS_PY_MODPATH = "../../" + +pycheck: + (export PYTHONPATH=$(GRAMPS_PY_MODPATH); \ + pychecker $(pkgdata_PYTHON)); diff --git a/src/plugins/MediaManager.py b/src/plugins/tool/MediaManager.py similarity index 100% rename from src/plugins/MediaManager.py rename to src/plugins/tool/MediaManager.py diff --git a/src/plugins/NotRelated.glade b/src/plugins/tool/NotRelated.glade similarity index 100% rename from src/plugins/NotRelated.glade rename to src/plugins/tool/NotRelated.glade diff --git a/src/plugins/NotRelated.py b/src/plugins/tool/NotRelated.py similarity index 100% rename from src/plugins/NotRelated.py rename to src/plugins/tool/NotRelated.py diff --git a/src/plugins/OwnerEditor.py b/src/plugins/tool/OwnerEditor.py similarity index 100% rename from src/plugins/OwnerEditor.py rename to src/plugins/tool/OwnerEditor.py diff --git a/src/plugins/PHPGedViewConnector.py b/src/plugins/tool/PHPGedViewConnector.py similarity index 100% rename from src/plugins/PHPGedViewConnector.py rename to src/plugins/tool/PHPGedViewConnector.py diff --git a/src/plugins/PatchNames.py b/src/plugins/tool/PatchNames.py similarity index 100% rename from src/plugins/PatchNames.py rename to src/plugins/tool/PatchNames.py diff --git a/src/plugins/Rebuild.py b/src/plugins/tool/Rebuild.py similarity index 100% rename from src/plugins/Rebuild.py rename to src/plugins/tool/Rebuild.py diff --git a/src/plugins/RebuildRefMap.py b/src/plugins/tool/RebuildRefMap.py similarity index 100% rename from src/plugins/RebuildRefMap.py rename to src/plugins/tool/RebuildRefMap.py diff --git a/src/plugins/RelCalc.py b/src/plugins/tool/RelCalc.py similarity index 100% rename from src/plugins/RelCalc.py rename to src/plugins/tool/RelCalc.py diff --git a/src/plugins/RemoveUnused.py b/src/plugins/tool/RemoveUnused.py similarity index 100% rename from src/plugins/RemoveUnused.py rename to src/plugins/tool/RemoveUnused.py diff --git a/src/plugins/ReorderIds.py b/src/plugins/tool/ReorderIds.py similarity index 100% rename from src/plugins/ReorderIds.py rename to src/plugins/tool/ReorderIds.py diff --git a/src/plugins/SortEvents.py b/src/plugins/tool/SortEvents.py similarity index 100% rename from src/plugins/SortEvents.py rename to src/plugins/tool/SortEvents.py diff --git a/src/plugins/SoundGen.py b/src/plugins/tool/SoundGen.py similarity index 100% rename from src/plugins/SoundGen.py rename to src/plugins/tool/SoundGen.py diff --git a/src/plugins/TestcaseGenerator.py b/src/plugins/tool/TestcaseGenerator.py similarity index 100% rename from src/plugins/TestcaseGenerator.py rename to src/plugins/tool/TestcaseGenerator.py diff --git a/src/plugins/Verify.py b/src/plugins/tool/Verify.py similarity index 100% rename from src/plugins/Verify.py rename to src/plugins/tool/Verify.py diff --git a/src/plugins/changenames.glade b/src/plugins/tool/changenames.glade similarity index 100% rename from src/plugins/changenames.glade rename to src/plugins/tool/changenames.glade diff --git a/src/plugins/changetype.glade b/src/plugins/tool/changetype.glade similarity index 100% rename from src/plugins/changetype.glade rename to src/plugins/tool/changetype.glade diff --git a/src/plugins/desbrowse.glade b/src/plugins/tool/desbrowse.glade similarity index 100% rename from src/plugins/desbrowse.glade rename to src/plugins/tool/desbrowse.glade diff --git a/src/plugins/eval.glade b/src/plugins/tool/eval.glade similarity index 100% rename from src/plugins/eval.glade rename to src/plugins/tool/eval.glade diff --git a/src/plugins/eventcmp.glade b/src/plugins/tool/eventcmp.glade similarity index 100% rename from src/plugins/eventcmp.glade rename to src/plugins/tool/eventcmp.glade diff --git a/src/plugins/leak.glade b/src/plugins/tool/leak.glade similarity index 100% rename from src/plugins/leak.glade rename to src/plugins/tool/leak.glade diff --git a/src/plugins/merge.glade b/src/plugins/tool/merge.glade similarity index 100% rename from src/plugins/merge.glade rename to src/plugins/tool/merge.glade diff --git a/src/plugins/ownereditor.glade b/src/plugins/tool/ownereditor.glade similarity index 100% rename from src/plugins/ownereditor.glade rename to src/plugins/tool/ownereditor.glade diff --git a/src/plugins/patchnames.glade b/src/plugins/tool/patchnames.glade similarity index 100% rename from src/plugins/patchnames.glade rename to src/plugins/tool/patchnames.glade diff --git a/src/plugins/phpgedview.glade b/src/plugins/tool/phpgedview.glade similarity index 100% rename from src/plugins/phpgedview.glade rename to src/plugins/tool/phpgedview.glade diff --git a/src/plugins/relcalc.glade b/src/plugins/tool/relcalc.glade similarity index 100% rename from src/plugins/relcalc.glade rename to src/plugins/tool/relcalc.glade diff --git a/src/plugins/soundex.glade b/src/plugins/tool/soundex.glade similarity index 100% rename from src/plugins/soundex.glade rename to src/plugins/tool/soundex.glade diff --git a/src/plugins/summary.glade b/src/plugins/tool/summary.glade similarity index 100% rename from src/plugins/summary.glade rename to src/plugins/tool/summary.glade diff --git a/src/plugins/unused.glade b/src/plugins/tool/unused.glade similarity index 100% rename from src/plugins/unused.glade rename to src/plugins/tool/unused.glade diff --git a/src/plugins/verify.glade b/src/plugins/tool/verify.glade similarity index 100% rename from src/plugins/verify.glade rename to src/plugins/tool/verify.glade