This script is used to count VDOM types that is used in an applications.
The python script requires the openpyxl
library for Excel file operations.
The main script is count_types.sh
and expects two arguments:
- Path to the types directory.
- Path to the compiled apps directory.
Usage:
./count_types.sh <path_to_VDOMserver_types_directory> <path_to_app\.tmp\pack>
The script first checks if the correct number of arguments are provided. It then delegates tasks to other scripts, namely process_types.sh
, pattern_search.sh
, and types_report.py
.
This script is designed to traverse a specified directory, searching for files named type.xml. For each type.xml file found, the script extracts the value within the <Name>
tag and associates it with the name of the containing folder - type guid. The final output is a JSON representation of the folder names and their corresponding <Name>
values from the type.xml files.
Usage:
bash ./process_types.sh <path_to_types_directory>
This script is tailored to search through XML files within a specified directory, looking for matches based on a provided grep pattern using RegEx. For each XML file, the script displays the filename (deleting "_compiled.xml" suffix) followed by unique matches of the pattern.
Usage:
bash ./pattern_search.sh <path_to_compiled_apps_directory> '<grep pattern using RegEx>
This Python script generates a report based on the outputs of the previous scripts. Simply run it after the main script to get the report. Once executed, it will generate an Excel file named report.xlsx in the same directory.
Usage:
python types_report.py