Compare commits

..

2 commits

Author SHA1 Message Date
Ohio2
6ecce2688c Upon removing, it removes entries from cache too! (06.29.2a.ut) 2021-06-29 14:18:20 +02:00
Ohio2
ad247fa21e man update 2021-06-29 14:03:34 +02:00
2 changed files with 10 additions and 14 deletions

16
man
View file

@ -1,22 +1,18 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.48.3.
.TH BETA "1" "June 2021" "beta 21.06.28.1a" "User Commands"
.TH SPKG:11: "1" "June 2021" "spkg:11: parse error near `&&'" "User Commands"
.SH NAME
beta \- manual page for beta 21.06.28.1a
spkg:11: \- manual page for spkg:11: parse error near `&&'
.SH DESCRIPTION
sPKG via WGET, to cache, just type in sudo spkg cache save.
.IP
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
\&./spkg:11: parse error near `&&'
.SH "SEE ALSO"
The full documentation for
.B beta
.B spkg:11:
is maintained as a Texinfo manual. If the
.B info
and
.B beta
.B spkg:11:
programs are properly installed at your site, the command
.IP
.B info beta
.B info spkg:11:
.PP
should give you access to the complete manual.

8
spkg
View file

@ -4,11 +4,11 @@ func()
# NOTE: sPKG via wget CAN'T RUN WITHOUT MAKE!!!
# ALNUX might not have MAKE!!! We tried porting it, dependiecies are fucked.
# Correction here in the latest build, you have to run setup to install make, so not that fucked.
source=git.hippoz.xyz/spkg/repo
beta=false
source=git.hippoz.xyz/spkg/repos
# THIS IS UT.BETA
case ${1} in
setup) cp ./spkg /usr/bin/spkg && chmod +x /usr/bin/spkg && mkdir /etc/ && mv os-release /etc/ ;;
remove) pushd && for fname in $@ && cd /usr/src/${2} && make uninstall && popd ;;
remove) pushd && for fname in $@ && cd /usr/src/${2} && make uninstall && cd .. && rm -rf ${2} && sed "s/${2}//" /var/cache/spkg.cache && popd ;;
install) case ${2} in
--root-dir=) pushd && for fname in $@ && mkdir ${4}/usr/src/${3} 2>/dev/null && wget $source/${3}/Makefile ${4}/usr/src/${3}/Makefile && cd ${4}/usr/src/${3} && make prepare && make && make install && cat ${3} > ${4}/var/cache/spkg.cache && popd || echo 'Invalid package.' && popd ;;
*) pushd && for fname in $@ && 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 ;;
@ -32,5 +32,5 @@ case ${1} in
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) echo 'beta 21.06.29.1a' ;;
--version) echo 'beta 21.06.29.2a.ut' ;;
esac