https://github.com/carbslinux/cpt-extra
Extra utilities for kiss
https://github.com/carbslinux/cpt-extra
Last synced: 11 months ago
JSON representation
Extra utilities for kiss
- Host: GitHub
- URL: https://github.com/carbslinux/cpt-extra
- Owner: CarbsLinux
- License: mit
- Created: 2020-05-15T10:30:27.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-03T22:27:45.000Z (over 5 years ago)
- Last Synced: 2025-01-29T07:30:38.397Z (about 1 year ago)
- Language: Shell
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
cpt-extra
---------
This is a repository for cpt utilities that do not belong with
the rest of the utilities. These are non-essential scripts that
someone could make use of in their scripts. Some of them can be
used for repository management, so I think maintainers could be
interested in a variety of utilities here.
Install
-------
Those scripts currently only depend on cpt (and dependencies of
cpt).
You can install by doing
find . -type f -name 'cpt-*' | while read -r script; do
install -Dm755 "$script" "/usr/local/bin/${script##*/}"
done
Or install the `cpt-extra` package on Carbs Linux.
Repository structure
--------------------
Scripts are dividied into categoried folders.
/
├── alt - scripts related to the alternatives system.
├── other - self explanatory
└── repo - scripts for repository management
└── git - scripts for git operations, commit messages etc.
New Scripts
-----------
New scripts should be added in a standard manner. You should
keep these in mind,
It should start with a docstring right after the shebang. No
empty line in between.
#!/bin/sh
# A docstring explaining the script
It should provide a usage if '--help' or '-h' is provided as an
argument. If you script takes any arguments, it should also display
a usage if not argument is given.
Usage should exit with 0 status code, and should be printed to the
standard output, not stderr. Usage should be a single line string
small and to the point.
case "$1" in ''|--help|-h) printf 'usage......'; exit 0; esac
Licensing
---------
This repository contains scripts that were initially in the package
manager itself. Some of these were initially authored by Dylan Araps.
License notices are made where needed.