Commit 6eab1495 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add base Redox support

parent 55277ad6
...@@ -167,6 +167,9 @@ case $DISTRIB_ID in ...@@ -167,6 +167,9 @@ case $DISTRIB_ID in
Gentoo) Gentoo)
CMD="emerge" CMD="emerge"
;; ;;
Redox)
CMD="redox-pkg"
;;
ArchLinux|ManjaroLinux) ArchLinux|ManjaroLinux)
CMD="pacman" CMD="pacman"
;; ;;
...@@ -604,6 +607,10 @@ elif distro SuSe-release || distro SuSE-release ; then ...@@ -604,6 +607,10 @@ elif distro SuSe-release || distro SuSE-release ; then
DISTRIB_ID="SLES" DISTRIB_ID="SLES"
fi fi
elif distro redox-release ; then
DISTRIB_ID="Redox"
DISTRIB_RELEASE=$(cat $DISTROFILE)
# fixme: can we detect by some file? # fixme: can we detect by some file?
elif [ "$(uname)" = "FreeBSD" ] ; then elif [ "$(uname)" = "FreeBSD" ] ; then
DISTRIB_ID="FreeBSD" DISTRIB_ID="FreeBSD"
...@@ -671,6 +678,9 @@ case "$DIST_OS" in ...@@ -671,6 +678,9 @@ case "$DIST_OS" in
'freebsd' | 'openbsd' | 'netbsd') 'freebsd' | 'openbsd' | 'netbsd')
DIST_OS="freebsd" DIST_OS="freebsd"
;; ;;
'Redox')
DIST_OS="redox"
;;
esac esac
echo "$DIST_OS" echo "$DIST_OS"
} }
......
...@@ -161,6 +161,9 @@ __epm_filelist_name() ...@@ -161,6 +161,9 @@ __epm_filelist_name()
pkgng) pkgng)
CMD="pkg info -l" CMD="pkg info -l"
;; ;;
redox-pkg)
CMD="pkg list"
;;
opkg) opkg)
CMD="opkg files" CMD="opkg files"
;; ;;
......
...@@ -114,6 +114,9 @@ epm_install_names() ...@@ -114,6 +114,9 @@ epm_install_names()
pkgng) pkgng)
sudocmd pkg install $@ sudocmd pkg install $@
return ;; return ;;
redox-pkg)
sudocmd pkg install $@
return ;;
emerge) emerge)
sudocmd emerge -uD $@ sudocmd emerge -uD $@
return ;; return ;;
......
...@@ -168,6 +168,9 @@ epm_upgrade() ...@@ -168,6 +168,9 @@ epm_upgrade()
pkgng) pkgng)
CMD="pkg upgrade" CMD="pkg upgrade"
;; ;;
redox-pkg)
CMD="pkg upgrade"
;;
apk) apk)
CMD="apk upgrade" CMD="apk upgrade"
;; ;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment