a tiny script I use to help me setup multiple local::lib installations
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README
bootstrap_locallib.pl

README

NAME
    bootstrap-locallib.pl, version 0.03

SYNOPSIS
      perl [PATH]/bootstrap-locallib.pl OPTIONS

      Option Summary

        "t|target=s" => \$target,
        "b|basedir=s" => \$basedir,
        "a|affix=s" => \$affix,
        "w|whichperl=s" => \$whichperl,
        "d|local_env_helper=s" => \$env_helper,
        'h|help'       => \$help

DESCRIPTION
    Script to make it easier to install and used the excellent local::lib
    perl module. For more information about local::lib please see:

        http://search.cpan.org/dist/local-lib

    This tool is designed to make it easier to install and manage multiple
    local::lib setups. However, the tool itself is relatively easy to setup,
    you may wish to read and follow the instructions linked about.

    This script performs two services: 1) provides a single commandline
    script which can be used to install multiple local::libs, 2) provides a
    helper script which you can use to initialize an installed local::lib
    for a given command

EXAMPLES
    ALl examples assume you have the file 'bootstrap-locallib.pl' downloaded
    into a directory in your $PATH, and that it's been set to executable.

    Deploy a local::lib to $HOME/local-lib5 for the default interpreter

        bootstrap-locallib.pl

    Deploy a local::lib to $HOME/myapp-local-lib5

        bootstrap-locallib.pl affix="myapp-local-lib5"

    Deploy a local::lib to /usr/local/lib/myapp-local-lib6

        bootstrap-locallib.pl basedir="/usr/local/lib" affix="myapp-local-lib5"

    Deploy a local::lib to ./local

        bootstrap-locallib.pl --target ./local

    Invoke helper created in the above example to initialize local::lib for
    the current shell.

        ./local/bin/env perl -V

    Run straight from the Internet.

        curl -L http://github.com/jjn1056/bootstrap-locallib.pl/blob/master/bootstrap_locallib.pl | perl - --target local