From 9e80d8ecd9e6b48590912e65c23bc8bde10b73d4 Mon Sep 17 00:00:00 2001 From: kprkpr Date: Wed, 15 Jun 2016 20:05:58 +0200 Subject: [PATCH] Support Void Linux --- jka-toolkit/apw | 45 +++++++++++++++++++++++++++++++++-- jka-toolkit/i18n/apw/apw.pot | 44 +++++++++++++++++++++------------- jka-toolkit/i18n/apw/es.mo | Bin 4329 -> 4740 bytes jka-toolkit/i18n/apw/es.po | 42 ++++++++++++++++++++------------ 4 files changed, 98 insertions(+), 33 deletions(-) diff --git a/jka-toolkit/apw b/jka-toolkit/apw index 2747b54..36dba89 100755 --- a/jka-toolkit/apw +++ b/jka-toolkit/apw @@ -1,5 +1,5 @@ #!/bin/bash -# apw, a simple packager wrapper for Arch, Debian, RedHat/Fedora, CentOS 6, Suse, and all his derivates) +# apw, a simple packager wrapper for Arch, Debian, RedHat/Fedora, CentOS 6, Suse, Void, and more) # It simplifies the process of remembering pacman,apt,dnf, etc , all in one called apw # Author: JKA Network - contacto@jkanetwork.com @@ -10,7 +10,7 @@ export TEXTDOMAIN='apw' export TEXTDOMAINDIR='/usr/share/locale' #Version variable -version="1.8" +version="1.9" #This option is for make if case insensitive shopt -s nocasematch @@ -76,6 +76,10 @@ if [[ ! -f /etc/apw.conf ]];then echo "zypper" > /etc/apw.conf break ;; + "Void Linux (XBPS)") + echo "xbps" > /etc/apw.conf + break + ;; esac done fi @@ -114,6 +118,8 @@ case "$1" in pacman -Syu $packages;; yum | dnf | zypper) $SO update;; + xbps) + xbps-install -Su;; esac;; Uf|-Uf) echo $(gettext "Force updating system") @@ -125,6 +131,9 @@ case "$1" in yum | dnf | zypper) echo "$(gettext "Not supported on your distribution. Doing -U instead")" $SO update;; + xbps) + echo "$(gettext "Not supported on your distribution. Doing -U instead")" + xbps-install -Su;; esac;; Uy|-Uy) echo $updating @@ -137,6 +146,9 @@ case "$1" in $SO -y update;; zypper) $SO --non-interactive update;; + xbps) + echo "$(gettext "Not supported on your distribution. Doing -U instead")" + xbps-install -Su;; esac;; I|-I) printf -- "$(gettext "You are going to install %s and dependencies")" "$packages" @@ -148,6 +160,8 @@ case "$1" in pacman -Syu $packages --needed;; yum | dnf | zypper) $SO install $packages;; + xbps) + xbps-install -S $packages;; esac;; Iy|-Iy) printf -- "$(gettext "You are going to install %s and dependencies")" "$packages" @@ -161,6 +175,9 @@ case "$1" in $SO -y install $packages;; zypper) $SO --non-interactive install $packages;; + xbps) + echo "$(gettext "Not supported on your distribution. Doing -I instead")" + xbps-install -S $packages;; esac;; Ir|-Ir) printf -- "$(gettext "You are going to reinstall %s")" "$packages" @@ -172,6 +189,9 @@ case "$1" in pacman -Syu $packages;; yum | dnf | zypper) $SO reinstall $packages;; + xbps) + echo "$(gettext "Not supported on your distribution. Reconfiguring instead")" + xbps-reconfigure -f $packages esac;; Iry|-Iry) printf -- "$(gettext "You are going to reinstall %s")" "$packages" @@ -184,6 +204,9 @@ case "$1" in $SO -y reinstall $packages;; zypper) $SO --non-interactive reinstall $packages;; + xbps) + echo "$(gettext "Not supported on your distribution. Reconfiguring instead")" + xbps-reconfigure -f $packages esac;; R|-R) printf -- "$(gettext "You are going to remove %s")" "$packages" @@ -194,6 +217,8 @@ case "$1" in pacman -R $packages;; yum | dnf | zypper) $SO remove $packages;; + xbps) + xbps-remove $packages;; esac;; Ry|-Ry) printf -- "$(gettext "You are going to remove %s")" "$packages" @@ -206,6 +231,9 @@ case "$1" in $SO -y remove $packages;; zypper) $SO --non-interactive remove $packages;; + xbps) + echo "$(gettext "Not supported on your distribution. Doing -I instead")" + xbps-remove $packages;; esac;; Rd|-Rd) printf -- "$(gettext "Removing %s along with his dependencies that are not more in use")" "$packages" @@ -213,6 +241,8 @@ case "$1" in case "$SO" in pacman) pacman -Rs $packages;; + xbps) + xbps-remove -R $packages;; *) echo "$(gettext "Not supported on your distribution")";; esac;; @@ -222,6 +252,9 @@ case "$1" in case "$SO" in pacman) pacman -Rs $packages --noconfirm;; + xbps) + echo "$(gettext "Not supported on your distribution. Doing -Rd instead")" + xbps-remove -R $packages;; *) echo "$(gettext "Not supported on your distribution")";; esac;; @@ -241,6 +274,8 @@ case "$1" in dnf clean all --enablerepo=\*;; zypper) zypper clean;; + xbps) + xbps-remove -O;; esac;; Cd|-Cd) echo "$(gettext "Cleaning system from dependencies that are not in use (BE CAREFUL, ONLY ADVANCED)")" @@ -251,6 +286,8 @@ case "$1" in pacman -Rs $(pacman -Qdtq);; zypper) zypper --clean-deps;; + xbps) + xbps-remove -o;; *) echo "$(gettext "Not supported on your distribution")";; esac;; @@ -262,6 +299,8 @@ case "$1" in pacman -Ss $packages;; apr | yum | dnf | zypper) $SO search $packages;; + xbps) + xbps-query $packages;; esac;; F|-F) printf -- "$(gettext "Installing files: %s")" "$packages" @@ -273,6 +312,8 @@ case "$1" in pacman -U $packages;; yum | dnf | zypper) rpm -Uvh $packages;; + xbps) + echo "$(gettext "Not supported on your distribution")";; esac;; *) echo "$(gettext "Invalid option especified")" diff --git a/jka-toolkit/i18n/apw/apw.pot b/jka-toolkit/i18n/apw/apw.pot index c70df65..ff021f6 100644 --- a/jka-toolkit/i18n/apw/apw.pot +++ b/jka-toolkit/i18n/apw/apw.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-06-10 23:59+0200\n" +"POT-Creation-Date: 2016-06-15 20:02+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -82,7 +82,7 @@ msgstr "" msgid "apw - A Packager Wrapper" msgstr "" -#: apw:39 apw:279 +#: apw:39 apw:320 msgid "Use apw -h for help" msgstr "" @@ -104,60 +104,72 @@ msgid "" "delete this file)" msgstr "" -#: apw:89 +#: apw:93 msgid "No package specified, aborting" msgstr "" -#: apw:106 +#: apw:110 msgid "Updating system" msgstr "" -#: apw:119 +#: apw:125 msgid "Force updating system" msgstr "" -#: apw:126 +#: apw:132 apw:135 apw:150 msgid "Not supported on your distribution. Doing -U instead" msgstr "" -#: apw:142 apw:153 +#: apw:154 apw:167 msgid "You are going to install %s and dependencies" msgstr "" -#: apw:166 apw:177 +#: apw:179 apw:235 +msgid "Not supported on your distribution. Doing -I instead" +msgstr "" + +#: apw:183 apw:197 msgid "You are going to reinstall %s" msgstr "" -#: apw:189 apw:199 +#: apw:193 apw:208 +msgid "Not supported on your distribution. Reconfiguring instead" +msgstr "" + +#: apw:212 apw:224 msgid "You are going to remove %s" msgstr "" -#: apw:211 apw:220 +#: apw:239 apw:250 msgid "Removing %s along with his dependencies that are not more in use" msgstr "" -#: apw:217 apw:226 apw:255 +#: apw:247 apw:259 apw:292 apw:316 msgid "Not supported on your distribution" msgstr "" -#: apw:229 +#: apw:256 +msgid "Not supported on your distribution. Doing -Rd instead" +msgstr "" + +#: apw:262 msgid "Cleaning package manager" msgstr "" -#: apw:246 +#: apw:281 msgid "" "Cleaning system from dependencies that are not in use (BE CAREFUL, ONLY " "ADVANCED)" msgstr "" -#: apw:258 +#: apw:295 msgid "Searching %s" msgstr "" -#: apw:267 +#: apw:306 msgid "Installing files: %s" msgstr "" -#: apw:278 +#: apw:319 msgid "Invalid option especified" msgstr "" diff --git a/jka-toolkit/i18n/apw/es.mo b/jka-toolkit/i18n/apw/es.mo index 0505dd0c7e4d474efe88adac55e719941a7174ff..1281a0f411f3b14d68ad027cb93bf6ac243314da 100644 GIT binary patch delta 958 zcmZwFKWI}?6vy$?^y#zJgd+zzvzm#gc>v3)v zk)rLRO?H@#U@gXj81FQjzziP5Yq$sR;W>PP)7a;joxw8Z@Dc9CA2_SuH<%^yDxSt$ zxZA8@Z|GcPVhwj;exuo0oX4H`40qrP@`9~m7JuRa%(`X+Sj1zvggU^}_3>96W1QT? zVQ?0=;2rc>-yYD}&crgNa0Q3)JMPE9uJ(yDs145GDGX5yw(v4p`-qc_FKlja>^2@| z{2Y~$Rh+@2tX{zDm}7l=Pe-Xg5;vQ}94b|hQK@}}(MA$x=NV^E|G$a4f+u(g6CP>C z5maWTF^@IW@5|`p2OLFbEBQY`Crw8aA*S&mj^k%!(>AoN{ozs6!g-8p1hvt-s0_YD zzHM(&8~K9DRA*27$}&iz%%SPKL?gOW5)ei2x*XX0X}WivoU1mnYm~_Eh|$w^sYVp+ zH7ZaQofiLJXp`EY3YfAWCZcEbP|C<;lp+0{{fdS>aL`9@%y_<=>sR9d(Y+MJm-1N=Z=e1a8?`nCZdh;l#wox zUSMx2KSUAx@ej6QUzya5GdO{ta0m;S!)Fm`5Erop^Em78*pA)h(icc^{0ll5CR~3%