Name

spvmdist - Generating SPVM Distribution

Usage

Usage: spvmdist [OPTIONS] CLASS_NAME [DIR]
  
  spvmdist Foo
  spvmdist Foo My-Foo
  spvmdist Foo::Bar::Baz
  spvmdist --native c Foo
  spvmdist --native c++ Foo
  spvmdist --precompile Foo
  spvmdist --resource Foo

Options:
  -h, --help                     Show this message
  -v, --version                  Show the version
  -q, --quiet                    Quiet output
  -f, --force                    Force to generate files
  --native LANGUAGE              Output a distributioon for a native class
  --precompile                   Add precompilattion setting
  --only-lib-files               Output only the files in "lib" directory
  --no-pm-file                   Don't output Perl module(.pm) file
  --resource                     Output a distributioon for for a resource
  --genlib                       Shortcut for --only-lib-files --no-pm-file
  --user-name NAME               User name
  --user-email EMAIL             User email
  --version_from CLASS_NAME      Add version_from statement

Description

spvmdist is the command to generate a SPVM distribution.

Details

spvmdist [OPTIONS] CLASS_NAME [DIR]

OPTIONS are options. These are optional.

<class name> is the name of the class contained in the distribution.

DIR is the output directory. This is optional. The default is the current directory.

These are the output files when <class name> is MyClass.

SPVM-MyClass
SPVM-MyClass/.gitattributes
SPVM-MyClass/MANIFEST.SKIP
SPVM-MyClass/.gitignore
SPVM-MyClass/LICENSE
SPVM-MyClass/Makefile.PL
SPVM-MyClass/t
SPVM-MyClass/t/basic.t
SPVM-MyClass/t/lib
SPVM-MyClass/t/lib/SPVM
SPVM-MyClass/t/lib/SPVM/TestCase
SPVM-MyClass/t/lib/SPVM/TestCase/MyClass.spvm
SPVM-MyClass/README.md
SPVM-MyClass/Changes
SPVM-MyClass/lib
SPVM-MyClass/lib/SPVM
SPVM-MyClass/lib/SPVM/MyClass.spvm
SPVM-MyClass/lib/SPVM/MyClass.pm

If a file is already exists, the file is not overwritten.

Options

--help

--help

Outputs how to use the spvmdist command to standard output.

-h

-h

Same as "--help".

--version

--version

Outputs the version of the spvmdist command to standard output. This version is the same as the version of SPVM.

-v

-v

Same as "--version".

--quiet

--quiet

Suppresses messages from the spvmdist command.

-q

-q

Same as "--quiet".

--force

--force

If this option is specified and files as the same name as the files output by the spvmdist command are exists, the files are overwritten.

-f

-f

Same as "--force".

--native

--native LANGUAGE

Outputs a distribution for a native class specified in LANGUAGE.

The default is c.

The List of Option Values:

  • c

    The C language.

  • c++

    C++

--precompile

--precompile

Adds precompilation setting. If the class has precompilation methods, it is good to specify this option.

--only-lib-files

--only-lib-files

Output only files output to the lib directory. These files are a SPVM class file (.spvm) and a Perl module file (.pm).

--no-pm-file

--no-pm-file

Dose not output a Perl module file (.pm).

--resource

--resource

Output a distribution for a resource.

--genlib

--genlib

Specifies both "--only-lib-files" and "--no-pm-file".

--user-name

--user-name NAME

Specifies the user name NAME.

--user-email

--user-email EMAIL

Specifies the user email EMAIL.

--version_from

--version_from CLASS_NAME

Add version_from statement given CLASS_NAME.

Copyright & License

Copyright 2023 Yuki Kimoto. All Rights Reserved.

MIT License.