[FIX] Ignores empty or commented lines in selected_oca_modules

This commit is contained in:
Jorge Enrique Gómez Gómez 2021-11-16 23:10:03 -05:00
parent 4939cabe2b
commit 4fdea3e4be
3 changed files with 10 additions and 8 deletions

View File

@ -78,9 +78,9 @@ pt_community ()
OPTIONS="--directory=$DEST --strip=1" OPTIONS="--directory=$DEST --strip=1"
patch $OPTIONS < patches/20210821_base-location_no-zip-from-city.patch patch $OPTIONS < patches/20210821_base-location_no-zip-from-city.patch
# DEST=$DESTDIR/community/auth_oauth_multi_token/ DEST=$DESTDIR/community/auth_oauth_multi_token/
# OPTIONS="--directory=$DEST --strip=1" OPTIONS="--directory=$DEST --strip=1"
# patch $OPTIONS < patches/20210420_auth-oauth-multi-token_error-in-login.patch patch $OPTIONS < patches/20210420_auth-oauth-multi-token_error-in-login.patch
} }
pt_all () pt_all ()

View File

@ -38,15 +38,16 @@ cp_community ()
{ {
REPO="Modules by Odoo Community Association" REPO="Modules by Odoo Community Association"
SRC=./community/oca SRC=./community/oca
DEST=$DESTDIR/community/ DEST=${DESTDIR}/community/
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "Install $REPO into production directory structure" echo "Install ${REPO} into production directory structure"
echo "(selected modules)" echo "(selected modules)"
echo " …from $SRC to $DEST" echo " …from ${SRC} to ${DEST}"
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
while read -r i || [ -n "$i" ] while read -r line
do do
rsync $OPTIONS "$SRC/${i%/}" $DEST [[ "$line" =~ ^# || "$line" =~ ^$ ]] && continue
rsync ${OPTIONS} "${SRC}/${line%/}" ${DEST}
done < selected_oca_modules.txt done < selected_oca_modules.txt
} }

View File

@ -17,6 +17,7 @@ reporting-engine/report_xlsx/
reporting-engine/report_xlsx_helper/ reporting-engine/report_xlsx_helper/
server-auth/auth_oauth_multi_token/ server-auth/auth_oauth_multi_token/
server-backend/base_user_role/ server-backend/base_user_role/
server-tools/sql_request_abstract/
server-ux/date_range/ server-ux/date_range/
web/web_m2x_options/ web/web_m2x_options/
web/web_responsive/ web/web_responsive/