Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Item2335: Fix up ManageOrphanePages so that it can be included from o…
…ther webs. Added WebOrphans topics to System, Main, Sandbox and _default webs. git-svn-id: http://svn.foswiki.org/trunk/OrphansPlugin@5444 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
- Loading branch information
PaulHarvey
authored and
PaulHarvey
committed
Nov 7, 2009
1 parent
5c99521
commit ffd7397
Showing
8 changed files
with
52 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
%META:TOPICINFO{author="ProjectContributor" date="1231502400" format="1.1" version="$Rev: 4800 $"}% | ||
%META:TOPICPARENT{name="WebManage"}% | ||
%INCLUDE{"%SYSTEMWEB%.%TOPIC%"}% |
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,3 @@ | ||
%META:TOPICINFO{author="ProjectContributor" date="1231502400" format="1.1" version="$Rev: 4800 $"}% | ||
%META:TOPICPARENT{name="WebManage"}% | ||
%INCLUDE{"%SYSTEMWEB%.%TOPIC%"}% |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
%META:TOPICINFO{author="ProjectContributor" date="1231502400" format="1.1" version="$Rev: 4109 $"}% | ||
%META:TOPICPARENT{name="WebManage"}% | ||
%INCLUDE{"ManageOrphanedPages"}% |
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,3 @@ | ||
%META:TOPICINFO{author="ProjectContributor" date="1231502400" format="1.1" version="$Rev: 4800 $"}% | ||
%META:TOPICPARENT{name="WebManage"}% | ||
%INCLUDE{"%SYSTEMWEB%.%TOPIC%"}% |
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,6 +1,10 @@ | ||
pub/System/OrphansPlugin/wikiringlogo20x20.png 0644 | ||
pub/System/OrphansPlugin/logo.png 0644 | ||
data/System/OrphansPlugin.txt 0644 | ||
data/Main/WebOrphans.txt 0644 | ||
data/Sandbox/WebOrphans.txt 0644 | ||
data/System/ManageOrphanedPages.txt 0644 | ||
data/System/WebOrphans.txt 0644 | ||
data/_default/WebOrphans.txt 0644 | ||
lib/Foswiki/Plugins/OrphansPlugin.pm 0644 | ||
lib/Foswiki/Plugins/OrphansPlugin/Orphans.pm 0644 | ||
pub/System/OrphansPlugin/logo.png 0644 | ||
pub/System/OrphansPlugin/wikiringlogo20x20.png 0644 |
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,16 +1,37 @@ | ||
#!/usr/bin/perl -w | ||
# | ||
# Build file for OrphansPlugin | ||
# | ||
package OrphansPluginBuild; | ||
|
||
# Standard preamble | ||
use strict; | ||
|
||
BEGIN { | ||
foreach my $pc (split(/:/, $ENV{FOSWIKI_LIBS})) { | ||
unshift @INC, $pc; | ||
} | ||
unshift @INC, split( /:/, $ENV{FOSWIKI_LIBS} ); | ||
} | ||
|
||
use Foswiki::Contrib::Build; | ||
|
||
$build = new Foswiki::Contrib::Build("OrphansPlugin"); | ||
# Declare our build package | ||
package BuildBuild; | ||
use base qw( Foswiki::Contrib::Build ); | ||
|
||
sub new { | ||
my $class = shift; | ||
return bless( $class->SUPER::new( "OrphansPlugin" ), $class ); | ||
} | ||
|
||
# Example: Override the build target | ||
sub target_build { | ||
my $this = shift; | ||
|
||
$this->SUPER::target_build(); | ||
|
||
# Do other build stuff here | ||
} | ||
|
||
package main; | ||
|
||
# Create the build object | ||
my $build = new BuildBuild(); | ||
|
||
# Build the target on the command line, or the default target | ||
$build->build($build->{target}); | ||
|