Skip to content

Commit 4660fdb

Browse files
init
1 parent 388bc06 commit 4660fdb

File tree

14 files changed

+2094
-1
lines changed

14 files changed

+2094
-1
lines changed

LICENSE_LMGR

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
ArAr General public license
2+
version 2
3+
4+
This license is an open source license with restrictions for commercial and corporate use.
5+
Any project under this license ...
6+
CANNOT be used commercially
7+
CANNOT be redistributed with any sort of fee
8+
CANNOT be redistributed in any proprietary form (binary, obfuscated, etc.)
9+
CANNOT be patented
10+
CANNOT change to any more proprietary license
11+
CANNOT depend on any proprietary code/code blobs/software
12+
CANNOT be used by any corporate individual, company or organization
13+
14+
DOES NOT have any warranty
15+
16+
CAN be modified
17+
CAN be redistributed in an open source form
18+
CAN be used privately
19+
20+
21+
This license is non-corporate, individual use only.
22+
23+
The owner of this project holds NO LIABILITY if any unstable, redistributed or modified
24+
versions of this project harms you in any way.
25+
26+
27+
Redistributed or modified versions of this project...
28+
MUST have the same license as the original project
29+
MUST disclose the project's source
30+
31+
32+
OWNER: Ari Archer <[email protected]>
33+
PROJECT NAME: lmgr
34+
YEAR: 2022

Makefile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
include config.mk
2+
3+
all:
4+
@echo Run \'make install\' to install pkmgr.
5+
6+
install:
7+
@mkdir -p $(DESTDIR)$(PREFIX)/bin
8+
@mkdir -p $(DESTDIR)$(MANPREFIX)/man1
9+
@sed "s/VERSION/$(VERSION)/g" < pkmgr.1 > $(DESTDIR)$(MANPREFIX)/man1/pkmgr.1
10+
@cp -p pkmgr $(DESTDIR)$(PREFIX)/bin/pkmgr
11+
@chmod 644 $(DESTDIR)$(MANPREFIX)/man1/pkmgr.1
12+
@chmod 755 $(DESTDIR)$(PREFIX)/bin/pkmgr
13+
14+
uninstall:
15+
@rm -rf $(DESTDIR)$(PREFIX)/bin/pkmgr
16+
@rm -rf $(DESTDIR)$(MANPREFIX)/man1/pkmgr.1*

README.md

Lines changed: 63 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,63 @@
1-
# proctl
1+
# PROCTL
2+
3+
> Manage, switch between templated licenses, and set languages
4+
5+
<p align='center'>
6+
<img src='https://img.shields.io/badge/Maintained-Yes-green?colorA=434c5e&colorB=ff59f9&style=flat-square'>
7+
<img src='https://img.shields.io/github/last-commit/The-Repo-Club/proctl?colorA=434c5e&colorB=ff59f9&style=flat-square'>
8+
<img src='https://img.shields.io/github/repo-size/The-Repo-Club/proctl?colorA=434c5e&colorB=ff59f9&style=flat-square'>
9+
<img src='https://img.shields.io/github/issues/The-Repo-Club/proctl?colorA=434c5e&colorB=ff59f9&style=flat-square'>
10+
<img src='https://img.shields.io/github/stars/The-Repo-Club/proctl?colorA=434c5e&colorB=ff59f9&style=flat-square'>
11+
<img src='https://img.shields.io/github/forks/The-Repo-Club/proctl?colorA=434c5e&colorB=ff59f9&style=flat-square'>
12+
<img src="https://badges.pufler.dev/visits/The-Repo-Club/proctl?color=ff59f9&labelColor=434c5e&style=flat-square"/>
13+
<img src='https://img.shields.io/github/commit-activity/m/The-Repo-Club/proctl?colorA=434c5e&colorB=ff59f9&style=flat-square'>
14+
</p>
15+
16+
# Dependencies
17+
18+
- coreutils for stuff like `head`, `awk`, ...
19+
- fzf (optional) for `-pick-license`, `-pick-language` flags
20+
- git (optional) for generating info in default config automatically
21+
- ncurses (optional) for colours (`PROCTL_COLOURS=1`) using `tput`
22+
23+
# Installation
24+
25+
# How do I install proctl?
26+
27+
[![basher install](https://www.basher.it/assets/logo/basher_install.svg)](https://github.com/basherpm/basher)
28+
29+
### on Arch BTW?
30+
31+
Follow one of the 3 simple ways to install below.
32+
33+
Download: [PKGBUILD](https://github.com/The-Repo-Club/ArchAUR/raw/main/proctl/PKGBUILD) and make with `makepkg -sfi`
34+
35+
Install: [Custom Repo](https://arch.therepo.club/) then just use `pacman -S proctl`
36+
37+
AUR: [YAY](https://aur.archlinux.org/packages/proctl) just use `yay -S proctl`
38+
39+
## Manual
40+
41+
```bash
42+
git clone https://github.com/The-Repo-Club/proctl && cd proctl
43+
44+
chmod a+rx proctl
45+
46+
sudo install -Dm755 proctl /usr/local/bin
47+
```
48+
49+
# Configuration
50+
51+
Configuration can be found in `~/.config/license.conf` and `~/.config/license.conf`, it is automatically
52+
generated on first launch or with the flag `-new-config`
53+
54+
Example config:
55+
56+
```sh
57+
#!/usr/bin/env sh
58+
59+
export AUTHOR_NAME='Joe Doe'
60+
export AUTHOR_EMAIL='[email protected]'
61+
export AUTHOR_WEBSITE='https://joe.doe/'
62+
export TEMPLATE_DIR='/usr/share/proctl'
63+
```

config.mk

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# repomenu version
2+
VERSION=2022.02.16
3+
4+
# paths
5+
PREFIX=/usr
6+
MANPREFIX=$(PREFIX)/share/man

example/languages/bash

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
# -*-coding:utf-8 -*-
3+
# -------------------------------------------------------------------------
4+
# Path - /usr/bin/{{PROJECT_NAME}}
5+
# Git - {{AUTHOR_GIT}}
6+
# Author - {{AUTHOR_NAME}} [{{AUTHOR_EMAIL}}]
7+
# Start On - {{CURRENT_DATE}}
8+
# Modified On - {{CURRENT_DATE}}
9+
# -------------------------------------------------------------------------

0 commit comments

Comments
 (0)