diff options
Diffstat (limited to 'install-lib.pl')
-rwxr-xr-x | install-lib.pl | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/install-lib.pl b/install-lib.pl new file mode 100755 index 0000000..650ae9f --- /dev/null +++ b/install-lib.pl @@ -0,0 +1,19 @@ +#! /usr/bin/perl -w + +use File::Copy; +use File::Path qw(make_path); + +foreach(@INC) +{ + if (/\/local\//) + { + print "Installing in $_...\n"; + + make_path($_); + + copy('cleware.pm', $_); + copy('cleware.so', $_); + + last; + } +} |