Dmytro Zagashev > Pcore-v0.11.4 > src

Download:
Pcore-v0.11.4.tar.gz

Annotate this POD

Website

View/Report Bugs
Source  

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>

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.

syntax highlighting: