Compare commits

..

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

22
spkg
View file

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