update :
This commit is contained in:
parent
4b2f686cec
commit
5630ab904e
2
exercise
2
exercise
@ -1 +1 @@
|
||||
Subproject commit 6baa855977686dfd47787b4b4b0f3a77ca15460f
|
||||
Subproject commit c06c5500ea2c47d9e6a8e1e84d183f17e4b9f29b
|
@ -1 +1 @@
|
||||
Subproject commit af3d697d920c1329a37a9d7741ea9f8c79c2c341
|
||||
Subproject commit 5f534c7bbd59fff6242548ff5bb9e9458a82382d
|
83
modules.yaml
83
modules.yaml
@ -1,14 +1,89 @@
|
||||
branches:
|
||||
community/custom_company:
|
||||
modules:
|
||||
- company_list_view
|
||||
- dynamic_docx_pdf_reports_omax
|
||||
- contact_custom
|
||||
community/demo/ftacpa:
|
||||
modules:
|
||||
- multi_level_approval_configuration
|
||||
- hr_budget
|
||||
- dynamic_docx_pdf_reports_omax
|
||||
- hr_promote
|
||||
- bhs_password_policy
|
||||
- multi_level_approval
|
||||
community/dynamic_docx_report_pdf:
|
||||
modules:
|
||||
- dynamic_docx_pdf_reports_omax
|
||||
community/feature/approvals:
|
||||
modules:
|
||||
- hr_promote
|
||||
- bhs_password_policy
|
||||
community/feature/hrbudget:
|
||||
modules:
|
||||
- hr_budget
|
||||
community/dynamic_docx_report_pdf:
|
||||
community/feature/multi-approval:
|
||||
modules:
|
||||
- dynamic_docx_pdf_report_omax
|
||||
- multi_level_approval_configuration
|
||||
- hr_budget
|
||||
- dynamic_docx_pdf_reports_omax
|
||||
- hr_promote
|
||||
- bhs_password_policy
|
||||
- multi_level_approval
|
||||
community/feature/orgchart:
|
||||
modules:
|
||||
- hr_employee_org_chart
|
||||
community/feature/multiapproval:
|
||||
community/testing/appstore:
|
||||
modules:
|
||||
- muk_web_colors
|
||||
- muk_web_theme
|
||||
- muk_web_appsbar
|
||||
- muk_web_dialog
|
||||
- muk_web_chatter
|
||||
dev:
|
||||
modules:
|
||||
- advanced_loan_management
|
||||
- hr_employee_org_chart
|
||||
- ent_loan_accounting
|
||||
- multi_level_approval_configuration
|
||||
- ent_ohrms_loan
|
||||
- hotel_management_odoo
|
||||
- odoo_proxmox_manager
|
||||
- tangerine_address_base
|
||||
- dynamic_docx_pdf_reports_omax
|
||||
- ica_session_timeout
|
||||
- micro_loan
|
||||
- bhs_password_policy
|
||||
- multi_level_approval
|
||||
- multi_level_approval_configuration
|
||||
- auto_database_backup
|
||||
enterprise/ambio:
|
||||
modules:
|
||||
- hr_employee_org_chart
|
||||
- multi_level_approval_configuration
|
||||
- tangerine_address_base
|
||||
- dynamic_docx_pdf_reports_omax
|
||||
- ica_session_timeout
|
||||
- bhs_password_policy
|
||||
- multi_level_approval
|
||||
enterprise/asiawork:
|
||||
modules:
|
||||
- multi_level_approval_configuration
|
||||
- multi_level_approval
|
||||
enterprise/ftacpa:
|
||||
modules:
|
||||
- advanced_loan_management
|
||||
- hr_employee_org_chart
|
||||
- ent_loan_accounting
|
||||
- multi_level_approval_configuration
|
||||
- ent_ohrms_loan
|
||||
- hotel_management_odoo
|
||||
- dynamic_docx_pdf_reports_omax
|
||||
- ica_session_timeout
|
||||
- micro_loan
|
||||
- bhs_password_policy
|
||||
- multi_level_approval
|
||||
huyen_dev:
|
||||
modules:
|
||||
- company_list_view
|
||||
- dynamic_docx_pdf_reports_omax
|
||||
- contact_custom
|
||||
|
1195
setup/base-addons.txt
Normal file
1195
setup/base-addons.txt
Normal file
File diff suppressed because it is too large
Load Diff
10
setup/dir2file.sh
Executable file
10
setup/dir2file.sh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Define output file name
|
||||
input_dir="$1"
|
||||
output_file="$2"
|
||||
# Find all directories in root and write to file
|
||||
# Using find to list only directories (-type d) at depth 1 (-maxdepth 1)
|
||||
find $input_dir -maxdepth 1 -type d -not -path "$input_dir" -exec basename {} \; | sort >> "$output_file"
|
||||
|
||||
echo "Folder list has been written to $output_file"
|
77
setup/modules_scan.sh
Executable file
77
setup/modules_scan.sh
Executable file
@ -0,0 +1,77 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Check if required arguments are provided
|
||||
if [ $# -ne 3 ]; then
|
||||
echo "Usage: $0 <input_file> <root_folder> <output_yaml_file>"
|
||||
echo "Example: $0 exclude_list.txt /path/to/git/repo /path/to/output.yaml"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
INPUT_FILE="$1"
|
||||
ROOT_FOLDER="$2"
|
||||
OUTPUT_FILE="$3"
|
||||
|
||||
# Check if input file exists
|
||||
if [ ! -f "$INPUT_FILE" ]; then
|
||||
echo "Error: Input file '$INPUT_FILE' not found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check if root folder exists
|
||||
if [ ! -d "$ROOT_FOLDER" ]; then
|
||||
echo "Error: Root folder '$ROOT_FOLDER' not found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check if output YAML file exists, if not create it
|
||||
if [ ! -f "$OUTPUT_FILE" ]; then
|
||||
echo "Output file does not exist. Creating $OUTPUT_FILE"
|
||||
touch "$OUTPUT_FILE"
|
||||
fi
|
||||
|
||||
# Change to root folder
|
||||
cd "$ROOT_FOLDER" || exit 1
|
||||
|
||||
# Initialize output file
|
||||
echo "branches:" > "$OUTPUT_FILE"
|
||||
|
||||
# Get all git branches
|
||||
git fetch --all
|
||||
branches=$(git branch -r | grep -v HEAD | sed 's/origin\///' | sed 's/^[[:space:]]*//')
|
||||
|
||||
# Process each branch
|
||||
while IFS= read -r branch; do
|
||||
echo "Processing branch: $branch"
|
||||
|
||||
# Checkout branch
|
||||
git checkout "$branch" 2>/dev/null || continue
|
||||
|
||||
# Get all folders in current branch
|
||||
folders=$(find . -maxdepth 1 -type d -not -path '.' -not -path './.*' | sed 's|./||')
|
||||
|
||||
# Array to store modules not in input file
|
||||
modules=()
|
||||
|
||||
# Check each folder against input file
|
||||
while IFS= read -r folder; do
|
||||
# Skip if folder is empty
|
||||
[ -z "$folder" ] && continue
|
||||
|
||||
# Check if folder is in input file
|
||||
if ! grep -Fxq "$folder" "$INPUT_FILE"; then
|
||||
modules+=("$folder")
|
||||
fi
|
||||
done <<< "$folders"
|
||||
|
||||
# Write to yaml if there are modules
|
||||
if [ ${#modules[@]} -gt 0 ]; then
|
||||
echo " $branch:" >> "$OUTPUT_FILE"
|
||||
echo " modules:" >> "$OUTPUT_FILE"
|
||||
for module in "${modules[@]}"; do
|
||||
echo " - $module" >> "$OUTPUT_FILE"
|
||||
done
|
||||
fi
|
||||
|
||||
done <<< "$branches"
|
||||
|
||||
echo "Output written to $OUTPUT_FILE"
|
Loading…
Reference in New Issue
Block a user