Compare commits
No commits in common. "9f617d128016a2544ee50b5117408c4a3ec8af25" and "2497f084c6471b3ae6700777b86c603c1883324a" have entirely different histories.
9f617d1280
...
2497f084c6
1 changed files with 9 additions and 13 deletions
22
spkg
22
spkg
|
@ -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)
|
||||
|
@ -93,11 +89,11 @@ case "${1}" in
|
|||
dblocal "${5}" ;;
|
||||
query)
|
||||
dbquery "${5}" ;;
|
||||
esac;;
|
||||
esac;;
|
||||
list)
|
||||
dblist ;;
|
||||
esac ;;
|
||||
esac ;;
|
||||
list)
|
||||
dblist ;;
|
||||
update)
|
||||
update "${2}" ;;
|
||||
--help)
|
||||
|
|
Loading…
Reference in a new issue