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.
.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
spkg \- manual page for spkg 21.06.30.1b
spkg \- manual page for spkg 21.07.01.2a.nr
.SH DESCRIPTION
sPKG via WGET, to cache, just type in sudo spkg cache save.
.TP
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
.IP
How to use: install to install, update to update, list to list, remove to remove.
.SH "SEE ALSO"
The full documentation for
.B spkg

12
spkg
View file

@ -8,6 +8,11 @@ setup() {
chmod +x "${prefix}"/bin/spkg
mkdir "${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() {
pkgname=$1
@ -60,13 +65,10 @@ dblist() {
cat /var/cache/spkg.cache
}
usage() {
echo 'sPKG via WGET, to cache, just type in sudo spkg cache save.
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'
echo ' How to use: install to install, update to update, list to list, remove to remove. '
}
version() {
echo "spkg 21.06.30.1b"
echo "spkg 21.07.01.2a.nr"
}
case "${1}" in
setup)