Caching in the new spkg

This commit is contained in:
Ohio2 2021-06-30 01:25:28 +02:00
parent 0aef560fe8
commit f4a0b92ca0
2 changed files with 5 additions and 5 deletions

4
man
View file

@ -1,7 +1,7 @@
.\" 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.1a" "User Commands" .TH SPKG "1" "June 2021" "spkg 21.06.30.1b" "User Commands"
.SH NAME .SH NAME
spkg \- manual page for spkg 21.06.30.1a spkg \- manual page for spkg 21.06.30.1b
.SH DESCRIPTION .SH DESCRIPTION
sPKG via WGET, to cache, just type in sudo spkg cache save. sPKG via WGET, to cache, just type in sudo spkg cache save.
.TP .TP

6
spkg
View file

@ -11,6 +11,7 @@ removepkg() {
pkgname=$1 pkgname=$1
cd /usr/src/"${pkgname}" || exit 2 cd /usr/src/"${pkgname}" || exit 2
make uninstall make uninstall
sed "s/${pkgname} $(${pkgname} --version)//"
} }
instpkg() { instpkg() {
pkgname=$1 pkgname=$1
@ -25,8 +26,7 @@ instpkg() {
make prepare make prepare
make make
make install make install
cat "${pkgname}" > "${prefix}"/var/cache/spkg.cache sed a\ "${pkgname} $(${pkgname} --version)" /var/cache/spkg.cache > /var/cache/spkg.cache
"${pkgname}" --version > "${prefix}"/var/cache/spkg.cache
} }
update() { update() {
pkgname=$1 pkgname=$1
@ -56,7 +56,7 @@ usage() {
to setup (IMPORTANT!!!), just type in sudo spkg setup' to setup (IMPORTANT!!!), just type in sudo spkg setup'
} }
version() { version() {
echo "spkg 21.06.30.1a" echo "spkg 21.06.30.1b"
} }
case "${1}" in case "${1}" in
setup) setup)