forgot about one line
This commit is contained in:
parent
33579be33b
commit
fa9a7a1064
1 changed files with 1 additions and 1 deletions
2
spkg
2
spkg
|
@ -7,7 +7,7 @@ func()
|
||||||
source=git.hippoz.xyz/spkg/repo
|
source=git.hippoz.xyz/spkg/repo
|
||||||
beta=false
|
beta=false
|
||||||
case ${1} in
|
case ${1} in
|
||||||
setup) mv ./deps/* /usr/bin/ && cp ./spkg /usr/bin/spkg && chmod +x /usr/bin/git && mkdir /etc/ && mv os-release /etc/ ;;
|
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 && popd ;;
|
||||||
install) case ${2} in
|
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 ;;
|
--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 ;;
|
||||||
|
|
Loading…
Reference in a new issue