Skip to content

Commit

Permalink
symlink script for configuration disambiguation (heh) and plugin sepa…
Browse files Browse the repository at this point in the history
…ration prep
  • Loading branch information
jpearsall committed Dec 29, 2012
1 parent c043f3c commit 8ebccd2
Show file tree
Hide file tree
Showing 12 changed files with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions bin/makelinks
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.

0 comments on commit 8ebccd2

Please sign in to comment.