[Fusionforge-commits] r8292 - trunk/gforge/common/docman/engine

Franck VILLAUME nerville at libremir.placard.fr.eu.org
Fri Oct 16 16:46:01 CEST 2009


Author: nerville
Date: 2009-10-16 16:46:00 +0200 (Fri, 16 Oct 2009)
New Revision: 8292

Removed:
   trunk/gforge/common/docman/engine/parser_pdf.php.php
Modified:
   trunk/gforge/common/docman/engine/parser_list.txt
Log:
useless file and missing header

Modified: trunk/gforge/common/docman/engine/parser_list.txt
===================================================================
--- trunk/gforge/common/docman/engine/parser_list.txt	2009-10-16 14:34:43 UTC (rev 8291)
+++ trunk/gforge/common/docman/engine/parser_list.txt	2009-10-16 14:46:00 UTC (rev 8292)
@@ -1,9 +1,29 @@
 # parser_list.txt
-# Liste des documents connus avec le parseur associé
-# Cette liste est utilisée pour fabriquer les mots clé pour la recherche dans le contenu des documents
-# Le format texte est traité directement par un parseur approprié (engine/parser_text.py).
-# Les autres formats doivent être convertis au format texte avant d'être envoyées au parseur de base.
-text/plain	parser_text.php
-application/pdf	parser_pdf.php
-application/vnd.sun.xml.writer	parser_oo.php
+#
+# FusionForge document search engine
+#
+# Copyright 2005, Fabio Bertagnin
+#
+# This file is part of FusionForge.
+#
+# FusionForge 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.
+#
+# FusionForge 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 FusionForge; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+# USA
+#
+# Tupple : type file   parser file
+# This list is used by the ParserData class to find if any parser is available for that type of file
+text/plain				parser_text.php
+application/pdf				parser_pdf.php
+application/vnd.sun.xml.writer		parser_oo.php
 application/vnd.oasis.opendocument.text	parser_oo.php

Deleted: trunk/gforge/common/docman/engine/parser_pdf.php.php
===================================================================
--- trunk/gforge/common/docman/engine/parser_pdf.php.php	2009-10-16 14:34:43 UTC (rev 8291)
+++ trunk/gforge/common/docman/engine/parser_pdf.php.php	2009-10-16 14:46:00 UTC (rev 8292)
@@ -1,53 +0,0 @@
-#! /usr/bin/php5
-<?php
-/**
- * FusionForge document search engine
- *
- * Copyright 2005, Fabio Bertagnin
- *
- * This file is part of FusionForge.
- *
- * FusionForge 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.
- * 
- * FusionForge 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 FusionForge; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- */
-
-require_once $gfcommon.'docman/engine/parser_text.inc.php';
-
-
-if ($argc != 2)
-{
-	echo "Usage : parser_pdf.php <filename>\n";
-	exit (1);
-}
-
-$fichin = $argv[1];
-if (!is_file($fichin)) exit (1);
-$fichout = "/tmp/gfo".rand(10000, 99999).".tmp";
-$cmd = "/usr/bin/pdftotext $fichin - > $fichout";
-$res = shell_exec($cmd);
-
-
-$rep = parser_text($fichout);
-// envoi du résultat sur stdout
-echo "$rep";
-// efface les fichiers témporaires
-unlink ($fichout);
-
-// Local Variables:
-// mode: php
-// c-file-style: "bsd"
-// End:
-
-?>




More information about the Fusionforge-commits mailing list