Compare commits

..

No commits in common. "9f617d128016a2544ee50b5117408c4a3ec8af25" and "2497f084c6471b3ae6700777b86c603c1883324a" have entirely different histories.

20
spkg
View file

@ -1,12 +1,11 @@
#!/bin/sh
source="https://git.hippoz.xyz/down/repo"
source="https://git.hippoz.xyz/spkg/repo"
tmpdir="/tmp"
setup() {
prefix=$1
cp ./spkg "${prefix}"/usr/bin/spkg
chmod +x "${perfix}"/usr/bin/spkg
mkdir "${prefix}"/etc/
mv os-release "${prefix}"/etc/
cp ./spkg /usr/bin/spkg
chmod +x /usr/bin/spkg
mkdir /etc/
mv os-release /etc/
}
removepkg() {
pkgname=$1
@ -64,10 +63,7 @@ version() {
}
case "${1}" in
setup)
case "${2}" in
--root-dir) setup "${3}" ;;
*) setup "/" ;;
esac ;;
setup ;;
remove)
removepkg "${2}" ;;
install)
@ -94,10 +90,10 @@ case "${1}" in
query)
dbquery "${5}" ;;
esac;;
esac ;;
esac ;;
list)
dblist ;;
esac ;;
esac ;;
update)
update "${2}" ;;
--help)