From 00997465a52c1d3353e8a2a27b3165aa9d51bf06 Mon Sep 17 00:00:00 2001 From: Mauro Rosero P Date: Mon, 27 Jan 2025 11:02:14 -0500 Subject: [PATCH] [IMPROVED] Se agregan packs: - Base - IA --- bin/base_unpack.sh | 121 +++++++++++++++++++++++++++++++++++++++++++++ bin/ia_unpack.sh | 121 +++++++++++++++++++++++++++++++++++++++++++++ packs/packs.repos | 2 + 3 files changed, 244 insertions(+) create mode 100755 bin/base_unpack.sh create mode 100755 bin/ia_unpack.sh diff --git a/bin/base_unpack.sh b/bin/base_unpack.sh new file mode 100755 index 0000000..00b0c9c --- /dev/null +++ b/bin/base_unpack.sh @@ -0,0 +1,121 @@ +#!/bin/bash +# +# base_unpack.sh +# Modified: 2024/12/09 10:27:00 +# Derechos de Autor (C) [2024] [Mauro Rosero P. ] +# +# Este programa es software libre: usted puede redistribuirlo y/o modificarlo +# bajo los términos de la Licencia Pública Affero General de GNU tal como +# lo publica la Free Software Foundation, ya sea la versión 3 de la licencia, +# o (a su elección) cualquier versión posterior. +# +# Este programa se distribuye con la esperanza de que sea útil, +# pero SIN NINGUNA GARANTÍA; sin siquiera la garantía implícita de +# COMERCIABILIDAD o IDONEIDAD PARA UN PROPÓSITO PARTICULAR. Consulte la +# Licencia Pública Affero General de GNU para obtener más detalles. +# +# Debería haber recibido una copia de la Licencia Pública Affero General +# junto con este programa. Si no la recibió, consulte . + +DEVSPATH=devs +BIN_HOME=$HOME/$DEVSPATH +BIN_MESG=bin/msg +BIN_LIBS=bin/lib + +# CHECK SHELL LANGUAGE +BIN_LANG=${LANG:0:2} + +# LOAD BASE BASH LIBRARY +source $BIN_HOME/$BIN_LIBS/base.lib +#baselib_test + +# LOAD CONSOLE BASH LIBRARY +source $BIN_HOME/$BIN_LIBS/console.lib +#consolelib_test + +# LOAD GPG BASH LIBRARY +source $BIN_HOME/$BIN_LIBS/odoo.lib +#gpglib_test + +# Load head messages +load_messages $BIN_HOME $BIN_MESG $BIN_LANG "head" + +# Load odoo messages +load_messages $BIN_HOME $BIN_MESG $BIN_LANG "odoo" + + +########### MAIN PROGRAM ########### + +# Set program title +title="$head_000 $odmsg_000" +apps_title="${odmsg_011} ${odmsg_001}" + +# Check if dialog is not installed, exited! +command_installed "dialog" +if [ $? -ne 0 ] +then + display_devstools_header "${odmsg_000}" + echo "${head_001}" + exit 200 +fi + +# Check if os is valid! +get_osname +if [ "${os_name}" == "${head_unknow}" ] +then + dialog_error_box "${head_error}" "${head_os_error}" + exit 3 +fi + +# Set odoo developers structure commands & paths +dialog_yesno "${odmsg_105}" +case ${result} in + 0) + odoo_set_pack "base" + rc=$? + case $rc in + 0) + exit 0 + ;; + 1) + dialog_error_box "${head_error}" "${odmsg_106}" + clear + exit 1 + ;; + 2) + dialog_error_box "${head_error}" "${odmsg_107}" + clear + exit 2 + ;; + 3) + dialog_error_box "${head_error}" "${odmsg_108}" + clear + exit 3 + ;; + 4) + dialog_error_box "${head_error}" "${odmsg_109}" + clear + exit 4 + ;; + 5) + dialog_error_box "${head_error}" "${odmsg_110}" + clear + exit 5 + ;; + 6) + dialog_error_box "${head_error}" "${odmsg_111}" + clear + exit 6 + ;; + *) + dialog_error_box "${head_error}" "${head_op_error} (${rc})" + ;; + esac + ;; + *) + dialog_error_box "${head_error}" "${head_op_error}" + ;; +esac + +# End Main Program +clear diff --git a/bin/ia_unpack.sh b/bin/ia_unpack.sh new file mode 100755 index 0000000..f2cc331 --- /dev/null +++ b/bin/ia_unpack.sh @@ -0,0 +1,121 @@ +#!/bin/bash +# +# ia_unpack.sh +# Modified: 2024/12/09 10:27:00 +# Derechos de Autor (C) [2024] [Mauro Rosero P. ] +# +# Este programa es software libre: usted puede redistribuirlo y/o modificarlo +# bajo los términos de la Licencia Pública Affero General de GNU tal como +# lo publica la Free Software Foundation, ya sea la versión 3 de la licencia, +# o (a su elección) cualquier versión posterior. +# +# Este programa se distribuye con la esperanza de que sea útil, +# pero SIN NINGUNA GARANTÍA; sin siquiera la garantía implícita de +# COMERCIABILIDAD o IDONEIDAD PARA UN PROPÓSITO PARTICULAR. Consulte la +# Licencia Pública Affero General de GNU para obtener más detalles. +# +# Debería haber recibido una copia de la Licencia Pública Affero General +# junto con este programa. Si no la recibió, consulte . + +DEVSPATH=devs +BIN_HOME=$HOME/$DEVSPATH +BIN_MESG=bin/msg +BIN_LIBS=bin/lib + +# CHECK SHELL LANGUAGE +BIN_LANG=${LANG:0:2} + +# LOAD BASE BASH LIBRARY +source $BIN_HOME/$BIN_LIBS/base.lib +#baselib_test + +# LOAD CONSOLE BASH LIBRARY +source $BIN_HOME/$BIN_LIBS/console.lib +#consolelib_test + +# LOAD GPG BASH LIBRARY +source $BIN_HOME/$BIN_LIBS/odoo.lib +#gpglib_test + +# Load head messages +load_messages $BIN_HOME $BIN_MESG $BIN_LANG "head" + +# Load odoo messages +load_messages $BIN_HOME $BIN_MESG $BIN_LANG "odoo" + + +########### MAIN PROGRAM ########### + +# Set program title +title="$head_000 $odmsg_000" +apps_title="${odmsg_012} ${odmsg_001}" + +# Check if dialog is not installed, exited! +command_installed "dialog" +if [ $? -ne 0 ] +then + display_devstools_header "${odmsg_000}" + echo "${head_001}" + exit 200 +fi + +# Check if os is valid! +get_osname +if [ "${os_name}" == "${head_unknow}" ] +then + dialog_error_box "${head_error}" "${head_os_error}" + exit 3 +fi + +# Set odoo developers structure commands & paths +dialog_yesno "${odmsg_105}" +case ${result} in + 0) + odoo_set_pack "ai" + rc=$? + case $rc in + 0) + exit 0 + ;; + 1) + dialog_error_box "${head_error}" "${odmsg_106}" + clear + exit 1 + ;; + 2) + dialog_error_box "${head_error}" "${odmsg_107}" + clear + exit 2 + ;; + 3) + dialog_error_box "${head_error}" "${odmsg_108}" + clear + exit 3 + ;; + 4) + dialog_error_box "${head_error}" "${odmsg_109}" + clear + exit 4 + ;; + 5) + dialog_error_box "${head_error}" "${odmsg_110}" + clear + exit 5 + ;; + 6) + dialog_error_box "${head_error}" "${odmsg_111}" + clear + exit 6 + ;; + *) + dialog_error_box "${head_error}" "${head_op_error} (${rc})" + ;; + esac + ;; + *) + dialog_error_box "${head_error}" "${head_op_error}" + ;; +esac + +# End Main Program +clear diff --git a/packs/packs.repos b/packs/packs.repos index 9a34b9d..152160b 100644 --- a/packs/packs.repos +++ b/packs/packs.repos @@ -1 +1,3 @@ escolar|Géstión Administrativa para Centros Educativos|git@git.rosero.one:OPENTECH/odoo_escolar.git|devs18 +base|Complementos de Terceros|git@git.rosero.one:OPENTECH/odoo_base.git|v18 +ai|Complementos para Inteligencia Artificial|git@git.rosero.one:OPENTECH/odoo_ia.git|devs18