Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Item458: coonverted to Foswiki namespace and tested
git-svn-id: http://svn.foswiki.org/trunk/NativeSearchContrib@1326 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
- Loading branch information
CrawfordCurrie
authored and
CrawfordCurrie
committed
Dec 13, 2008
1 parent
235030b
commit 3a1c6cd
Showing
14 changed files
with
52 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
.../Contrib/NativeSearchContrib/DEPENDENCIES → .../Contrib/NativeSearchContrib/DEPENDENCIES
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# Dependencies for NativeSearchContrib | ||
# Example: | ||
# Time::ParseDate,>=2003.0211,cpan,Required. | ||
# TWiki::Plugins,>=1.15,perl,TWiki 4.1 release. | ||
ExtUtils::MakeMaker,>=0,cpan,Required for building makefiles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Release manifest for NativeSearchContrib | ||
data/System/NativeSearchContrib.txt 0644 Documentation | ||
lib/Foswiki/Contrib/NativeSearchContrib.pm 0444 | ||
lib/Foswiki/Store/SearchAlgorithms/Native.pm 0444 | ||
tools/native_search/FoswikiNativeSearch.pm 0555 | ||
tools/native_search/cgrep.c 0555 | ||
tools/native_search/Makefile.PL 0555 | ||
tools/native_search/test.pl 0555 | ||
tools/native_search/FoswikiNativeSearch.xs 0555 | ||
pub/System/NativeSearchContrib/wikiringlogo20x20.png 0660 | ||
pub/System/NativeSearchContrib/logo.gif 0660 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/perl -w | ||
BEGIN { | ||
unshift @INC, split( /:/, $ENV{FOSWIKI_LIBS} ); | ||
} | ||
use Foswiki::Contrib::Build; | ||
|
||
# Create the build object | ||
$build = new Foswiki::Contrib::Build('NativeSearchContrib'); | ||
|
||
# Build the target on the command line, or the default target | ||
$build->build($build->{target}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes
File renamed without changes
6 changes: 3 additions & 3 deletions
6
tools/native_search/NativeTWikiSearch.pm → tools/native_search/FoswikiNativeSearch.pm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
# Copyright (C) 2007 WikiRing http://wikiring.com All Rights Reserved | ||
# Author: Crawford Currie | ||
# Perl interface to NativeTWikiSearch xs module | ||
package NativeTWikiSearch; | ||
# Perl interface to FoswikiNativeSearch xs module | ||
package FoswikiNativeSearch; | ||
|
||
require Exporter; | ||
require DynaLoader; | ||
@ISA = qw(Exporter DynaLoader); | ||
@EXPORT = qw( cgrep ); | ||
|
||
bootstrap NativeTWikiSearch; | ||
bootstrap FoswikiNativeSearch; | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
#!/usr/bin/perl | ||
# Test program for NativeTWikiSearch | ||
# Test program for FoswikiNativeSearch | ||
# If it is correctly installed, this program will accept parameters like grep | ||
# e.g. | ||
# perl test.pl -i -l NativeTWikiSearch test.pl Makefile.PL NativeTWikiSearch.xs | ||
# perl test.pl -i -l FoswikiNativeSearch test.pl Makefile.PL FoswikiNativeSearch.xs | ||
# | ||
use NativeTWikiSearch; | ||
use FoswikiNativeSearch; | ||
die <<MOAN unless scalar(@ARGV); | ||
I need parameters, like grep! | ||
Try: | ||
perl test.pl -i -l NativeTWikiSearch test.pl Makefile.PL NativeTWikiSearch.xs | ||
perl test.pl -i -l FoswikiNativeSearch test.pl Makefile.PL FoswikiNativeSearch.xs | ||
If it returns at least 3 filenames and doesn't crash, it worked. | ||
MOAN | ||
my $result = NativeTWikiSearch::cgrep(\@ARGV); | ||
my $result = FoswikiNativeSearch::cgrep(\@ARGV); | ||
print "RESULT\n".join("\n", @$result)."\n"; |