https://github.com/vroncevic/gen_pm
Generating Perl Package Module
https://github.com/vroncevic/gen_pm
bash development linux macos perl-module project-template qnx shell
Last synced: 2 months ago
JSON representation
Generating Perl Package Module
- Host: GitHub
- URL: https://github.com/vroncevic/gen_pm
- Owner: vroncevic
- License: gpl-3.0
- Created: 2016-06-27T14:37:54.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2025-12-11T20:19:46.000Z (6 months ago)
- Last Synced: 2025-12-13T00:50:05.142Z (6 months ago)
- Topics: bash, development, linux, macos, perl-module, project-template, qnx, shell
- Language: Shell
- Homepage: https://vroncevic.github.io/gen_pm
- Size: 6.62 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Generating Perl Package Module

**gen_pm** is shell tool for generating Perl package.
Developed in **[bash](https://en.wikipedia.org/wiki/Bash_(Unix_shell))** code: **100%**.
[](https://github.com/vroncevic/gen_pm/actions/workflows/gen_pm_shell_checker.yml)
The README is used to introduce the tool and provide instructions on
how to install the tool, any machine dependencies it may have and any
other information that should be provided before the tool is installed.
[](https://github.com/vroncevic/gen_pm/issues) [](https://github.com/vroncevic/gen_pm/graphs/contributors)
**Table of Contents**
- [Installation](#installation)
- [Usage](#usage)
- [Dependencies](#dependencies)
- [Shell tool structure](#shell-tool-structure)
- [Docs](#docs)
- [Copyright and licence](#copyright-and-licence)
### Installation

Navigate to release **[page](https://github.com/vroncevic/gen_pm/releases)** download and extract release archive.
To install **gen_pm** type the following:
```bash
tar xvzf gen_pm-4.0.tar.gz
cd gen_pm-4.0
cp -R ~/sh_tool/bin/ /root/scripts/gen_pm/ver.4.0/
cp -R ~/sh_tool/conf/ /root/scripts/gen_pm/ver.4.0/
cp -R ~/sh_tool/log/ /root/scripts/gen_pm/ver.4.0/
```
Self generated setup script and execution
```bash
./gen_pm_setup.sh
[setup] installing App/Tool/Script gen_pm
Thu Dec 4 07:34:41 PM CET 2025
[setup] copy App/Tool/Script structure
[setup] remove github editor configuration files
[setup] set App/Tool/Script permission
[setup] create symbolic link of App/Tool/Script
[setup] done
/root/scripts/gen_pm/ver.4.0/
├── bin/
│ └── gen_pm.sh
├── conf/
│ ├── gen_pm.cfg
│ ├── gen_pm.logo
│ └── gen_pm_util.cfg
└── log/
└── gen_pm.log
3 directories, 7 files
lrwxrwxrwx 1 root root 42 Dec 4 07:34 /root/bin/gen_pm -> /root/scripts/gen_pm/ver.4.0/bin/gen_pm.sh
```
Or You can use docker to create image/container.
### Usage
```bash
# Create symlink for shell tool
ln -s /root/scripts/gen_pm/ver.4.0/bin/gen_pm.sh /root/bin/gen_pm
# Setting PATH
export PATH=${PATH}:/root/bin/
# Generating Perl package
gen_pm FileCheck
gen_pm ver.4.0
Thu Dec 4 07:34:51 PM CET 2025
[check_root] Check permission for current session? [ok]
[check_root] Done
█████ █████ ███████ ██████ ██████████
██░░░██ ██░░░██░░██░░░██ ░██░░░██░░██░░██░░██
░██ ░██░███████ ░██ ░██ ░██ ░██ ░██ ░██ ░██
░░██████░██░░░░ ░██ ░██ ░██████ ░██ ░██ ░██
░░░░░██░░██████ ███ ░██ █████░██░░░ ███ ░██ ░██
█████ ░░░░░░ ░░░ ░░ ░░░░░ ░██ ░░░ ░░ ░░
░░░░░ ░░
Info github.io/gen_pm ver.4.0
Issue github.io/issue
Author vroncevic.github.io
[gen_pm] Loading basic and util configuration!
100% [================================================]
[load_conf] Loading App/Tool/Script configuration!
[check_cfg] Checking configuration file [/root/scripts/gen_pm/ver.4.0/conf/gen_pm.cfg] [ok]
[check_cfg] Done
[load_conf] Done
[load_util_conf] Load module configuration!
[check_cfg] Checking configuration file [/root/scripts/gen_pm/ver.4.0/conf/gen_pm_util.cfg] [ok]
[check_cfg] Done
[load_util_conf] Done
[check_tool] Checking tool [/usr/bin/h2xs]? [ok]
[check_tool] Done
[gen_pm] Generating module [FileCheck]
Defaulting to backwards compatibility with perl 5.30.0
If you intend this module to be compatible with earlier perl versions, please
specify a minimum perl version with the -b option.
Writing FileCheck/lib/FileCheck.pm
Writing FileCheck/Makefile.PL
Writing FileCheck/README
Writing FileCheck/t/FileCheck.t
Writing FileCheck/Changes
Writing FileCheck/MANIFEST
[gen_pm] Set owner!
[gen_pm] Set permission!
[gen_pm] Done
[logging] Checking directory [/root/scripts/gen_pm/ver.4.0/log/]? [ok]
[logging] Write info log!
[logging] Done
[check_tool] Checking tool [/usr/bin/tree]? [ok]
[check_tool] Done
FileCheck/
├── Changes
├── lib/
│ └── FileCheck.pm
├── Makefile.PL
├── MANIFEST
├── README
└── t/
└── FileCheck.t
2 directories, 6 files
```
### Dependencies
**gen_pm** requires next modules and libraries
* sh_util [https://github.com/vroncevic/sh_util](https://github.com/vroncevic/sh_util)
### Shell tool structure
**gen_pm** is based on MOP.
Shell tool structure
```bash
sh_tool/
├── bin/
│ └── gen_pm.sh
├── conf/
│ ├── gen_pm.cfg
│ ├── gen_pm.logo
│ └── gen_pm_util.cfg
└── log/
└── gen_pm.log
```
### Docs
[](https://gen-pm.readthedocs.io/projects/gen_pm/en/latest/?badge=latest)
More documentation and info at
* [https://gen_pm.readthedocs.io/en/latest/](https://gen-pm.readthedocs.io/en/latest/)
* [https://www.gnu.org/software/bash/manual/](https://www.gnu.org/software/bash/manual/)
### Copyright and licence
[](https://www.gnu.org/licenses/gpl-4.0) [](https://opensource.org/licenses/Apache-2.0)
Copyright (C) 2016 - 2026 by [vroncevic.github.io/gen_pm](https://vroncevic.github.io/gen_pm)
**gen_pm** is free software; you can redistribute it and/or modify
it under the same terms as Bash itself, either Bash version 4.2.47 or,
at your option, any later version of Bash 4 you may have available.
Lets help and support FSF.
[](https://my.fsf.org/)
[](https://my.fsf.org/donate/)