Generating Vala Project
valagen is shell tool for creating Vala project.
Developed in bash code: 100%.
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.
Table of Contents
Installation
Navigate to release page download and extract release archive.
To install valagen type the following
tar xvzf valagen-x.y.tar.gz
cd valagen-x.y
cp -R ~/sh_tool/bin/ /root/scripts/valagen/ver.x.y/
cp -R ~/sh_tool/conf/ /root/scripts/valagen/ver.x.y/
cp -R ~/sh_tool/log/ /root/scripts/valagen/ver.x.y/
Self generated setup script and execution
./valagen_setup.sh
[setup] installing App/Tool/Script valagen
Tue 23 Nov 2021 05:54:54 PM CET
[setup] clean up App/Tool/Script structure
[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/valagen/ver.2.0/
├── bin/
│ ├── center.sh
│ ├── display_logo.sh
│ └── valagen.sh
├── conf/
│ ├── project_set.cfg
│ ├── template/
│ │ ├── autogen.template
│ │ ├── configure_ac.template
│ │ ├── desktop_in.template
│ │ ├── makefile_am.template
│ │ ├── readme.template
│ │ ├── v_editorconfig.template
│ │ └── v_source.template
│ ├── valagen.cfg
│ ├── valagen.logo
│ └── valagen_util.cfg
└── log/
└── valagen.log
4 directories, 15 files
lrwxrwxrwx 1 root root 44 Nov 23 17:54 /root/bin/valagen -> /root/scripts/valagen/ver.2.0/bin/valagen.sh
Or You can use docker to create image/container.
Usage
# Create symlink for shell tool
ln -s /root/scripts/valagen/ver.x.y/bin/valagen.sh /root/bin/valagen
# Setting PATH
export PATH=${PATH}:/root/bin/
# Creating Vala project
valagen ftool "/opt" "Font generator"
valagen ver.2.0
Tue 23 Nov 2021 07:20:05 PM CET
[check_root] Check permission for current session? [ok]
[check_root] Done
██
░██
██ ██ ██████ ░██ ██████ █████ █████ ███████
░██ ░██ ░░░░░░██ ░██ ░░░░░░██ ██░░░██ ██░░░██░░██░░░██
░░██ ░██ ███████ ░██ ███████ ░██ ░██░███████ ░██ ░██
░░████ ██░░░░██ ░██ ██░░░░██ ░░██████░██░░░░ ░██ ░██
░░██ ░░████████ ███░░████████ ░░░░░██░░██████ ███ ░██
░░ ░░░░░░░░ ░░░ ░░░░░░░░ █████ ░░░░░░ ░░░ ░░
░░░░░
Info github.io/valagen ver.2.0
Issue github.io/issue
Author vroncevic.github.io
[valagen] Loading basic and util configuration!
100% [================================================]
[load_conf] Loading App/Tool/Script configuration!
[check_cfg] Checking configuration file [/root/scripts/valagen/ver.2.0/conf/valagen.cfg] [ok]
[check_cfg] Done
[load_conf] Done
[load_util_conf] Load module configuration!
[check_cfg] Checking configuration file [/root/scripts/valagen/ver.2.0/conf/valagen_util.cfg] [ok]
[check_cfg] Done
[load_util_conf] Done
[load_util_conf] Load module configuration!
[check_cfg] Checking configuration file [/root/scripts/valagen/ver.2.0/conf/project_set.cfg] [ok]
[check_cfg] Done
[load_util_conf] Done
[valagen] Generating project structure!
[valagen] Checking directory [/opt/]? [ok]
[valagen] Generating directory [/opt/ftool/]
[valagen] Generating file [/opt/ftool/autogen.sh]
[valagen] Generating file [/opt/ftool/configure.ac]
[valagen] Generating file [/opt/ftool/ftool.desktop.in]
[valagen] Generating file [/opt/ftool/Makefile.am]
[valagen] Generating file [/opt/ftool/ftool.vala]
[valagen] Generating file [/opt/ftool/.editorconfig]
[valagen] Generating file [/opt/ftool/README]
[valagen] Set owner!
[valagen] Set permission!
[logging] Checking directory [/root/scripts/valagen/ver.2.0/log/]? [ok]
[logging] Write info log!
[logging] Done
[valagen] Done
[check_tool] Checking tool [/usr/bin/tree]? [ok]
[check_tool] Done
/opt/ftool/
├── autogen.sh
├── configure.ac
├── ftool.desktop.in
├── ftool.vala
├── Makefile.am
└── README
0 directories, 6 files
Dependencies
valagen requires next modules and libraries
Shell tool structure
valagen is based on MOP.
Shell tool structure
sh_tool/
├── bin/
│ ├── center.sh
│ ├── display_logo.sh
│ └── valagen.sh
├── conf/
│ ├── project_set.cfg
│ ├── template/
│ │ ├── autogen.template
│ │ ├── configure_ac.template
│ │ ├── desktop_in.template
│ │ ├── makefile_am.template
│ │ ├── readme.template
│ │ ├── v_editorconfig.template
│ │ └── v_source.template
│ ├── valagen.cfg
│ ├── valagen.logo
│ └── valagen_util.cfg
└── log/
└── valagen.log
Docs
More documentation and info at
Copyright and licence
Copyright (C) 2016 - 2024 by vroncevic.github.io/valagen
valagen 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.