-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
symlink script for configuration disambiguation (heh) and plugin sepa…
…ration prep
- Loading branch information
Showing
12 changed files
with
49 additions
and
0 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,49 @@ | ||
#!/usr/bin/perl | ||
use strict; | ||
use warnings; | ||
|
||
use DirHandle; | ||
use FindBin qw($Bin); | ||
use lib "$Bin/../lib"; | ||
|
||
use Pod::Usage; | ||
|
||
sub main | ||
{ | ||
my $conf_path = "$Bin/../etc/plugins/"; | ||
my $plugin_path = "$Bin/../lib/PipSqueek/Plugin/"; | ||
|
||
my $d_conf = DirHandle->new($plugin_path); | ||
if( defined $d_conf ) | ||
{ | ||
while( defined( $_ = $d_conf->read ) ) | ||
{ | ||
if( $_ =~ /\.conf$/ ) | ||
{ | ||
if( -d $conf_path ) | ||
{ | ||
symlink( $plugin_path.$_, $conf_path.$_) or die "Unable to symlink $plugin_path"."$_!\n"; | ||
} | ||
} | ||
} | ||
undef $d_conf; | ||
} | ||
|
||
return 0; | ||
} | ||
|
||
|
||
exit( &main(@ARGV) ); | ||
|
||
|
||
__END__ | ||
=head1 NAME | ||
makelinks - script to make symlinks between the plugins directory and etc | ||
=head1 DESCRIPTION | ||
B<PipSqueek> is a perl IRC bot with many features. See http://pipsqueek.net/ | ||
=cut | ||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.