yet here we go

This commit is contained in:
Ohio2 2021-06-28 14:27:40 +02:00
parent 9a1841865a
commit 80730072fc

5
spkg
View file

@ -13,8 +13,8 @@ case ${1} in
*) pushd && mkdir /usr/src/${3} 2>/dev/null && wget $source/${3}/Makefile /usr/src/${3}/Makefile && cd /usr/src/${3} && make prepare && make && make install && cat ${3} > /var/cache/spkg.cache && ${3} --version > /var/cache/spkg.cache && popd || echo 'Invalid package.' && popd ;;
esac ;;
cache) case ${2} in
rm) rm -rf /usr/src/* ;;
clean) rm -rf /usr/src/${3} ;;
clean) rm -rf /usr/src/* ;;
rm) rm -rf /usr/src/${3} ;;
save) case ${3} in
to) cp /usr/src/ ${4} ;;
*) cp /usr/src/ /etc/spkg/cache || mkdir /etc/spkg 2>/dev/null && mkdir /etc/spkg/cache 2>/dev/null && cp /usr/src/ /etc/spkg/cache ;;
@ -32,4 +32,5 @@ case ${1} in
to update, just type in sudo spkg update.
to setup (IMPORTANT!!!), just type in sudo spkg setup' ;;
--version) echo 'beta 21.06.28.1a' ;;
--to-do) echo 'change tos to something else.'
esac