The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

src - source management script.

    - convert to uft-8;
    - strip BOM header;
    - convert tabs to spaces;
    - trim trailing spaces;
    - trim trailing empty strings;
    - convert line endings to unix style (\x0A);

Exit codes:

    0 - source is valid;
    1 - run-time error;
    2 - params error;
    3 - source error;

REQUIRED ARGUMENTS

OPTIONS

<source>

Specifies sources for processing. Use "-" for STDIN mode.

-a [=] <action> | --action [=] <action>

Action to process. Available actions:

    decompress    - unpack sources, DEFAULT;
    compress      - pack sources, comments will be deleted;
    obfuscate     - applied only for javascript and embedded javascripts, comments will be deleted;
    hg-pre-commit - mercurial pre-commit hook, recognize "#no critic" in commit message;
-t [=] <source-type> | --type [=] <source-type>

Define source files to process. Mandatory, if <source> is a directory. Recognized types: perl, html, css, js.

-f [=] <filename> | --filename [=] <filename>

Mandatory, if <source> is a STDIN.

--dry-run

Don't save changes.

--pause

Don't close console after script finished.