Manual setup part

This commit is contained in:
Ohio2 2021-07-01 19:21:30 +02:00
parent 2c9d523f9d
commit edf3f7dbc8
2 changed files with 11 additions and 12 deletions

11
man
View file

@ -1,13 +1,10 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.48.3. .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.48.3.
.TH SPKG "1" "June 2021" "spkg 21.06.30.1b" "User Commands" .TH SPKG "1" "July 2021" "spkg 21.07.01.2a.nr" "User Commands"
.SH NAME .SH NAME
spkg \- manual page for spkg 21.06.30.1b spkg \- manual page for spkg 21.07.01.2a.nr
.SH DESCRIPTION .SH DESCRIPTION
sPKG via WGET, to cache, just type in sudo spkg cache save. .IP
.TP How to use: install to install, update to update, list to list, remove to remove.
to install, just type in sudo spkg install.
to update, just type in sudo spkg update.
to setup (IMPORTANT!!!), just type in sudo spkg setup
.SH "SEE ALSO" .SH "SEE ALSO"
The full documentation for The full documentation for
.B spkg .B spkg

12
spkg
View file

@ -8,6 +8,11 @@ setup() {
chmod +x "${prefix}"/bin/spkg chmod +x "${prefix}"/bin/spkg
mkdir "${prefix}"/etc/ mkdir "${prefix}"/etc/
mv os-release "${prefix}"/etc/ mv os-release "${prefix}"/etc/
mkdir "${prefix}"/usr/
mkdir "${prefix}"/usr/share
mkdir "${prefix}"/usr/share/man
mkdir "${prefix}"/usr/share/man/man1 "${prefix}"/usr/share/man/man2 "${prefix}"/usr/share/man/man3 "${prefix}"/usr/share/man/man4 "${prefix}"/usr/share/man/man5 "${prefix}"/usr/share/man/man6 "${prefix}"/usr/share/man/man7 "${prefix}"/usr/share/man/man8 "${prefix}"/usr/share/man/man9
install -Dm644 ./man /usr/share/man1/spkg.1
} }
removepkg() { removepkg() {
pkgname=$1 pkgname=$1
@ -60,13 +65,10 @@ dblist() {
cat /var/cache/spkg.cache cat /var/cache/spkg.cache
} }
usage() { usage() {
echo 'sPKG via WGET, to cache, just type in sudo spkg cache save. echo ' How to use: install to install, update to update, list to list, remove to remove. '
to install, just type in sudo spkg install.
to update, just type in sudo spkg update.
to setup (IMPORTANT!!!), just type in sudo spkg setup'
} }
version() { version() {
echo "spkg 21.06.30.1b" echo "spkg 21.07.01.2a.nr"
} }
case "${1}" in case "${1}" in
setup) setup)