[ADD] New repo from Avancys

This commit is contained in:
Jorge Enrique Gómez Gómez 2022-10-08 10:15:58 -05:00
parent eef2f71fe2
commit a9dbf594a7
3 changed files with 40 additions and 13 deletions

2
.gitignore vendored
View File

@ -3,4 +3,6 @@ community/
core/ core/
custom/ custom/
vendor/ vendor/
vendor01/
vendor02/
special/ special/

View File

@ -13,12 +13,12 @@ OPTIONS="-av --exclude-from=common_exclude_patterns.txt --chown odoo:odoo"
Help () Help ()
{ {
echo "Usage: $0 [-h] -o={all|core|community|apps|vendor|special|custom}" echo "Usage: $0 [-h] -o={all|core|community|apps|vendor|vendor02|custom}"
echo echo
echo "Options:" echo "Options:"
echo "-h Help (display this text)" echo "-h Help (display this text)"
echo "-o Modules to be installed (one of 'all', 'core', 'community'," echo "-o Modules to be installed (one of 'all', 'core', 'community',"
echo " 'apps', 'vendor', 'special, 'custom'). Required." echo " 'apps', 'vendor', 'vendor02, 'custom'). Required."
echo echo
} }
@ -85,11 +85,11 @@ cp_vendor ()
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
} }
cp_special () cp_vendor02 ()
{ {
REPO="Special Avancys v14 electronic invoice" REPO="Special Avancys v14 electronic invoice"
SRC=./special/ SRC=./vendor02/
DEST=$DESTDIR/v14-electronic-documents/ DEST=$DESTDIR/vendor02/
# Exclude modules/files already included in other repos: # Exclude modules/files already included in other repos:
EXCL="--exclude-from=rejected_special_modules.txt" EXCL="--exclude-from=rejected_special_modules.txt"
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
@ -160,8 +160,8 @@ case $Modules in
'vendor') # Install Avancys modules 'vendor') # Install Avancys modules
cp_vendor cp_vendor
exit;; exit;;
'special') # Install Avancys e-invoice modules 'vendor02') # Install Avancys e-invoice modules
cp_special cp_vendor02
exit;; exit;;
'custom') # Install Custom modules developed in-house 'custom') # Install Custom modules developed in-house
cp_custom cp_custom

View File

@ -5,12 +5,12 @@
Help () Help ()
{ {
echo "Usage: $0 [-h] -o={all|core|community|vendor|special|custom}" echo "Usage: $0 [-h] -o={all|core|community|vendor|vendor02|custom}"
echo echo
echo "Options:" echo "Options:"
echo "-h Help (display this text)" echo "-h Help (display this text)"
echo "-o Repositories to be updated (one of 'all', 'core', 'community'," echo "-o Repositories to be updated (one of 'all', 'core', 'community',"
echo " 'vendor', 'special, 'custom'). Required." echo " 'vendor', 'vendor02, 'custom'). Required."
echo echo
} }
@ -77,11 +77,33 @@ gt_vendor ()
fi fi
} }
gt_special () gt_vendor01 ()
{ {
REPO="Special repo for electronic invoice 1.8 by Avancys" REPO="Special repo for electronic invoice 1.8 by Avancys"
SRC=git@gitlab.com:mgarcia.avancys/v14-facturacionelectronica.git SRC=git@gitlab.com:mgarcia.avancys/v14-facturacionelectronica.git
DEST=./special/ # ERROR: Repo was removed
DEST=./vendor01/
OPTIONS=""
if [ ! -d "$DEST" ]; then
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "Clone $REPO"
echo " …to $DEST"
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
git clone $OPTIONS $SRC $DEST
else
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "Update $REPO"
echo " …in $DEST"
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
git -C $DEST pull
fi
}
gt_vendor02 ()
{
REPO="Special repo for electronic documents by Avancys"
SRC=git@gitlab.com:mgarcia.avancys/v14-electronic-documents-agofer.git
DEST=./vendor02/
OPTIONS="" OPTIONS=""
if [ ! -d "$DEST" ]; then if [ ! -d "$DEST" ]; then
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
@ -161,8 +183,11 @@ case $Modules in
'vendor') # Download from repo Avancys modules 'vendor') # Download from repo Avancys modules
gt_vendor gt_vendor
exit;; exit;;
'special') # Download from special repo Avancys e-invoice modules 'vendor01') # Repo was removed. Do not use
gt_special gt_vendor01
exit;;
'vendor02') # Download from special repo Avancys e-invoice modules
gt_vendor02
exit;; exit;;
'custom') # Download from repo Custom modules developed in-house 'custom') # Download from repo Custom modules developed in-house
gt_custom gt_custom